/* Positively Devious · staging build · zero JS, no third-party requests.
   Tokens are generated and contrast-verified by build.py; do not hand-edit values. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1EFF,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-ext-600-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1EFF,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
:root {
  color-scheme: light;
  --paper: #faf9f6;
  --ink: #1f1d1a;
  --soft: #5c574f;
  --hairline: #e3e0d8;
  --tint: #f2efe9;
  --accent: #7a1f2b;
  --accent-text: #7a1f2b;
  --accent-hover: #5e1722;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 3px;
  --step-body: clamp(1.0625rem, 1.02rem + 0.25vw, 1.1875rem);   /* 17 -> 19px */
  --step-small: clamp(1rem, 0.98rem + 0.1vw, 1.0625rem);        /* 16px floor everywhere */
  --step-lead: clamp(1.1875rem, 1.1rem + 0.4vw, 1.3125rem);
  --step-h3: clamp(1.1875rem, 1.08rem + 0.6vw, 1.4375rem);
  --step-h2: clamp(1.4375rem, 1.28rem + 0.9vw, 1.8125rem);
  --step-h1: clamp(1.875rem, 1.5rem + 1.9vw, 2.625rem);
  --step-display: clamp(1.9375rem, 1.45rem + 2.4vw, 2.875rem);
  --sp-1: 0.5rem; --sp-2: 1rem; --sp-3: 1.5rem;
  --sp-4: clamp(2rem, 1.6rem + 1.6vw, 3rem);
  --sp-5: clamp(2.75rem, 2.1rem + 2.6vw, 4.25rem);
  --measure: 68ch;
  accent-color: var(--accent-text);
}
@view-transition { navigation: auto; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: var(--step-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main { max-width: 45rem; margin: 0 auto; padding: var(--sp-3) var(--sp-3) var(--sp-5); }
p, li { max-inline-size: var(--measure); text-wrap: pretty; overflow-wrap: break-word; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; letter-spacing: -0.015em; }
h1 { font-size: var(--step-h1); font-weight: 600; margin: var(--sp-3) 0 var(--sp-2); }
h2 { font-size: var(--step-h2); font-weight: 600; margin: 0 0 var(--sp-2); }
h3 { font-size: var(--step-h3); font-weight: 600; margin: var(--sp-3) 0 var(--sp-1); }
ul, ol { padding-left: 1.4rem; }
li { margin: 0.45rem 0; }
li::marker { color: var(--accent-text); font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--hairline); margin: var(--sp-4) 0; }
em { font-style: italic; }
strong { font-weight: 600; }
[id] { scroll-margin-block-start: 5rem; }
::selection { background: #7a1f2b; color: #faf9f6; }

a { color: var(--accent-text); text-decoration-thickness: 0.08em; text-underline-offset: 0.16em; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 0.14em; }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; border-radius: 2px; }

code {
  font-family: ui-monospace, "Cascadia Code", Consolas, Menlo, monospace;
  font-size: 0.85em; background: var(--tint); border-radius: 4px; padding: 0.1rem 0.45rem;
}
/* route references stay quiet, human links, not developer chips */
a.route { color: var(--accent-text); font-size: 0.95em; }
.blank { white-space: nowrap; letter-spacing: 0.04em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* skip link */
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper);
  padding: 0.6rem 1rem; z-index: 10; border-radius: 0 0 var(--radius) 0; }
.skip:focus { left: 0; }

/* staging banner + header + footer chrome */
.staging { background: var(--tint); border-bottom: 1px solid var(--hairline); font-size: var(--step-small); }
.staging .inner { max-width: 45rem; margin: 0 auto; padding: 0.45rem var(--sp-3); }
.site-head { border-bottom: 1px solid var(--hairline); }
.site-head .inner { max-width: 45rem; margin: 0 auto; padding: 0.75rem var(--sp-3);
  display: flex; gap: var(--sp-2); align-items: baseline; justify-content: space-between; flex-wrap: wrap; }
