/* chrisfrost.co — The Editorial Flagship (DESIGN-FINAL, Design A + two B grafts)
   One file. Tokens per §2, type per §3, rules/crop marks per §4, motion per §5. */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --paper: #FAF8F5;
  --paper-2: #F2EFE9;
  --card: #FFFFFF;
  --ink: #11162C;
  --ink-2: #5A607C;
  --ink-hover: #1A2140;
  --rule: rgba(17, 22, 44, .15);
  --rule-strong: #11162C;
  --crimson: #E9353E;
  --crimson-text: #C1121F;
  --crimson-hover: #A50E1A;
  /* Crimson that carries WHITE text at AA (the one red fill + ::selection).
     Raw --crimson #E9353E is only 4.16:1 against #FFFFFF — it fails for the
     13px uppercase button label, so fills use these instead. */
  --crimson-fill: #C1121F;        /* white on this = 6.22:1 */
  --crimson-fill-hover: #A50E1A;  /* white on this = 7.84:1 */
  --font-display: "Inter", system-ui, sans-serif;
  --font-serif: "Newsreader", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
[data-theme="dark"] {
  color-scheme: dark;
  --paper: #090E25;
  --paper-2: #111732;
  --card: #111732;
  --ink: #F3F1EC;
  --ink-2: #9BA0B4;
  --ink-hover: #FFFFFF;
  --rule: rgba(243, 241, 236, .14);
  --rule-strong: #F3F1EC;
  --crimson: #E9353E;
  --crimson-text: #F0555D;
  --crimson-hover: #F4787E;
  --crimson-fill: #D42730;        /* white on this = 5.08:1 — reads red on navy, still AA */
  --crimson-fill-hover: #A50E1A;  /* white on this = 7.84:1 */
}

/* ---------- Reset (minimal) ---------- */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
/* De-marker EVERY list, not only classed ones. The footer's three lists (Pages /
   The coaching / Elsewhere) and the /contact aside list carry no class, so the
   `ul[class]` form left them with UA discs and a 40px indent in inherited 18px
   serif on all five pages. Nothing on this site wants a list marker. */
ul, ol { padding: 0; list-style: none; }
/* [hidden] must actually hide. The UA sheet's `[hidden]{display:none}` loses to
   any author display rule (`.letter-form{display:flex}`, `.contact-form{display:grid}`),
   so `el.hidden = true` was a no-op on the forms — the reader saw the confirmation
   AND their address still sitting in a dead greyed-out form. */
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
input, button, textarea { font: inherit; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-size: 1.125rem;
  line-height: 1.7;
  transition: background-color 150ms ease, color 150ms ease;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--crimson-fill); color: #FFFFFF; }

/* ---------- Layout ---------- */
.container {
  max-width: 72rem;
  margin-inline: auto;
  /* 28px floor, not 20px: the crop marks sit 24px OUTSIDE their element
     (--cm-off 6px + --cm-len 18px), so a narrower gutter pushed them past the
     viewport edge and gave every phone a horizontal scrollbar. */
  padding-inline: clamp(1.75rem, 4vw, 3rem);
}
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--tint { background: var(--paper-2); }
.grid { display: block; }
@media (min-width: 900px) {
  .grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem; }
  .col-1-7 { grid-column: 1 / 8; }
  .col-8-12 { grid-column: 8 / 13; }
  .col-1-7f { grid-column: 1 / 8; }
  .col-9-12 { grid-column: 9 / 13; }
}
/* Split spread: the portrait sits between the name and the standfirst in SOURCE
   order (so mobile reads kicker → name → portrait → standfirst, per §8.1 / §8.2),
   and is placed back into cols 8–12 alongside both text blocks at ≥900px. */
@media (min-width: 900px) {
  .spread { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 2rem; }
  .spread-head { grid-column: 1 / 8; grid-row: 1; }
  .spread-body { grid-column: 1 / 8; grid-row: 2; }
  .spread-figure { grid-column: 8 / 13; grid-row: 1 / 3; }
}
.measure { max-width: 38rem; }

