/* Derived from the user-supplied mjcho design reference. No remote font imports. */
:root{
/* ── Base palette — lifted verbatim from synthwave84-reveal-2.scss ────────── */
--sw-bg:#2a2139;
--sw-bg-alt:#34294f;
--sw-bg-deep:#1c1530;
--sw-fg:#fdfdfd;
--sw-muted:#f4eee4;
--sw-pink:#fc28a8;
--sw-pink-strong:#f92aad;
--sw-cyan:#03edf9;
--sw-purple:#6d77b3;
--sw-orange:#f97e72;
--sw-gold:#ffcc66;
--sw-green:#72f1b8;
--sw-red:#fc1f2c;
--sw-ink:#100c0f;

/* CV / document palette (CV.qmd front matter) */
--cv-heading:#006e9d;
--cv-institution:#58228f;
/* Document palette, extended for the research report template (2026-09-26, templates/report/).
   The first four were the formal CV's literals, now named; the last three are new to the system. */
--doc-ink:#17151c;    /* print body ink */
--doc-dim:#4a4550;    /* detail text */
--doc-quiet:#6a6472;  /* dates, provenance, metadata */
--doc-rule:#dcd6cb;   /* hairlines */
--doc-band:#ece7dd;   /* reference bands in figures, placeholders — a neutral the CV never needed */
--doc-held:#3f6e4f;   /* audit verdict "held" — the daylight register's green (positive) */
--doc-broke:#7f6029;  /* audit verdict "broke" and "provisional" — daylight --sw-gold (#8c6a2f) darkened one step: on paper #f7f2e7 it measured 4.46:1, and 7pt caps need ≥4.5. An honest limit, never red (red is the 404's alone) */

/* ── Semantic aliases ────────────────────────────────────────────────────── */
--surface-canvas:var(--sw-bg);
--surface-panel:var(--sw-bg-alt);
--surface-floor:var(--sw-bg-deep);
--surface-card:rgba(52,41,79,.64);
--surface-code:var(--sw-bg-alt);
--surface-code-inline:rgba(16,12,15,.8);
--surface-scrim:rgba(16,12,15,.55);
--surface-row-odd:rgba(52,41,79,.35);

--text-body:var(--sw-fg);
--text-soft:var(--sw-muted);
--text-quiet:var(--sw-purple);
--text-display:var(--sw-pink-strong);
--text-subhead:var(--sw-cyan);
--text-tertiary:var(--sw-orange);
--text-link:var(--sw-cyan);
--text-link-hover:var(--sw-pink-strong);

--accent-primary:var(--sw-pink);
--accent-secondary:var(--sw-cyan);
--accent-warm:var(--sw-gold);
--accent-support:var(--sw-purple);
--accent-positive:var(--sw-green);
--accent-alert:var(--sw-red);
--alert-text:#fff5f6; /* the text over the red glow — one place only, the 404 figure */
--seal-red:#c73e2e; /* cinnabar — a MATERIAL colour, not an accent: only the seal artwork's fill, never a glow, never text */

/* ── Control vocabulary (v2, 2026-08-28) — the kit's inline rgba's, tokenised ─ */
--surface-field:rgba(16,12,15,.45); /* text input / textarea ground (the kit's .45 and .5 collapse here) */
--surface-tray:rgba(16,12,15,.35);  /* the composer bar a field sits in (Ask) */
--wash-cyan-faint:rgba(3,237,249,.06);  /* quiet cyan panel wash (Ask's rules panel) */
--wash-cyan-quiet:rgba(3,237,249,.08);  /* the visitor bubble */
--wash-cyan-active:rgba(3,237,249,.12); /* selected chip */
--wash-pink-faint:rgba(249,42,173,.08); /* Action hover wash */
--wash-gold-faint:rgba(255,204,102,.07);/* the honest limit */
--border-gold:rgba(255,204,102,.55);    /* field-level error edge — gold, never red (red is the 404's alone) */

--border-hairline:rgba(253,253,253,.12);
--border-cyan:rgba(3,237,249,.42);
--border-cyan-quiet:rgba(3,237,249,.30);
--border-pink:rgba(249,42,173,.6);
--border-purple:rgba(109,119,179,.62);

--grid-line-cyan:rgba(3,237,249,.55); /* night; daylight ink and afterglow ember re-bind in registers.css (afterglow since 2026-10-27) */
--grid-line-pink:rgba(252,40,168,.55);
--selection-bg:rgba(3,237,249,.4);

/* Sunset gradient — the single signature gradient of the brand */
--gradient-sunset:linear-gradient(95deg,var(--sw-gold) 0%,var(--sw-orange) 28%,var(--sw-pink-strong) 62%,var(--sw-purple) 100%); /* @kind color */
--gradient-sunset-wide:linear-gradient(95deg,var(--sw-gold) 0%,var(--sw-orange) 30%,var(--sw-pink-strong) 65%,var(--sw-purple) 100%); /* @kind color */
--gradient-canvas:linear-gradient(to bottom,var(--sw-bg) 55%,var(--sw-bg-alt) 80%,var(--sw-bg-deep)); /* @kind color */
--gradient-chrome-ring:conic-gradient(from 210deg,var(--sw-gold),var(--sw-orange),var(--sw-pink-strong),var(--sw-cyan),var(--sw-purple),var(--sw-gold)); /* @kind color */
--gradient-progress:linear-gradient(to right,var(--sw-gold),var(--sw-pink),var(--sw-cyan)); /* @kind color */
--gradient-table-head:linear-gradient(to right,rgba(252,40,168,.4),rgba(3,237,249,.4)); /* @kind color */
}