.site-head a.brand { font-weight: 600; color: var(--ink); text-decoration: none;
  letter-spacing: -0.02em; font-size: 1.1rem; padding: 0.35rem 0; }
.site-head a.brand:hover { color: var(--accent-hover); }
.site-head nav a { font-size: var(--step-small); font-weight: 600; text-decoration: none;
  padding: 0.5rem 0.25rem; display: inline-block; }
.site-head nav a:hover { text-decoration: underline; }
footer { border-top: 1px solid var(--hairline); margin-top: var(--sp-5); }
footer .inner { max-width: 45rem; margin: 0 auto; padding: var(--sp-3);
  font-size: var(--step-small); color: var(--soft); }
footer p { margin: 0.25rem 0; }

/* breadcrumb + locator strip (playbook pages) */
.crumb { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2);
  flex-wrap: wrap; margin-top: var(--sp-2); font-size: var(--step-small); }
.crumb a.back { font-weight: 600; text-decoration: none; padding: 0.35rem 0; }
.crumb a.back:hover { text-decoration: underline; }
.locator { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--soft); font-weight: 600; }
.locator svg { display: block; }
.locator .lc-line { stroke: var(--hairline); stroke-width: 2; }
.locator .lc-live { stroke: var(--accent); stroke-width: 3.5; }
.locator .lc-dot { fill: var(--paper); stroke: var(--hairline); stroke-width: 2; }
.locator .lc-on { fill: var(--accent); stroke: var(--accent); }

/* the masthead (map front door): name + line + the plain descriptive anchor */
.masthead { padding-top: var(--sp-3); }
.masthead h1 { font-size: var(--step-h3); font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.masthead h1::after { content: ""; display: block; width: 3.5rem; height: 4px;
  background: var(--accent); border-radius: 2px; margin-top: 0.6rem; }
.masthead p { margin: var(--sp-2) 0 0; max-inline-size: 26ch; }
.masthead strong { display: block; font-size: var(--step-display); line-height: 1.08;
  font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; }
.masthead em { display: block; font-family: var(--sans); font-style: normal;
  font-size: var(--step-lead); color: var(--soft); margin-top: var(--sp-1); }

/* the stations map (the rung-map visual language).
   ONE geometry at every width: six stations on a horizontal rope, matching the page locator.
   Never vertical, never an ascent; on small screens the rope scrolls sideways (a designed
   state, with stations peeking to say so). */
.stations { margin: var(--sp-4) 0 var(--sp-2); }
.stations .st-row { overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin;
  padding-bottom: 0.35rem; }
.stations ol { list-style: none; margin: 0; padding: 0; position: relative;
  display: flex; min-width: max-content; }
.stations li { flex: 1 1 0; min-width: 7.25rem; scroll-snap-align: start; margin: 0; }
.stations .st-card { display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 0.6rem; text-decoration: none; color: var(--ink);
  padding: 0.75rem 0.5rem; border-radius: var(--radius); min-height: 44px; }
/* linked stations carry a resting affordance; the watcher's card deliberately does not
   (transparent border keeps every mark on the same rope line) */
.stations span.st-card { border: 1.5px solid transparent; margin: 0 0.15rem; }
.stations a.st-card { border: 1.5px solid var(--hairline); margin: 0 0.15rem; }
.stations a.st-card .st-name { text-decoration: underline; text-decoration-thickness: 0.07em;
  text-underline-offset: 0.18em; text-decoration-color: var(--accent-text); }
.stations a.st-card:hover { background: var(--tint); border-color: var(--accent); }
.stations .st-mark { flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--paper); border: 2.5px solid var(--accent); color: var(--ink);
  font-weight: 600; display: grid; place-items: center; font-size: 1.05rem; position: relative; z-index: 1; }
.stations .st-name { font-weight: 600; display: block; line-height: 1.25; }
.stations .st-overlay { display: block; font-family: var(--sans); font-style: normal;
  color: var(--soft); font-size: var(--step-small); line-height: 1.3; }