/* ---------- Typography ---------- */
.display-1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.25rem, 11vw, 8.5rem);
  letter-spacing: -0.035em;
  line-height: 0.88;
  text-transform: uppercase;
}
.display-2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.25rem, 5.5vw, 4.25rem);
  letter-spacing: -0.03em;
  line-height: 0.92;
  text-transform: uppercase;
}
.pull-quote {
  font-family: var(--font-serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.625rem, 1.1rem + 2.4vw, 2.875rem);
  letter-spacing: -0.01em;
  line-height: 1.22;
  max-width: 24ch;
  margin: 0;
  border: 0;
  padding: 0;
}
/* The 64px crimson rule that opens a pull quote (§4.2 / §8.1 № 04, §8.2 mid-read) */
.pq-rule {
  width: 64px;
  height: 2px;
  background: var(--crimson);
  border: 0;
  margin: 0 0 1.5rem;
}
.js .pq-rule { transform: scaleX(0); transform-origin: left; transition: transform 800ms cubic-bezier(.22,1,.36,1); }
.js .in .pq-rule, .js .pq-rule.in { transform: scaleX(1); }
.pq-attrib { margin-top: 1.5rem; }
.pull-quote--mid { margin-block: 2.5rem; }
.standfirst {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.3125rem, 1.05rem + 1.1vw, 1.6875rem);
  line-height: 1.4;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.kicker {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  /* Was line-height: 1 — set solid. The hero eyebrow wraps to two lines at
     ≤375px and the two lines touched. 1.35 gives it real leading; the
     -0.175em block margins are exactly the added half-leading ((1.35-1)/2),
     so a SINGLE-line kicker still occupies the same vertical space and sits on
     the same baseline as before. Only the wrapped case changes. */
  line-height: 1.35;
  margin-block: -0.175em;
  text-transform: uppercase;
  color: var(--crimson-text);
}
.folio {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--ink-2);
  font-feature-settings: "tnum";
}
.caption {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  line-height: 1.5;
  color: var(--ink-2);
}
.dot { color: var(--crimson); }

/* ---------- Links ---------- */
a { color: inherit; }
:focus-visible { outline: 2px solid var(--crimson); outline-offset: 2px; }
.prose a, a.prose-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--crimson);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 180ms ease;
}
.prose a:hover, a.prose-link:hover { color: var(--crimson-text); }
.glyph { color: var(--ink-2); transition: color 180ms ease; }
a:hover .glyph { color: var(--crimson-text); }

/* Animated underline (nav + quiet links) */
.u-anim {
  text-decoration: none;
  background-image: linear-gradient(var(--crimson), var(--crimson));
  background-repeat: no-repeat;
  background-size: 0% 1.5px;
  background-position: 0 100%;
  transition: background-size 220ms ease-out, color 180ms ease;
  padding-bottom: 2px;
}
.u-anim:hover, .u-anim[aria-current="page"] { background-size: 100% 1.5px; }

/* ---------- Masthead ---------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 16px;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  z-index: 10;
}
.skip:focus { left: 0; }
.masthead { padding-top: 20px; }
.masthead-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-bottom: 20px;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.masthead nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}
.masthead nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.masthead nav a[aria-current="page"] { color: var(--crimson-text); }
.scotch {
  border-top: 3px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule);
  height: 6px;
}
.theme-toggle {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.theme-toggle:hover { background: var(--paper-2); }
/* Mobile masthead (§8.0): wordmark keeps its row, the nav becomes a second quiet
   row of the same links at caption scale. No hamburger, no JS. */
@media (max-width: 639px) {
  .masthead-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .masthead nav { justify-content: flex-start; gap: 8px 16px; width: 100%; }
  .masthead nav a {
    font-weight: 500;
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
  }
}
.js .theme-toggle { display: inline-flex; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }

/* ---------- Section head (rule + folio) ---------- */
.sec-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
/* A sub-block inside a numbered section: introduced by a kicker, not a folio. */
.sub-block { margin-top: clamp(3rem, 7vw, 5rem); }
.section--quote { padding-block: clamp(4rem, 10vw, 8rem); }
.sec-rule { border: 0; border-top: 1px solid var(--rule); margin: 0 0 10px; }
.js .sec-rule { transform: scaleX(0); transform-origin: left; transition: transform 800ms cubic-bezier(.22,1,.36,1); }
.js .in .sec-rule, .js .sec-rule.in { transform: scaleX(1); }