:root{
--font-display:"Orbitron","Roboto","Noto Sans TC","PingFang TC",sans-serif; /* Han falls through to the body face at the heading's weight (2026-10-12) */
--font-sans:"Roboto","Noto Sans TC","PingFang TC","Hiragino Sans",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; /* Han face named BEFORE system-ui — Chrome's print path ends the chain at system-ui and drops Han glyphs (readme, Bilingual by default) */
--font-mono:"Fira Code","JetBrains Mono","Source Code Pro","Noto Sans TC","PingFang TC",monospace;
--font-doc:"Comfortaa","Roboto","Noto Sans TC","PingFang TC",sans-serif; /* CV / print documents */

--font-serif-tc:"Noto Serif TC","Songti TC",serif;
--font-round-tc:"Chiron GoRound TC","Noto Sans TC",sans-serif;
--font-pixel:"Fusion Pixel 12px Proportional TC","Noto Sans TC",monospace;
--font-body:var(--font-sans);
--font-heading:var(--font-display);

/* Weights actually used by the source theme */
--weight-hairline:200; /* @kind font */
--weight-light:300; /* @kind font */   /* body copy default */
--weight-regular:400; /* @kind font */
--weight-medium:500; /* @kind font */  /* h2, h4, kicker, table head */
--weight-bold:700; /* @kind font */    /* h1, title, thesis */
--weight-black:900; /* @kind font */   /* section-divider h1 */

/* Presentation scale — root 26px, em-relative like the reveal theme */
--type-root:26px;
--size-divider-h1:1.9em;
--size-title:1.5em;
--size-h1:1.9em;
--size-h2:1.35em;
--size-h3:1.15em;
--size-thesis:1.7em;
--size-thesis-horizon:2.05em;
--size-ask:1.15em;
--size-stat:1.32em;
--size-stat-lead:1.65em;
--size-kicker:.7em; /* em on every surface, web included — see readme, Two type scales */
--size-caption:.62em;
--size-dense:.82em;   /* .smaller-content */
--size-tight:.72em;   /* .tight */

--leading-display:1.15; /* @kind font */
--leading-thesis:1.2; /* @kind font */
--leading-body:1.5; /* @kind font */
--tracking-display:.02em; /* @kind font */
--tracking-tight:.01em; /* @kind font */
--tracking-kicker:.28em; /* @kind font */

/* The Thesis measure is in em, not ch (ruled 2026-10-23). A ch is the width of the face's "0",
   and daylight swaps the display face: 22ch is 18.35em in Orbitron 700 but 12.72em in
   Comfortaa 700 (measured from the font files, 2026-10-23), so a lead that fits at night
   overflowed by a word on paper and left "of" alone on a line. 18em is the Orbitron value
   the rule was written against, now the same real width in every face. */
--measure-thesis:18em; /* @kind font */
--measure-thesis-horizon:15em; /* @kind font */

/* ── Web scale — root 16px, ten steps, rem-relative ───────────────────────
   Separate from the presentation scale above: slides scale as a whole from a
   26px root, web surfaces do not. Ten steps, named for their px value at the
   default root. Nothing between steps; every literal in a web surface snaps. */
--web-root:16px; /* @kind font */
--web-10:.625rem;
--web-12:.75rem;
--web-13:.8125rem;
--web-15:.9375rem;   /* body default */
--web-17:1.0625rem;  /* lead paragraph, card title */
--web-19:1.1875rem;  /* lede, list-row title */
--web-24:1.5rem;
--web-27:1.6875rem;  /* page h2 */
--web-38:2.375rem;   /* post h1 */
--web-52:3.25rem;    /* hero h1 — steps to 38 then 27 */
}

:root{
/* em-based rhythm (presentation surfaces scale with the slide) */
--space-3xs:.1em;
--space-2xs:.22em;
--space-xs:.35em;
--space-sm:.6em;
--space-md:.8em;
--space-lg:1em;
--space-xl:1.3em;
--space-2xl:1.9em;

/* px scale for web surfaces */
--px-1:4px;
--px-2:8px;
--px-3:12px;
--px-4:16px;
--px-5:24px;
--px-6:32px;
--px-7:48px;
--px-8:64px;
--px-9:96px;

/* Radii — the source theme's exact values, no snapping */
--radius-inline:.35em;
--radius-sm:.25em;
--radius-panel:.5em;
--radius-box:.55rem;
--radius-code:.6rem;
--radius-card:.65rem;
--radius-pill:999px;
--radius-round:50%;

/* Structural constants */
--slide-w:1280px; /* @kind spacing */
--slide-h:720px; /* @kind spacing */
--slide-margin:.06; /* @kind spacing */
--grid-tile:5.5vw; /* @kind spacing */
--portrait-size:172px; /* @kind spacing */
--portrait-ring:4px; /* @kind spacing */
--qr-size:92px; /* @kind spacing */
--content-max:1120px; /* @kind spacing */

/* Web breakpoints. Documentation constants — CSS custom properties cannot be
   used inside @media, so the two values are written literally in
   tokens/web-surface.css and must be changed in both places. */
--bp-split:900px; /* @kind spacing */  /* content splits collapse to one column */
--bp-hand:600px; /* @kind spacing */   /* header unsticks, nav wraps, display type steps down */
}