.stations ol::before { content: ""; position: absolute; left: 3.8rem; right: 3.8rem;
  top: calc(2.22rem - 1px); height: 2px; background: var(--accent); border-radius: 2px; }
.stations .st-cap { color: var(--soft); font-size: var(--step-small); margin-top: var(--sp-1); }
.stations .st-swipe { display: none; }
@media (max-width: 45.99rem) {
  .stations .st-row { mask-image: linear-gradient(90deg, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .stations .st-swipe { display: inline; }
}
@media (min-width: 46rem) {
  .stations li { min-width: 0; }
  .stations ol { min-width: 0; }
  .stations ol::before { left: 8.5%; right: 8.5%; }
}

/* map page sections */
.sec { margin-top: var(--sp-5); }
.sec-whichone > p { border-top: 1px solid var(--hairline); padding: var(--sp-3) 0 var(--sp-1); margin: 0; }
.sec-whichone > p:first-of-type { margin-top: var(--sp-2); }
.sec-whichone > p > strong:first-child { display: block; font-size: var(--step-lead);
  line-height: 1.35; margin-bottom: 0.4rem; max-inline-size: 38ch; }
.sec-coachrow p a { display: inline-block; border: 1.5px solid var(--hairline); border-radius: var(--radius);
  padding: 0.6rem 0.9rem; margin: 0.25rem 0.35rem 0.25rem 0; text-decoration: none; font-weight: 600; }
.sec-coachrow p a:hover { border-color: var(--accent-text); background: var(--tint); }
.sec-notes li { max-inline-size: var(--measure); }

/* playbook section furniture */
.sec-locate p:first-of-type { font-size: var(--step-lead); line-height: 1.5; color: var(--ink); }
.sec-practise { border: 1.5px solid var(--hairline); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: var(--sp-3); }
.sec-practise h2 { margin-top: 0; }
.sec-passiton { border-left: 4px solid var(--ink); padding-left: var(--sp-3); }
.sec-shelf, .sec-evidence { border: 1.5px solid var(--hairline); border-radius: var(--radius); padding: var(--sp-3); }
.sec-shelf h2, .sec-evidence h2 { margin-top: 0; font-size: var(--step-h3); }
.sec-shelf > p:first-of-type, .sec-evidence > p:first-of-type {
  font-size: var(--step-small); color: var(--soft); }
.sec-evidence li { font-size: var(--step-small); line-height: 1.55; }
.sec-wherenext { border-top: 2px solid var(--ink); padding-top: var(--sp-3); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  @view-transition { navigation: none; }
}
@media (forced-colors: active) {
  .stations ol::before { background: CanvasText; }
  .masthead h1::after { background: CanvasText; }
}
@media print {
  @page { margin: 2cm; }
  * { background: none !important; color: #000 !important; box-shadow: none !important; }
  .staging, .site-head nav, .skip, .locator svg, .st-cap { display: none !important; }
  /* the rung map on paper: one numbered vertical sequence (never a grid, never ascent-implying) */
  .stations .st-row { overflow: visible; }
  .stations ol { flex-direction: column; min-width: 0; }
  .stations li { min-width: 0; }
  .stations .st-card { flex-direction: row; text-align: left; gap: 0.75rem; padding: 0.25rem 0; min-height: 0; }
  .stations .st-mark { width: 1.9rem; height: 1.9rem; font-size: 0.95rem; border-width: 2px; }
  .stations ol::before { display: none; }
  body { font-size: 11pt; line-height: 1.45; }
  a { color: #000 !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
  h2, h3 { break-after: avoid; }
  .sec-practise, .sec-shelf, .sec-evidence { border: 1pt solid #000; }
  .sec-practise, .sec-shelf { break-inside: avoid; }
  li { break-inside: avoid; }
  p, li { orphans: 3; widows: 3; }
}