/* ---------- Crop marks ---------- */
.crops { position: relative; --cm-color: var(--crimson); --cm-len: 18px; --cm-off: 6px; }
.crops--quiet { --cm-color: var(--ink-2); --cm-len: 12px; }
.cm { position: absolute; width: 0; height: 0; pointer-events: none; }
.cm::before, .cm::after {
  content: "";
  position: absolute;
  background: var(--cm-color);
}
.cm::before { height: 1.5px; width: var(--cm-len); }  /* horizontal */
.cm::after  { width: 1.5px; height: var(--cm-len); }  /* vertical */
.cm-tl { top: 0; left: 0; }
.cm-tl::before { top: -0.75px; left: calc(-1 * var(--cm-off) - var(--cm-len)); transform-origin: left center; }
.cm-tl::after  { left: -0.75px; top: calc(-1 * var(--cm-off) - var(--cm-len)); transform-origin: center top; }
.cm-tr { top: 0; right: 0; }
.cm-tr::before { top: -0.75px; right: calc(-1 * var(--cm-off) - var(--cm-len)); transform-origin: right center; }
.cm-tr::after  { right: -0.75px; top: calc(-1 * var(--cm-off) - var(--cm-len)); transform-origin: center top; }
.cm-br { bottom: 0; right: 0; }
.cm-br::before { bottom: -0.75px; right: calc(-1 * var(--cm-off) - var(--cm-len)); transform-origin: right center; }
.cm-br::after  { right: -0.75px; bottom: calc(-1 * var(--cm-off) - var(--cm-len)); transform-origin: center bottom; }
.cm-bl { bottom: 0; left: 0; }
.cm-bl::before { bottom: -0.75px; left: calc(-1 * var(--cm-off) - var(--cm-len)); transform-origin: left center; }
.cm-bl::after  { left: -0.75px; bottom: calc(-1 * var(--cm-off) - var(--cm-len)); transform-origin: center bottom; }
/* draw on entry: horizontal scaleX, vertical scaleY, stagger clockwise from TL */
.js .crops .cm::before { transform: scaleX(0); transition: transform 500ms cubic-bezier(.22,1,.36,1); }
.js .crops .cm::after  { transform: scaleY(0); transition: transform 500ms cubic-bezier(.22,1,.36,1); }
.js .crops .cm-tr::before, .js .crops .cm-tr::after { transition-delay: 80ms; }
.js .crops .cm-br::before, .js .crops .cm-br::after { transition-delay: 160ms; }
.js .crops .cm-bl::before, .js .crops .cm-bl::after { transition-delay: 240ms; }
.js .in .cm::before, .js .crops.in .cm::before { transform: scaleX(1); }
.js .in .cm::after,  .js .crops.in .cm::after  { transform: scaleY(1); }

/* ---------- Portrait / figures ---------- */
/* --cm-off / --cm-len are restated here (identical to .crops) purely so the
   figcaption, a SIBLING of .crops, can inherit them for its clearance calc. */
.portrait { margin: 0; --cm-len: 18px; --cm-off: 6px; }
.portrait img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  filter: saturate(.92) contrast(1.02);
}
/* The 4/5 mobile override for the cover portrait is GONE. The img attributes say
   800x1067 (3:4), so the browser reserved a 3:4 box and then painted a 4:5 one —
   ~26px of layout shift at 360px and ~54px at 700px, on the majority device.
   Reserved and painted must agree at every width, so the true 3:4 renders
   everywhere. (Supersedes the 4/5 note in DESIGN-FINAL §8.1 № 01: a CLS-free
   3:4 beats a shifting 4:5.) */
[data-theme="dark"] .portrait .crops::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 90px 26px rgba(9,14,37,.6);
  pointer-events: none;
}
/* Clear the bottom crop marks. They project --cm-off + --cm-len = 24px below the
   image box, so the old 12px margin ran the crimson tick straight through the
   caption text. +6px leaves the mark a visible gap of its own. */