:root{
/* ── Neon text shadows: tight white core + wide coloured bloom ───────────── */
/* The five --glow-<hue> primitives are NIGHT values and are read only through the
   --text-shadow-* aliases below: a screen reads the alias, never the primitive. Each primitive
   still carries a daylight (none) and an afterglow (ember) value in registers.css, as the guard
   behind that rule (2026-10-27; README, Afterglow → Ember glow). */
--glow-soft:0 0 2px #100c0f;
--glow-pink:0 0 1px #fff6,0 0 7px #fc28a8aa,0 0 18px #fc28a866;
--glow-cyan:0 0 1px #fff6,0 0 7px #03edf9aa,0 0 18px #03edf966;
--glow-green:0 0 1px #fff6,0 0 7px #72f1b8aa,0 0 16px #72f1b855;
--glow-gold:0 0 1px #fff6,0 0 7px #ffcc66aa,0 0 16px #f39f0555;
--glow-red:0 0 2px #000,0 0 8px #fc1f2caa,0 0 22px #fc1f2c66;

--text-shadow-pink:var(--glow-soft),var(--glow-pink);
--text-shadow-cyan:var(--glow-soft),var(--glow-cyan);
--text-shadow-green:var(--glow-soft),var(--glow-green);
--text-shadow-gold:var(--glow-soft),var(--glow-gold);
--text-shadow-red:var(--glow-red);
/* The Thesis body's glow (2026-10-23): a faint cyan sheen under white Orbitron — the one glow
   that is not one of the five neon roles, because the Thesis is white. It was a literal in
   Thesis.jsx and the site for two months and so stayed cyan under afterglow; it re-binds now
   (daylight none, afterglow ember). README, Afterglow; Thesis guide. */
--glow-thesis:0 0 10px rgba(3,237,249,.18);
--text-shadow-thesis:var(--glow-soft),var(--glow-thesis);

/* Bloom for gradient-filled text (text-shadow can't escape a clipped fill) */
--bloom-gradient:drop-shadow(0 0 10px rgba(252,40,168,.55)) drop-shadow(0 0 2px rgba(255,255,255,.35)); /* @kind other */
--bloom-keyword:drop-shadow(0 0 10px rgba(252,40,168,.5)); /* @kind other */

/* ── Box shadows — inner wash + outer halo, never a drop shadow ──────────── */
--shadow-code:0 0 25px rgba(0,0,0,.6),inset 0 0 30px rgba(3,237,249,.04);
--shadow-box:inset 0 0 24px rgba(109,119,179,.08),0 0 14px rgba(3,237,249,.10);
--shadow-card:inset 0 0 28px rgba(109,119,179,.12),0 0 18px rgba(3,237,249,.10);
--shadow-portrait:0 0 18px rgba(3,237,249,.40),0 0 50px rgba(252,40,168,.20);
--shadow-chip:0 0 10px rgba(0,0,0,.8);
--shadow-progress:0 0 15px rgba(252,40,168,.75);
--ring-hover-pink:0 0 0 1px rgba(252,40,168,.6);

/* Focus — never the UA outline. 2px cyan at 3px offset plus the cyan bloom;
   distinct from the 1px pink hover ring by both width and hue. Inside a
   cyan-edged panel the ring goes gold so it does not merge with the edge. */
--focus-ring:2px solid var(--sw-cyan); /* @kind other */
--focus-ring-warm:2px solid var(--sw-gold); /* @kind other */
--focus-offset:3px; /* @kind other */
--focus-bloom:0 0 12px rgba(3,237,249,.45);
--focus-bloom-warm:0 0 12px rgba(255,204,102,.40);

/* ── Control halos (v2, 2026-08-28) — tokenised from the kit's JS literals ── */
--halo-action:0 0 14px rgba(249,42,173,.18);
--halo-action-hover:0 0 14px rgba(249,42,173,.30);
--halo-field-focus:0 0 12px rgba(3,237,249,.22); /* the field's own "you are typing here" glow, on ANY focus; the keyboard :focus-visible ring from web-surface.css lands on top — they compose, not compete */
--halo-cyan-active:0 0 14px rgba(3,237,249,.18); /* the selected pill's halo (Publications filter; README Selected and hover, 2026-10-15) — was a literal in the kit and the site; none under daylight; a faint ember under afterglow since 2026-10-23 */

/* ── Atmosphere ──────────────────────────────────────────────────────────── */
--scanlines:repeating-linear-gradient(to bottom,rgba(0,0,0,.10) 0px,rgba(0,0,0,.10) 1px,transparent 1px,transparent 3px); /* @kind other */
--scanline-opacity:.35; /* @kind other */
--grid-opacity-content:.20; /* @kind other */
--grid-opacity-feature:.32; /* @kind other */
--grid-opacity-closing:.26; /* @kind other */
--grid-transform:perspective(40vh) rotateX(62deg); /* @kind other */
--grid-mask:linear-gradient(to top,#000 0%,rgba(0,0,0,.5) 35%,transparent 75%); /* @kind other */
--bg-image-opacity:.1; /* @kind other */ /* album-art title backgrounds */

/* Washes */
--wash-theory:linear-gradient(105deg,rgba(3,237,249,.09),rgba(109,119,179,.14) 58%,rgba(52,41,79,.34)); /* @kind other */
--wash-stat:radial-gradient(circle at 50% 0%,rgba(3,237,249,.12),transparent 52%); /* @kind other */
--wash-quote:linear-gradient(to right,rgba(252,40,168,.08),transparent); /* @kind other */
--wash-stage-warm:radial-gradient(ellipse 60% 78% at 14% 24%,rgba(249,42,173,.16) 0%,rgba(255,204,102,.06) 42%,transparent 82%); /* @kind other */
--wash-stage-cool:radial-gradient(ellipse 52% 66% at 90% 52%,rgba(3,237,249,.12) 0%,transparent 80%); /* @kind other */
--wash-horizon:radial-gradient(ellipse 90% 78% at 50% 70%,rgba(255,204,102,.20) 0%,rgba(252,40,168,.13) 45%,rgba(109,119,179,.06) 70%,transparent 95%); /* @kind other */
}

:root{
--ease-default:ease; /* @kind other */
--dur-hover:.2s; /* @kind other */
--dur-atmosphere:1.2s; /* @kind other */
--grid-speed-content:3s; /* @kind other */
--grid-speed-feature:1.25s; /* @kind other */
--grid-speed-closing:6s; /* @kind other */
}
@keyframes sw-grid-scroll{from{background-position:0 0,0 0}to{background-position:0 0,0 5.5vw}}
@media (prefers-reduced-motion:reduce){:root{--grid-speed-content:0s /* @kind other */}}

/* ─────────────────────────────────────────────────────────────────────────────
   REGISTERS — a register is a URL-addressable state of the whole surface,
   expressed as ONE attribute on the document root:
     <html data-register="daylight">      ←  #/daylight/…
     <html data-register="afterglow">     ←  #/afterglow/…
   (After Hours was retired as a register 2026-08-27 — it is now the page
   /not-for-review/ in the base register.)
   No attribute = the base register. Registers work by re-binding tokens: the
   kit is inline-styled, but inline styles consume var(), so a re-binding
   cascades without touching a screen. The few things tokens cannot reach
   (an animation-duration literal, which <img> renders) use data-* hooks with
   !important — the same pattern as web-surface.css. Decks and documents may
   set the same attribute on their root.  See readme.md, "Registers".
   ───────────────────────────────────────────────────────────────────────────── */

:root{--imagery-presence:.22 /* @kind other */} /* how present a hero ink-wash is; base = atmosphere */
[data-imagery="day"]{display:none}
/* The listening card follows registers (2026-08-28): night and daylight render the
   full card (chrome re-binds; artwork unaltered). AFTERGLOW does not fetch at all —
   the page renders the card's down row as static text and never loads the frame
   (decided 2026-08-28: the register's claim is that the site recedes, and a Spotify
   fetch to paint seven grey lines breaks it; the down row claims nothing it does not
   know). The reduction below stays for DIRECT renders — a deck, document, or kit
   screen that sets data-register="afterglow" with the card in the page — and the
   stale as-of line survives into the text rows, in the register's own gold. */
[data-register="afterglow"] [data-listening-full]{display:none!important}
[data-register="afterglow"] [data-listening-text]{display:block!important}

/* ── DAYLIGHT (Register B) — the print inversion on screen ───────────────────
   Paper ground, ink text, #006E9D where cyan was, Comfortaa as the display
   face, the grid redrawn in ink and standing still. Zero neon, zero glow,
   zero scanlines. The --sw-* names re-bind to ink values: under a register
   the names are ROLES, not hues (provisional — readme, "Registers").        */
[data-register="daylight"]{
  --sw-bg:#f7f2e7;--sw-bg-alt:#efe9da;--sw-bg-deep:#eae2cf;
  --sw-fg:#26222b;--sw-muted:#4d4750;--sw-ink:#fdfdfd;
  --sw-pink:#1c1826;--sw-pink-strong:#1c1826;
  --sw-cyan:#006e9d;
  --sw-purple:#6e6879;--sw-orange:#7a5a3a;--sw-gold:#8c6a2f;--sw-green:#3f6e4f;
  --sw-red:#b3001b;
  --font-display:"Comfortaa","Roboto","Noto Sans TC","PingFang TC",sans-serif; /* @kind font */ /* the print face IS the display face here */
  --gradient-sunset:linear-gradient(#1c1826,#1c1826); /* @kind color */       /* the sun does not rise here — */
  --gradient-sunset-wide:linear-gradient(#1c1826,#1c1826); /* @kind color */  /* flat ink; no gradient use is spent */
  --gradient-canvas:linear-gradient(to bottom,#f7f2e7 55%,#f3ecdd 80%,#ece4d0); /* @kind color */
  --gradient-chrome-ring:linear-gradient(#006e9d,#006e9d); /* @kind color */
  --gradient-progress:linear-gradient(#006e9d,#006e9d); /* @kind color */
  --gradient-table-head:linear-gradient(to right,rgba(0,110,157,.14),rgba(0,110,157,.14)); /* @kind color */
  --glow-soft:none; /* @kind other */ --text-shadow-pink:none; /* @kind other */ --text-shadow-cyan:none; /* @kind other */ --text-shadow-green:none; /* @kind other */ --text-shadow-gold:none; /* @kind other */ --text-shadow-red:none; /* @kind other */ --glow-thesis:none; /* @kind other */ --text-shadow-thesis:none; /* @kind other */
  --glow-pink:none; /* @kind other */ --glow-cyan:none; /* @kind other */ --glow-green:none; /* @kind other */ --glow-gold:none; /* @kind other */ --glow-red:none; /* @kind other */ /* the five night primitives (effects.css) are read only through the --text-shadow-* aliases above; re-bound here anyway so a direct var(--glow-<hue>) cannot glow on paper (2026-10-27) */
  --bloom-gradient:none; /* @kind other */ --bloom-keyword:none; /* @kind other */
  --shadow-code:none; /* @kind shadow */ --shadow-box:none; /* @kind shadow */ --shadow-card:none; /* @kind shadow */ --shadow-portrait:none; /* @kind shadow */ --shadow-chip:none; /* @kind shadow */ --shadow-progress:none; /* @kind shadow */
  --ring-hover-pink:0 0 0 1px rgba(0,110,157,.45); /* @kind shadow */
  --focus-bloom:none; /* @kind other */ --focus-bloom-warm:none; /* @kind other */
  --scanlines:none; /* @kind other */ --scanline-opacity:0; /* @kind other */
  --hero-scrim:linear-gradient(to right,rgba(247,242,231,.92) 0%,rgba(247,242,231,.62) 48%,rgba(247,242,231,.18) 100%); /* @kind other */ /* the Imagery rule's scrim, in paper — B9, 2026-08-27 */
  --grid-line-cyan:rgba(0,110,157,.30);--grid-line-pink:rgba(38,34,43,.20);
  --border-hairline:rgba(38,34,43,.16);--border-cyan:rgba(0,110,157,.45);--border-cyan-quiet:rgba(0,110,157,.32);--border-pink:rgba(28,24,38,.45);--border-purple:rgba(38,34,43,.24);
  --surface-topbar:rgba(247,242,231,.82); /* @kind color */ /* the sticky header's paper scrim */
  --surface-card:rgba(255,253,247,.55);--surface-code:#efe9da;--surface-code-inline:rgba(38,34,43,.06);--surface-scrim:rgba(247,242,231,.55);--surface-row-odd:rgba(0,110,157,.06);
  --selection-bg:rgba(0,110,157,.22);
  --surface-field:rgba(38,34,43,.05);--surface-tray:rgba(38,34,43,.04);
  --wash-cyan-faint:rgba(0,110,157,.05);--wash-cyan-quiet:rgba(0,110,157,.07);--wash-cyan-active:rgba(0,110,157,.10);--wash-pink-faint:rgba(28,24,38,.05);--wash-gold-faint:rgba(140,106,47,.08);
  --border-gold:rgba(140,106,47,.6);
  --halo-action:none; /* @kind shadow */ --halo-action-hover:none; /* @kind shadow */ --halo-field-focus:none; /* @kind shadow */ --halo-cyan-active:none; /* @kind shadow */
  --wash-theory:linear-gradient(105deg,rgba(0,110,157,.06),rgba(0,110,157,.03) 58%,transparent); /* @kind other */
  --wash-stat:none; /* @kind other */ --wash-quote:linear-gradient(to right,rgba(0,110,157,.06),transparent); /* @kind other */
  --wash-stage-warm:none; /* @kind other */ --wash-stage-cool:none; /* @kind other */ --wash-horizon:none; /* @kind other */
}
[data-register="daylight"] [data-grid-floor]{animation:none!important} /* B is still */
[data-register="daylight"] [data-imagery="night"]{display:none!important}
[data-register="daylight"] [data-imagery="day"]{display:block!important}
[data-register="daylight"] [data-fof-figure]{color:var(--sw-red)!important;text-shadow:none!important} /* print red, no glow */

/* ── AFTERGLOW (the third register) — the light after the screens are off ─────
   Truly isolated, dreamy, warm, hopeful, nostalgic (MJ, 2026-08-27). The SITE
   RECEDES: warm-dark ground, embers where neon was, ember glow (faint, one hue —
   ruled 2026-10-23; "zero glow" until then), zero scanlines,
   imagery pulled back and warmed. The grid floor — the system's most
   recognisable element — dissolves into a horizon of afterglow light with ONE
   slow drift, the register's only motion. Roles, not hues, as under daylight.
   Entrance: the 404's vanishing point, or the plain URL. Named 2026-08-27:
   the sunset gradient is what this place is — after the sun has gone.       */
[data-register="afterglow"]{
  --sw-bg:#231a1f;--sw-bg-alt:#2b2026;--sw-bg-deep:#181117;
  --sw-fg:#e9ddce;--sw-muted:#cfc0ae;--sw-ink:#100c0f;
  --sw-pink:#d9906e;--sw-pink-strong:#e0a27c;
  --sw-cyan:#d9a066; /* links: dim amber — roles, not hues */
  --sw-purple:#8d7f77;--sw-orange:#d98d66;--sw-gold:#e8b877;--sw-green:#b3a878;
  --sw-red:#b3554a;
  --gradient-sunset:linear-gradient(#e8b877,#e8b877); /* @kind color */      /* flat ember — */
  --gradient-sunset-wide:linear-gradient(#e8b877,#e8b877); /* @kind color */ /* no gradient use is spent here */
  --gradient-canvas:linear-gradient(to bottom,#231a1f 40%,#2b2026 75%,#181117); /* @kind color */
  --gradient-chrome-ring:linear-gradient(#8d7f77,#8d7f77); /* @kind color */
  --gradient-progress:linear-gradient(#e8b877,#e8b877); /* @kind color */
  --gradient-table-head:linear-gradient(to right,rgba(232,184,119,.12),rgba(232,184,119,.12)); /* @kind color */
  /* EMBER GLOW (ruled 2026-10-23; supersedes "zero glow"). MJ: a little glow still makes sense in
     afterglow, it just must not be cyan. One glow, one hue — ember — at about half the night
     strength (night: 7px at aa + 18px at 66; here 6px at .45 + 14px at .22), on exactly the
     things that glow at night: every --text-shadow-* role resolves to the same ember, the
     Thesis sheen goes ember, and the gradient text (hero h1, Thesis keyword) keeps a faint ember
     drop-shadow in place of the pink bloom. Boxes do not glow: the card, box, chip, code and
     portrait shadows stay none — the site still recedes; glow is on type and on the states a
     reader is acting on, so the four control halos below (action, action-hover, field-focus,
     cyan-active) take a faint ember (comment corrected 2026-10-27 to say what the README and the
     values below already said). The five night primitives --glow-<hue> re-bind to the ember too,
     and the grid lines to ember at daylight's alphas: nothing reads either directly today (the
     aliases carry the glow; the afterglow grid is the !important horizon below), so these are
     guards, not tuned values. */
  --glow-soft:0 0 2px #100c0f; /* @kind other */
  --glow-ember:0 0 1px #fff3,0 0 6px rgba(232,184,119,.45),0 0 14px rgba(232,184,119,.22); /* @kind other */
  --text-shadow-pink:var(--glow-soft),var(--glow-ember); /* @kind other */ --text-shadow-cyan:var(--glow-soft),var(--glow-ember); /* @kind other */ --text-shadow-green:var(--glow-soft),var(--glow-ember); /* @kind other */ --text-shadow-gold:var(--glow-soft),var(--glow-ember); /* @kind other */ --text-shadow-red:var(--glow-soft),var(--glow-ember); /* @kind other */
  --glow-pink:var(--glow-ember); /* @kind other */ --glow-cyan:var(--glow-ember); /* @kind other */ --glow-green:var(--glow-ember); /* @kind other */ --glow-gold:var(--glow-ember); /* @kind other */ --glow-red:var(--glow-ember); /* @kind other */
  --glow-thesis:0 0 10px rgba(232,184,119,.18); /* @kind other */ --text-shadow-thesis:var(--glow-soft),var(--glow-thesis); /* @kind other */
  --bloom-gradient:drop-shadow(0 0 8px rgba(232,184,119,.30)); /* @kind other */ --bloom-keyword:drop-shadow(0 0 8px rgba(232,184,119,.30)); /* @kind other */
  --shadow-code:none; /* @kind shadow */ --shadow-box:none; /* @kind shadow */ --shadow-card:none; /* @kind shadow */ --shadow-portrait:none; /* @kind shadow */ --shadow-chip:none; /* @kind shadow */ --shadow-progress:none; /* @kind shadow */
  --ring-hover-pink:0 0 0 1px rgba(232,184,119,.4); /* @kind shadow */
  --focus-ring:2px solid #e8b877; /* @kind other */ --focus-bloom:0 0 12px rgba(232,184,119,.35); /* @kind other */ --focus-bloom-warm:0 0 12px rgba(232,184,119,.35); /* @kind other */
  --scanlines:none; /* @kind other */ --scanline-opacity:0; /* @kind other */
  --imagery-presence:.12; /* @kind other */ --bg-image-opacity:.06; /* @kind other */
  --grid-line-cyan:rgba(232,184,119,.30);--grid-line-pink:rgba(217,141,102,.20); /* ember lines — --sw-gold at daylight's .30, --sw-orange at its .20; painted over by the horizon hook below, so on-register rather than tuned by eye (2026-10-27) */
  --border-hairline:rgba(233,221,206,.10);--border-cyan:rgba(217,160,102,.35);--border-cyan-quiet:rgba(217,160,102,.25);--border-pink:rgba(224,162,124,.35);--border-purple:rgba(141,127,119,.32);
  --surface-topbar:rgba(24,17,23,.55); /* @kind color */
  --surface-card:rgba(43,32,38,.5);--surface-code:#2b2026;--surface-code-inline:rgba(16,12,15,.6);--surface-scrim:rgba(24,17,23,.55);--surface-row-odd:rgba(43,32,38,.35);
  --selection-bg:rgba(232,184,119,.25);
  --surface-field:rgba(16,12,15,.35);--surface-tray:rgba(16,12,15,.3);
  --wash-cyan-faint:rgba(232,184,119,.05);--wash-cyan-quiet:rgba(232,184,119,.07);--wash-cyan-active:rgba(232,184,119,.10);--wash-pink-faint:rgba(224,162,124,.07);--wash-gold-faint:rgba(232,184,119,.07);
  --border-gold:rgba(232,184,119,.5);
  --halo-action:0 0 12px rgba(232,184,119,.14); /* @kind shadow */ --halo-action-hover:0 0 12px rgba(232,184,119,.22); /* @kind shadow */ --halo-field-focus:0 0 10px rgba(232,184,119,.16); /* @kind shadow */ --halo-cyan-active:0 0 12px rgba(232,184,119,.14); /* @kind shadow */ /* the selected and the actionable keep a faint ember halo: these are the states that glow at night (2026-10-23) */
  --wash-theory:linear-gradient(105deg,rgba(232,184,119,.06),rgba(232,184,119,.03) 58%,transparent); /* @kind other */
  --wash-stat:none; /* @kind other */ --wash-quote:linear-gradient(to right,rgba(232,184,119,.06),transparent); /* @kind other */
  --wash-stage-warm:radial-gradient(ellipse 70% 60% at 50% 92%,rgba(232,164,102,.12) 0%,transparent 75%); /* @kind other */ --wash-stage-cool:none; /* @kind other */ --wash-horizon:none; /* @kind other */
  --hero-scrim:linear-gradient(to right,rgba(24,17,23,.7) 0%,rgba(24,17,23,.35) 55%,transparent 100%); /* @kind other */
}
/* The grid dissolves into afterglow: the same [data-grid-floor] element on every
   screen re-renders as a warm horizon glow with one slow drift — the register's
   only motion. */
[data-register="afterglow"] [data-grid-floor]{background-image:radial-gradient(ellipse 68% 88% at 50% 100%,rgba(238,166,92,.30) 0%,rgba(180,100,70,.12) 46%,transparent 78%)!important;background-size:220% 160%!important;background-position:34% 100%!important;transform:none!important;-webkit-mask-image:none!important;mask-image:none!important;animation:ag-drift 52s ease-in-out infinite alternate!important;opacity:.6!important}
@keyframes ag-drift{from{background-position:34% 100%}to{background-position:66% 100%}}
[data-register="afterglow"] [data-imagery]{filter:sepia(.5) saturate(.55) brightness(.9)!important}
[data-register="afterglow"] [data-affiliation]{opacity:.55}
@media (prefers-reduced-motion:reduce){[data-register="afterglow"] [data-grid-floor]{animation:none!important}}

/* ─────────────────────────────────────────────────────────────────────────────
   WEB SURFACES — the three rules that cannot be expressed as tokens:
   the root size, :focus-visible, and the two breakpoints below the 1120px cap.

   Hooks are data-* attributes, not classes, because the website kit is styled
   entirely with inline styles — an inline style beats a stylesheet rule, so the
   responsive overrides below must carry !important. If the site is ever moved
   to classes, drop the !important and the data-* hooks with it.
   ───────────────────────────────────────────────────────────────────────────── */

:root{font-size:var(--web-root)}

/* ── Focus ─────────────────────────────────────────────────────────────────── */
a:focus-visible,[data-focusable]:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:var(--focus-ring);outline-offset:var(--focus-offset);box-shadow:var(--focus-bloom)}
/* Inside a cyan-edged panel a cyan ring disappears into the panel edge. */
[data-panel="cyan"] a:focus-visible,[data-panel="cyan"] [data-focusable]:focus-visible,[data-panel="cyan"] button:focus-visible{outline:var(--focus-ring-warm);outline-offset:2px;box-shadow:var(--focus-bloom-warm)}

/* ── ≤900px: content splits collapse ───────────────────────────────────────── */
@media (max-width:900px){
  [data-split]{grid-template-columns:1fr!important;gap:var(--px-5)!important}
  [data-split-aside]{order:2}
  [data-hero-frame]{min-height:420px!important}
  [data-hero-title]{font-size:var(--web-38)!important}
  [data-hero-lede]{font-size:var(--web-17)!important}
}

/* ── ≤600px: header unsticks and wraps, display type steps down ────────────── */
@media (max-width:600px){
  [data-topbar]{position:static!important;flex-direction:column!important;align-items:flex-start!important;gap:var(--px-3)!important;padding:var(--px-4) var(--px-5)!important}
  [data-topbar-nav]{flex-wrap:wrap;row-gap:10px!important;column-gap:var(--px-4)!important}
  [data-pad]{padding-left:var(--px-5)!important;padding-right:var(--px-5)!important}
  [data-hero]{padding-left:var(--px-5)!important;padding-right:var(--px-5)!important}
  [data-hero-title]{font-size:var(--web-27)!important}
  [data-post-title]{font-size:var(--web-27)!important}
  [data-page-title]{font-size:var(--web-24)!important}
  [data-gutter]{grid-template-columns:1fr!important;gap:var(--px-2)!important}
  [data-register-toggle]{border-left:none!important;padding-left:0!important;margin-left:0!important} /* in the wrapped nav the divider reads as noise */
  [data-listening-grid]{grid-template-columns:repeat(4,minmax(0,1fr))!important} /* twelve covers → three rows of four — NOT three-across: at a 599px frame that is 175px covers stacked four deep, a wall of art; minmax(0,…) so a nowrap title cannot refuse to shrink (2026-08-28) */
  [data-listening-artists]{grid-template-columns:repeat(3,minmax(0,1fr))!important} /* five hero artists → 3 + 2, ragged last row. Five across at 375px is a 54px image under an unreadable name (round 4, 2026-08-28) */
  [data-workshop-rail]{flex-direction:row!important;flex-wrap:wrap;column-gap:12px!important;row-gap:2px!important;align-items:baseline} /* the collapsed 104px rail becomes ONE inline line — kind · year · state — above the title, not three stacked lines pretending to still be a column (round 5, 2026-08-30) */
  [data-photo-board-row]{flex-wrap:wrap!important} /* a justified row needs width: three tiles across a 375px screen is a 110px photograph. Wrapping two-up trades the exact-height guarantee for ratio-true pictures, which is the right way round (2026-08-30) */
  [data-photo-board-row] > a{flex-basis:44%!important}
  [data-filmstrip-cell],[data-filmstrip-cell] > *{flex-basis:84px!important;height:63px!important} /* the selector shrinks rather than showing two cells: a strip that cannot be scanned is not a selector (2026-08-31). The cell is a list item wrapping the link, so both take the size (2026-09-01) */
}

/* ── The filmstrip's track: no scrollbar, and it does not print ────────────────
   The strip is a control — paper has no selection — so the viewer prints as the
   plate it is showing. Hiding the bar is not decoration: a horizontal bar under a
   106px cell is a third of the cell's height, and the strip is circular, so a bar
   would report a position that does not mean anything. */
[data-filmstrip-track]::-webkit-scrollbar{display:none}
@media print{[data-filmstrip]{display:none!important}}

/* ── The embedded-fragment height contract (2026-08-28) ────────────────────────
   An iframe cannot follow its content's height without script on both sides, and
   v1 pages ship zero JS — so an embedded fragment DECLARES its height and the page
   reads the declaration instead of measuring builds. ONE reserve per fragment, a
   function of the frame's own width (the thing that actually drives the card's
   height): the wrapper is an inline-size container, the iframe is sized in cqw,
   and — because the fragment's internal ≤600px media query sees the IFRAME's
   width — the reserve and the fragment's layout switch at the same real width.
   The reserve covers the tallest state (stale, held-artist mark present, measured
   2026-08-28 + headroom; any card edit that changes heights re-measures HERE).
   Shorter states are centred vertically BY THE FRAGMENT DOCUMENT ITSELF
   (html,body{height:100%}; body a centring grid), so a short answer reads as
   quiet, not as a hole. A frame is admitted only when the page cannot know the
   answer at build time: under afterglow, or with no log configured, the page
   renders the card's down row as its own text — no frame, no reserve. */
[data-listening-frame]{container-type:inline-size;display:block}
[data-listening-frame] iframe{display:block;width:100%;border:0;height:958px}
@container (width > 600px){[data-listening-frame] iframe{height:max(754px,calc(396px + 50.2cqw))}}
@container (width <= 600px){[data-listening-frame] iframe{height:max(1087px,calc(450px + 141.3cqw))}}
/* The windows (2026-10-14: one image row + two one-line rows, whichever window is
   open) — refitted 2026-10-15 from the site's measurement of the tallest state
   (stale, held mark present, each window open in turn, headless Chrome 155 with
   fonts loaded) at 17 frame widths; the table is in
   returns/2026-10-15-0011-site-rulings-and-copy.md. Same slopes as round 4;
   intercepts and floors set so the reserve clears the measured maximum by AT
   LEAST 16px at every measured width (the headroom policy — README, ListeningCard
   guide): 1120 → 958 (measured 936) · 700 → 754, the floor (731) · 633 → 754
   (738) · 600 → 1298 (1268) · 480 → 1128 (1112) · 375 → 1087, the floor (1058).
   Round 4's reserve had 0–8px of headroom and was short at 15 of 17 widths a
   month later, partly from font and browser drift alone: re-measure on any card
   edit, and whenever the site sees a scrollbar in the frame. Static fallback 958px
   is the widest real frame's reserve — container queries are the path that runs. */

/* ── Print: the listening card prints as text rows ─────────────────────────────── */
@media print{[data-listening-full]{display:none!important}[data-listening-text]{display:block!important}}

/* ── Portrait aspect: coarsen the grid horizon ─────────────────────────────────
   A 5.5vw tile on a narrow viewport compresses rows near the horizon into
   moiré. Doubling the tile, capping the height, and dropping to one flat
   opacity keeps the horizon legible as a horizon. Splay stays ±35%.        */
@media (max-aspect-ratio:1/1){
  [data-grid-floor]{--grid-tile:11vw;max-height:40vh!important;opacity:.16!important}
}