.portrait figcaption { margin-top: calc(var(--cm-off) + var(--cm-len) + 6px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  padding: 14px 24px;
  border-radius: 2px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}
.btn:active { transform: translateY(1px); }
.btn--crimson { background: var(--crimson-fill); color: #FFFFFF; }
.btn--crimson:hover { background: var(--crimson-fill-hover); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--ink-hover); }
[data-theme="dark"] .btn--ink { color: var(--paper); }
.btn--ghost {
  background: transparent;
  border: 1px solid var(--rule-strong);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
[data-theme="dark"] .btn--ghost:hover { color: var(--paper); }

/* ---------- Chips ---------- */
.chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 3px 8px;
}
.section--tint .chip, .plate--tint .chip { background: var(--paper); }
/* Interactive chip: a real 3:1 boundary (WCAG 1.4.11) + the §5.6 label crossfade */
.chip--btn {
  cursor: pointer;
  border-color: var(--ink-2);
  transition: background-color 150ms ease, opacity 150ms ease;
}
.chip--btn.is-swapping { opacity: 0; }
.chip--btn:hover { background: var(--paper-2); border-color: var(--rule-strong); color: var(--ink); }

/* ---------- Forms ---------- */
.field {
  width: 100%;
  background: var(--card);
  /* --rule (15%/14% alpha) gave the control a 1.4:1 boundary — below the 3:1
     WCAG 1.4.11 minimum for UI components. --ink-2 clears it in both modes. */
  border: 1px solid var(--ink-2);
  border-radius: 2px;
  padding: 13px 14px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
}
/* In dark mode --card and --paper-2 are the same navy, so a field inside a tinted
   plate had ZERO background separation. Drop the field to page-navy instead. */
[data-theme="dark"] .field { background: var(--paper); }
.field::placeholder { color: var(--ink-2); }
.field:focus {
  border-color: var(--crimson-text);
  box-shadow: 0 0 0 3px rgba(233, 53, 62, .18);
}
.field:focus-visible { outline: 2px solid var(--crimson); outline-offset: 2px; }
.form-error {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--crimson-text);
  margin-top: 8px;
}
/* Collapsed, not display:none — a live region must already be in the accessibility tree
   when the AT registers it, or the first message can go unannounced. */
.form-status:empty { height: 0; margin-top: 0; overflow: hidden; }
.form-status { margin-top: 1rem; }
.form-status:focus { outline: none; }
.form-status:focus-visible { outline: 2px solid var(--crimson); outline-offset: 2px; }
.form-success { font-style: italic; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.field-label { display: block; margin-bottom: 6px; }

/* Letter form (single row ≥640) */
.letter-form { display: flex; flex-direction: column; gap: 12px; margin-top: 1.5rem; }
@media (min-width: 640px) {
  .letter-form { flex-direction: row; }
  .letter-form .field { flex: 1; }
}

/* ---------- The letter plate ---------- */
.plate {
  max-width: 44rem;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid var(--rule-strong);
}
.plate--tint { background: var(--paper-2); }
.plate--card { background: var(--card); }
.letter-plate { text-align: center; }
.letter-plate .letter-form { text-align: left; }
/* The nameplate gets its own clamp: display-2's 2.25rem floor was 36px against a
   198px inner plate at 320px, so "The Stand-To" broke at its own hyphen —
   "THE STAND-" / "TO", the brand name of the one thing the page sells, split
   mid-word on every phone ≤375px. Only the FLOOR changes (2.25rem → 1.625rem);
   the 5.5vw slope and 4.25rem cap are display-2's, so at ≥473px this is
   byte-identical to display-2 and the desktop plate is untouched. */
.letter-plate .display-2 { font-size: clamp(1.625rem, 5.5vw, 4.25rem); }
/* Belt and braces: even if font metrics shift, the break can only fall at the
   space, never inside the name. */
.letter-plate .display-2 .nb { white-space: nowrap; }

/* Copy-to-clipboard result, announced (not just a swapped button label) */
.copy-status { margin-top: .6rem; }
/* Same reason as .form-status:empty — stay in the a11y tree while empty. */
.copy-status:empty { height: 0; margin-top: 0; overflow: hidden; }

/* Compact letter block (about / now) */
.letter-compact {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding-block: 2rem;
}

/* ---------- Ledger (the record) ---------- */
.ledger { border-top: 1px solid var(--rule); }
.ledger > div {
  border-bottom: 1px solid var(--rule);
  padding-block: 1.25rem;
}
@media (min-width: 900px) {
  .ledger > div { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem; }
  .ledger dt { grid-column: 1 / 4; }
  .ledger dd { grid-column: 4 / 13; }
}
.ledger dt {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--crimson-text);
  font-feature-settings: "tnum";
  padding-top: 0.35rem;
}
.ledger dd { margin: 0; }
.ledger dd strong { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; }

/* ---------- Timeline strip (home) ---------- */
.beats { border-top: 1px solid var(--rule); }
.beats li { border-bottom: 1px solid var(--rule); padding-block: 1rem; }
.beats .label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--crimson-text);
  font-feature-settings: "tnum";
  display: block;
  margin-bottom: 2px;
}
@media (min-width: 900px) {
  .beats li { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem; }
  .beats .label { grid-column: 1 / 4; margin: 0; padding-top: 0.35rem; }
  .beats .beat { grid-column: 4 / 13; }
}

/* ---------- Watch (reserved frames) ---------- */
.watch-frames { display: grid; gap: 2.5rem; margin-block: 2.5rem; }
/* 2.5rem, not 2rem: adjacent quiet crop marks reach 2*(6+12)=36px, so a 32px gap fuses
   them into one continuous dash. 40px keeps the two registration marks legibly separate. */
@media (min-width: 900px) { .watch-frames { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.slot-frame {
  aspect-ratio: 16 / 9;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Doors (which sounds like you) ---------- */
.doors { border-top: 1px solid var(--rule); }
.doors li { border-bottom: 1px solid var(--rule); padding-block: 1.5rem; }
@media (min-width: 900px) {
  .doors li { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem; align-items: baseline; }
  .doors .idx { grid-column: 1 / 2; }
  .doors .door-body { grid-column: 2 / 9; }
  .doors .route { grid-column: 9 / 13; text-align: right; justify-self: end; }
}
.doors .idx {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  font-feature-settings: "tnum";
  transition: color 180ms ease;
}
.doors li:hover .idx, .doors li:focus-within .idx { color: var(--crimson-text); }
.doors .stmt {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.5rem);
  line-height: 1.35;
}
.doors .ans { margin-top: 6px; color: var(--ink-2); font-size: 1rem; }
.route {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.route .glyph { display: inline-block; transition: transform 180ms ease, color 180ms ease; }
.route:hover .glyph { transform: translateX(4px); color: var(--crimson-text); }
.route:hover { color: var(--crimson-text); }

/* ---------- Catalogue (the work) ---------- */
.catalogue { border-top: 1px solid var(--rule); }
.catalogue li { border-bottom: 1px solid var(--rule); }
.catalogue a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding-block: 1.1rem;
  text-decoration: none;
  color: var(--ink);
}
.catalogue .cat-title { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; }
.catalogue .cat-clause { color: var(--ink-2); }
.catalogue .glyph { margin-left: auto; }
.catalogue a:hover .cat-title { color: var(--crimson-text); }
.catalogue a:hover .glyph { color: var(--crimson-text); transform: translateX(4px); }
.catalogue .glyph { display: inline-block; transition: transform 180ms ease, color 180ms ease; }

/* ---------- Bio plate ---------- */
.bio-block {
  border-left: 2px solid var(--rule-strong);
  padding-left: 1.25rem;
  margin-block: 1.5rem;
  font-style: normal;
}

/* ---------- The stamp ---------- */
.stamp { text-align: center; padding-block: clamp(4rem, 10vw, 8rem); }
.stamp .folio { margin-top: 1.5rem; }

/* ---------- About page ---------- */
.prose > p + p { margin-top: 1.4em; }
.prose--dropcap > p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-weight: 600;
  float: left;
  font-size: 3.4em;
  line-height: 0.82;
  color: var(--crimson);
  margin: .05em .12em 0 0;
}
@media (min-width: 900px) {
  .sticky-portrait { position: sticky; top: 3rem; }
}
.timeline { border-left: 2px solid var(--rule); padding-left: 1.5rem; }
.timeline li { padding-block: 0.9rem; position: relative; }
.timeline li::before {
  content: "";
  position: absolute;
  left: calc(-1.5rem - 4.5px);
  top: 1.45rem;
  width: 7px; height: 7px;
  border-radius: 50%;
  /* NOT crimson: the blood budget allows exactly one crimson FILL per page and
     on /about that is the letter's submit button. Seven filled dots broke it. */
  background: var(--ink-2);
}
.timeline .label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--crimson-text);
  font-feature-settings: "tnum";
  display: block;
  margin-bottom: 2px;
}
.aside-mission {
  border-left: 2px solid var(--crimson);
  padding-left: 1.25rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.5rem);
  line-height: 1.4;
}

/* ---------- Now page ---------- */
.now-col { max-width: 38rem; }
.dateline-box {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding-block: 10px;
}
.now-entry { border-bottom: 1px solid var(--rule); padding-block: 1.75rem; }
.now-entry:first-of-type { border-top: 1px solid var(--rule); }
.now-entry h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; margin-bottom: .5rem; }

/* ---------- Contact ---------- */
.contact-form { display: grid; gap: 1.1rem; margin-top: 2rem; }
.door { margin-top: 1.5rem; }
.door h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; margin-bottom: .3rem; }
.elsewhere-list li { padding-block: .45rem; border-bottom: 1px solid var(--rule); }
.elsewhere-list li:first-child { border-top: 1px solid var(--rule); }

/* ---------- Footer ---------- */
.footer { padding-block: clamp(3rem, 7vw, 5rem) 2.5rem; }
.footer-strap {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.3125rem;
  margin-block: 1.25rem 2.5rem;
}
.footer-cols { display: grid; gap: 2.5rem; margin-bottom: 2.5rem; }
@media (min-width: 900px) { .footer-cols { grid-template-columns: 1fr 1.4fr 1fr; gap: 2rem; } }
.folio-h {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: .9rem;
}
.footer-cols ul li { padding-block: .3rem; }
.footer-cols a { text-decoration: none; color: var(--ink); }
.footer-cols a:hover { color: var(--crimson-text); }
.footer-cols p { font-size: 0.9375rem; color: var(--ink-2); }
/* The entity restated at the exit (§8.0 footer col 1) */
.footer-bio { font-family: var(--font-serif); font-size: 0.9375rem; line-height: 1.6; color: var(--ink-2); margin-top: .75rem; }
.footer-wordmark { font-family: var(--font-display); font-weight: 900; font-size: 1.0625rem; letter-spacing: -0.02em; text-transform: uppercase; color: var(--ink); }
.footer-group { margin-top: 1.75rem; }
.footer-cols p a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--crimson); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.footer-contact { border-top: 1px solid var(--rule); padding-top: 1.5rem; font-size: 1rem; }
.footer-contact a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--crimson); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.footer-contact a:hover { color: var(--crimson-text); }
.legal { margin-top: 1rem; }

/* ---------- 404 ---------- */
.page-404 { padding-block: clamp(5rem, 12vw, 10rem); }
/* NOT one of the twelve findings, but measured while checking them: display-1's
   3.25rem floor put "REFERENCE." at 52px against a 264px container at 320px, so
   the crimson full stop hung 15px past the viewport and the page scrolled
   sideways. Floor only — identical to display-1 at ≥364px. */
.page-404 .display-1 { font-size: clamp(2.5rem, 11vw, 8.5rem); }
.page-404 .actions { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; margin-top: 2.5rem; }

/* ---------- Reveal motion ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 650ms cubic-bezier(.22,1,.36,1), transform 650ms cubic-bezier(.22,1,.36,1);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].in { opacity: 1; transform: translateY(0); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .sec-rule, .js .pq-rule, .js .crops .cm::before, .js .crops .cm::after { transform: none; }
}
