@charset "utf-8";
/* ==========================================================================
   WAFFLE GAME — broadsheet
   A daily puzzle arrives like a morning paper, so the page is set as one:
   dated masthead, rule-driven columns, hanging indents, mono metadata.
   No rounded corners (print has none). Colour appears only where the game
   itself assigns meaning — green / yellow / grey are the puzzle's vocabulary.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */

:root {
  /* Paper & ink */
  --paper:        oklch(0.93 0.025 75);
  --paper-raised: oklch(0.96 0.015 80);
  --paper-sunk:   oklch(0.98 0.010 80);
  --ink:          oklch(0.25 0.02 60);
  --ink-soft:     oklch(0.45 0.02 60);
  /* 0.50, not 0.58: at 0.58 this measured 3.50:1 on paper — below WCAG AA for
     the 10–11px metadata it is used on. 0.50 gives 4.89:1 and still reads faint. */
  --ink-faint:    oklch(0.50 0.02 65);

  /* Section marks — the blue of an editor's pen */
  --mark:         oklch(0.45 0.12 250);
  --mark-weak:    oklch(0.88 0.03 250);

  /* The puzzle's own three colours. These never change meaning. */
  --tile-green:   oklch(0.62 0.15 145);
  --tile-green-ink: oklch(0.42 0.12 145);
  --tile-yellow:  oklch(0.80 0.14 90);
  --tile-grey:    oklch(0.62 0.01 85);

  /* Rules */
  --rule-hair:    oklch(0.72 0.02 75);
  --rule-thin:    oklch(0.60 0.02 75);
  --rule-heavy:   var(--ink);

  /* Type */
  --face-display: "Zilla Slab", "Bookman Old Style", "Zilla Fallback", Georgia, serif;
  --face-text:    Spectral, Georgia, "Times New Roman", serif;
  --face-meta:    "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Measure & rhythm */
  --page:   1120px;
  --gutter: 22px;
  --step:   1.6;

  --focus:  oklch(0.55 0.19 25);

  color-scheme: light;
}

/* The night edition. "Lights off" is a control the game already has —
   here it turns the paper over rather than inventing a new theme. */
:root[data-edition="night"] {
  --paper:        oklch(0.19 0.012 65);
  --paper-raised: oklch(0.23 0.014 65);
  --paper-sunk:   oklch(0.16 0.010 65);
  --ink:          oklch(0.92 0.014 82);
  --ink-soft:     oklch(0.75 0.015 78);
  --ink-faint:    oklch(0.62 0.015 72);
  --mark:         oklch(0.78 0.11 245);
  --mark-weak:    oklch(0.34 0.05 250);
  --rule-hair:    oklch(0.34 0.014 65);
  --rule-thin:    oklch(0.44 0.016 65);
  --rule-heavy:   oklch(0.72 0.02 70);
  --focus:        oklch(0.78 0.16 30);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-edition="day"]) {
    --paper:        oklch(0.19 0.012 65);
    --paper-raised: oklch(0.23 0.014 65);
    --paper-sunk:   oklch(0.16 0.010 65);
    --ink:          oklch(0.92 0.014 82);
    --ink-soft:     oklch(0.75 0.015 78);
    --ink-faint:    oklch(0.62 0.015 72);
    --mark:         oklch(0.78 0.11 245);
    --mark-weak:    oklch(0.34 0.05 250);
    --rule-hair:    oklch(0.34 0.014 65);
    --rule-thin:    oklch(0.44 0.016 65);
    --rule-heavy:   oklch(0.72 0.02 70);
    --focus:        oklch(0.78 0.16 30);
    color-scheme: dark;
  }
}

/* Metric-matched fallback for the display face.
   Zilla Slab and Bookman Old Style measure within 0.4% of each other, so where
   Bookman exists the webfont swap is invisible. Everywhere else the stack fell
   through to Georgia, which set headlines ~3% wide on this path — enough to
   reflow an h1 when the webfont landed. 97% was measured, not guessed: it puts
   the fallback within 0.1% of Zilla Slab's advance width for the masthead
   string, so the swap costs no layout shift. */
@font-face {
  font-family: "Zilla Fallback";
  src: local("Georgia"), local("Times New Roman"), local("Liberation Serif");
  size-adjust: 97%;
  font-weight: 400 700;
  font-style: normal;
}

/* ---------- 2. Reset & base --------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--face-text);
  font-size: 17px;               /* mobile reads first */
  line-height: var(--step);
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 720px) { body { font-size: 16px; } }

h1, h2, h3, h4 { font-family: var(--face-display); font-weight: 700; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0 0 0.9em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-color: var(--mark); text-underline-offset: 0.18em; text-decoration-thickness: from-font; }
a:hover { text-decoration-color: currentColor; }

img { max-width: 100%; height: auto; display: block; }
iframe { border: 0; display: block; }
::selection { background: var(--tile-yellow); color: oklch(0.25 0.02 60); }

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.u-visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper-raised);
  font-family: var(--face-meta); font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; padding: 11px 16px; text-decoration: none;
  transition: top .15s;
}
.skip:focus { top: 8px; }

.shell { max-width: var(--page); margin-inline: auto; padding-inline: var(--gutter); }

/* Editorial label — the small mono line that sits above things */
.label {
  font-family: var(--face-meta);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mark);
  margin: 0;
}
.label--quiet { color: var(--ink-faint); }

/* Section mark: heading, then a short heavy stroke under it */
.mark { display: block; width: 54px; height: 3px; background: var(--mark); margin: 6px 0 14px; }

/* ---------- 3. Folio: the top strip -------------------------------------- */

.folio {
  background: var(--mark);
  color: oklch(0.97 0.02 95);
  font-family: var(--face-meta);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
:root[data-edition="night"] .folio,
.folio { --folio-ink: oklch(0.97 0.02 95); }
:root[data-edition="night"] .folio { background: oklch(0.30 0.07 250); }
@media (prefers-color-scheme: dark) {
  :root:not([data-edition="day"]) .folio { background: oklch(0.30 0.07 250); }
}

.folio__in {
  max-width: var(--page); margin-inline: auto; padding: 11px var(--gutter);
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  align-items: center; justify-content: space-between;
}
.folio a { text-decoration: none; }
.folio a:hover { text-decoration: underline; text-decoration-color: currentColor; }
.folio__name { font-weight: 700; }

/* Mobile: the nav becomes an edge-to-edge rail that bleeds past the padding */
.folio__nav { display: flex; gap: 18px; }
@media (max-width: 719px) {
  .folio__in { display: block; padding-bottom: 0; }
  .folio__name { display: block; padding-bottom: 9px; }
  .folio__nav {
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 11px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .folio__nav::-webkit-scrollbar { display: none; }
  .folio__nav a { white-space: nowrap; }
}

/* ---------- 4. Masthead --------------------------------------------------- */

.masthead { padding: 34px 0 22px; }
.masthead__row {
  display: flex; flex-wrap: wrap; gap: 22px;
  align-items: flex-end; justify-content: space-between;
}
.masthead__lede { flex: 1 1 420px; }
.masthead h1 {
  font-size: clamp(42px, 11vw, 68px);
  line-height: .95;
  letter-spacing: -0.015em;
  margin: 8px 0 0;
}
.masthead__standfirst {
  font-style: italic;
  font-size: clamp(17px, 4.4vw, 19px);
  line-height: 1.4;
  margin: 10px 0 0;
  max-width: 40ch;
  color: var(--ink-soft);
}

/* Scoreboard — framed numerals lifted from a scorecard */
.scoreboard { display: flex; gap: 12px; }
.score {
  border: 2px solid var(--rule-heavy);
  padding: 12px 18px;
  text-align: center;
  font-family: var(--face-meta);
  min-width: 84px;
}
.score__n { font-size: 34px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.score__t { font-size: 9px; letter-spacing: .16em; text-transform: uppercase; margin-top: 4px; }
.score--par { border-color: var(--tile-green); color: var(--tile-green-ink); }
:root[data-edition="night"] .score--par { color: var(--tile-green); }
@media (prefers-color-scheme: dark) {
  :root:not([data-edition="day"]) .score--par { color: var(--tile-green); }
}

/* Mobile: the scoreboard is a strip under the title, not a floated block */
@media (max-width: 719px) {
  .masthead { padding-top: 26px; }
  .scoreboard { width: 100%; }
  .score { flex: 1; padding: 10px 12px; min-width: 0; }
  .score__n { font-size: 28px; }
}

/* ---------- 5. Player ----------------------------------------------------- */

.player { border: 2px solid var(--rule-heavy); padding: 14px; background: var(--paper-raised); }
.player__frame { position: relative; aspect-ratio: 16 / 9; background: var(--paper-sunk); border: 1px solid var(--mark); }
.player__frame > iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 719px) {
  /* A 16:9 board is unreadable on a phone — the puzzle is square-ish, so give it height */
  .player { padding: 9px; }
  .player__frame { aspect-ratio: 3 / 4; }
}

/* The drawn board doubles as the poster. The third-party frame is only
   fetched when the player asks for it, so nothing blocks the first paint. */
.facade {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 5% 5% 13%;
  background-image:
    repeating-linear-gradient(-45deg, oklch(0.65 0.06 250 / .10) 0 5px, transparent 5px 10px);
}
.board { width: 100%; height: 100%; max-width: 100%; }

.playbtn {
  position: absolute; left: 50%; bottom: 5%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--face-meta); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  background: var(--ink); color: var(--paper-raised);
  border: 2px solid var(--ink); padding: 12px 20px; cursor: pointer;
  white-space: nowrap; max-width: 92%;
  transition: background .12s, border-color .12s, color .12s;
}
.playbtn:hover { background: var(--mark); border-color: var(--mark); color: oklch(0.97 0.02 95); }
.playbtn__mark { font-size: 10px; }
@media (max-width: 480px) { .playbtn { font-size: 11px; padding: 11px 15px; letter-spacing: .1em; } }

.player__frame > iframe, .videoframe > iframe { background: var(--paper-sunk); }
.videoframe { position: relative; }

.player__bar {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: space-between; align-items: center; margin-top: 12px;
  font-family: var(--face-meta); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
}
.player__controls { display: flex; gap: 8px; flex-wrap: wrap; }

.btn {
  font: inherit; letter-spacing: inherit; text-transform: inherit;
  border: 1px solid var(--rule-heavy); background: transparent; color: inherit;
  padding: 9px 14px; cursor: pointer; text-decoration: none;
  transition: background .12s, color .12s;
}
.btn:hover { background: var(--mark-weak); text-decoration: none; }
.btn--solid { background: var(--ink); color: var(--paper-raised); border-color: var(--ink); }
.btn--solid:hover { background: var(--mark); border-color: var(--mark); color: oklch(0.97 0.02 95); }
.btn[aria-pressed="true"] { background: var(--ink); color: var(--paper-raised); border-color: var(--ink); }

.rating { letter-spacing: .04em; text-transform: none; display: flex; align-items: center; gap: 8px; }
.rating__stars { color: var(--tile-yellow); font-size: 15px; letter-spacing: .1em; }

/* Lights off: the room dims around the board so only the puzzle is lit */
body.is-dimmed .dimmer { opacity: 1; pointer-events: auto; }
.dimmer {
  position: fixed; inset: 0; background: oklch(0.12 0.01 60 / 0.86);
  opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40;
}
body.is-dimmed .player { position: relative; z-index: 41; background: var(--paper-raised); }

/* ---------- 6. Byline rule ------------------------------------------------ */

.byline {
  display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center;
  font-family: var(--face-meta); font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  padding: 14px 0 26px; border-bottom: 1px solid var(--rule-hair);
}
.chip { border: 1px solid var(--mark); color: var(--mark); padding: 5px 9px; text-decoration: none; }
.chip:hover { background: var(--mark); color: oklch(0.97 0.02 95); text-decoration: none; }
.byline__who { color: var(--ink-faint); letter-spacing: .1em; }

/* Breadcrumb — set as a slug line, the way a printed section header runs */
.slugline {
  font-family: var(--face-meta); font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-faint);
  padding: 14px 0 0; margin: 0;
}
.slugline ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.slugline li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--rule-thin); }
.slugline a { text-decoration: none; }
.slugline a:hover { text-decoration: underline; }
.slugline [aria-current] { color: var(--ink-soft); }

/* ---------- 7. The two columns ------------------------------------------- */

.columns { display: flex; flex-wrap: wrap; gap: 44px; padding-top: 30px; align-items: flex-start; }
.column-main { flex: 4 1 460px; min-width: 300px; }
.column-side { flex: 1 1 250px; min-width: 230px; font-family: var(--face-meta); }
@media (min-width: 980px) { .column-side { position: sticky; top: 18px; } }

/* Below the sticky breakpoint the side column stops being a column: the
   contents drawer belongs above the article it indexes, and the related-game
   rails belong after it. Unwrapping the wrapper lets both find their place. */
@media (max-width: 979px) {
  .columns { flex-direction: column; flex-wrap: nowrap; gap: 30px; }
  .column-side { display: contents; }
  .contents { order: -1; }
  .column-main { order: 0; }
  .rails { order: 1; font-family: var(--face-meta); }
}

.column-main > h2 { font-size: clamp(25px, 6vw, 30px); margin-top: 38px; }
.column-main > h2:first-of-type { margin-top: 34px; }
.lede { font-size: clamp(18px, 4.6vw, 19px); line-height: 1.55; }

/* ---------- 8. Contents column -------------------------------------------- */

.contents { background: var(--ink); color: var(--paper-raised); padding: 14px 16px; }
.contents > summary { display: none; }
.contents__t { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; opacity: .65; }
.contents ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 7px; font-size: 12px; line-height: 1.35; counter-reset: toc; }
.contents li { counter-increment: toc; display: flex; gap: 8px; }
.contents li::before { content: counter(toc, decimal-leading-zero); color: var(--tile-yellow); flex: none; }
.contents a { text-decoration: none; }
.contents a:hover { text-decoration: underline; }

/* Mobile: a sticky rail is useless — the contents becomes a drawer up top */
@media (max-width: 979px) {
  .contents { padding: 0; }
  .contents > summary {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 13px 16px; cursor: pointer; list-style: none;
    font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  }
  .contents > summary::-webkit-details-marker { display: none; }
  .contents > summary::after { content: "+"; font-size: 16px; line-height: 1; }
  .contents[open] > summary::after { content: "–"; }
  .contents > summary .contents__t { opacity: 1; }
  .contents__body { padding: 0 16px 16px; }
  .contents .contents__t--desk { display: none; }
}
@media (min-width: 980px) { .contents__body { display: block !important; } }

/* ---------- 9. Colour key ------------------------------------------------- */

.keyband {
  border-top: 2px solid var(--rule-heavy);
  border-bottom: 2px solid var(--rule-heavy);
  padding: 16px 0; margin: 22px 0; display: grid; gap: 12px;
}
.keyband__row { display: flex; gap: 12px; align-items: flex-start; }
.swatch { width: 20px; height: 20px; flex: none; margin-top: 3px; border: 1px solid oklch(0.25 0.02 60 / .25); }
.swatch--green { background: var(--tile-green); }
.swatch--yellow { background: var(--tile-yellow); }
.swatch--grey { background: var(--tile-grey); }

/* ---------- 10. Ledger: the numbered steps -------------------------------- */

.ledger { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: step; }
.ledger > li { display: flex; gap: 16px; counter-increment: step; }
.ledger > li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--face-meta); font-weight: 700; font-size: 13px;
  border: 2px solid var(--rule-heavy);
  width: 34px; height: 34px; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.ledger h3 { font-size: 19px; margin: 4px 0; }

/* ---------- 11. Hangdex: tips as a glossary ------------------------------- */

.hangdex { display: grid; border-top: 1px solid var(--rule-hair); }
.hangdex > div {
  padding: 14px 0; border-bottom: 1px solid var(--rule-hair);
  display: flex; flex-wrap: wrap; gap: 6px 20px;
}
.hangdex h3 { font-size: 18px; margin: 0; flex: 0 0 190px; }
.hangdex p { margin: 0; flex: 1 1 240px; }
/* Mobile: stacked, with a rule hanging off the left to keep the glossary feel */
@media (max-width: 719px) {
  .hangdex > div { display: block; padding-left: 14px; border-left: 2px solid var(--mark-weak); }
  .hangdex h3 { margin-bottom: 4px; }
}

/* ---------- 12. Panels, spec table, modes --------------------------------- */

.panels { display: flex; flex-wrap: wrap; gap: 18px; }
.panel { flex: 1 1 240px; border: 1px solid var(--rule-thin); background: var(--paper-raised); padding: 16px 18px; }
.panel ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 15px; }
.panel .label { margin-bottom: 10px; }

.modes { display: flex; flex-wrap: wrap; gap: 14px; }
.mode { flex: 1 1 180px; border: 2px solid var(--rule-heavy); padding: 14px 16px; }
.mode__n { font-family: var(--face-display); font-weight: 700; font-size: 18px; }
.mode p { margin: 6px 0 0; font-size: 15px; }

.spec { border: 1px solid var(--rule-thin); background: var(--paper-raised); font-family: var(--face-meta); font-size: 13px; margin: 0; }
.spec > div { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 11px 16px; border-bottom: 1px solid var(--rule-hair); }
.spec > div:last-child { border-bottom: 0; }
.spec dt { flex: 0 0 130px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--mark); align-self: center; margin: 0; }
.spec dd { flex: 1 1 220px; margin: 0; }

.storelinks { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  flex: 1 1 220px; border: 2px solid var(--rule-heavy); padding: 13px 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; text-decoration: none;
  transition: background .12s, color .12s;
}
.store:hover { background: var(--ink); color: var(--paper-raised); text-decoration: none; }
.store__k { font-family: var(--face-meta); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; display: block; }
.store__n { font-family: var(--face-display); font-weight: 600; font-size: 17px; }
.store__a { font-family: var(--face-meta); }

.bullets { margin: 0; padding-left: 20px; display: grid; gap: 8px; }

/* ---------- 13. FAQ ------------------------------------------------------- */

.faq { display: grid; border-top: 2px solid var(--rule-heavy); }
.faq > div { padding: 15px 0; border-bottom: 1px solid var(--rule-hair); }
.faq h3 { font-size: 19px; margin: 0 0 5px; }

/* ---------- 14. Video ----------------------------------------------------- */

.videoframe { position: relative; aspect-ratio: 16 / 9; border: 2px solid var(--rule-heavy); background: var(--paper-sunk); }
.videoframe > iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- 15. Side column pieces ---------------------------------------- */

.railhead {
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--mark);
  border-bottom: 1px solid var(--mark); padding-bottom: 7px; margin: 0;
}
.rail { margin-top: 18px; }
.rail__list { list-style: none; display: grid; gap: 10px; margin: 12px 0 0; padding: 0; }
.rail__item { display: flex; gap: 10px; align-items: center; text-decoration: none; }
.rail__mark {
  width: 42px; height: 42px; flex: none; display: block; padding: 3px;
  border: 1px solid var(--rule-thin); background: var(--paper-raised);
}
.mark-grid { width: 100%; height: 100%; display: block; }
.rail__item span { font-family: var(--face-text); font-size: 14px; }
.rail__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 11px; }
.rail__tags a { border: 1px solid var(--rule-heavy); padding: 6px 9px; text-decoration: none; display: block; }
.rail__tags a:hover { background: var(--ink); color: var(--paper-raised); }
.rail__links { list-style: none; display: grid; gap: 6px; margin: 10px 0 0; padding: 0; font-size: 12px; }
.rail__stack { display: grid; gap: 7px; margin-top: 7px; }
.rail__stack a { border: 1px solid var(--rule-heavy); padding: 8px 11px; font-size: 11px; text-decoration: none; }
.rail__stack a:hover { background: var(--mark-weak); }

/* ---------- 16. Index of games (ruled list, not a card grid) -------------- */

.sectionhead {
  display: flex; align-items: baseline; gap: 14px;
  border-bottom: 2px solid var(--rule-heavy); padding-bottom: 8px;
}
.sectionhead h2 { font-size: clamp(22px, 5.4vw, 26px); margin: 0; }
.sectionhead__more {
  margin-left: auto; font-family: var(--face-meta); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--mark); text-decoration: none; white-space: nowrap;
}

.index { list-style: none; margin: 0; padding: 0; }
.index > li { border-bottom: 1px solid var(--rule-hair); }
.index__row {
  display: flex; gap: 18px; align-items: center; padding: 16px 0; text-decoration: none;
  transition: background .12s;
}
.index__row:hover { background: var(--paper-raised); text-decoration: none; }
.index__row:hover .index__n { color: var(--mark); }
.index__num {
  font-family: var(--face-meta); font-size: 11px; color: var(--ink-faint);
  flex: 0 0 26px; font-variant-numeric: tabular-nums; align-self: flex-start; padding-top: 6px;
}
.index__mark {
  width: 66px; height: 66px; flex: none; display: block; padding: 5px;
  border: 1px solid var(--rule-thin); background: var(--paper-raised);
}
.index__body { flex: 1 1 auto; min-width: 0; }
.index__n { font-family: var(--face-display); font-weight: 700; font-size: 20px; line-height: 1.15; transition: color .12s; }
.index__d { margin: 3px 0 0; font-size: 15px; color: var(--ink-soft); }
.index__m { font-family: var(--face-meta); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); flex: none; white-space: nowrap; }
@media (max-width: 719px) { .index__m { display: none; } .index__mark { width: 54px; height: 54px; } }

/* Lead item on a category page — the one that gets the picture and the space */
.lead { display: flex; flex-wrap: wrap; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--rule-hair); align-items: center; text-decoration: none; }
.lead__fig {
  flex: 1 1 300px; border: 2px solid var(--rule-heavy); background: var(--paper-raised);
  aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; padding: 16px;
  background-image: repeating-linear-gradient(-45deg, oklch(0.65 0.06 250 / .10) 0 5px, transparent 5px 10px);
}
.lead__fig .board { width: 100%; height: 100%; }
.lead__body { flex: 1 1 280px; }
.lead__body .label { display: block; margin-bottom: 2px; }
.lead__n { font-family: var(--face-display); font-weight: 700; font-size: clamp(30px, 7vw, 40px); line-height: 1; margin: 6px 0 8px; }
.lead__m { font-family: var(--face-meta); font-size: 11px; letter-spacing: .06em; color: var(--ink-faint); }

/* Editorial note under a category list — explains the ranking rather than
   leaving the page as a bare index. */
.cat-notes { margin-top: 44px; border-top: 2px solid var(--rule-heavy); padding-top: 22px; max-width: 74ch; }
.cat-notes h2 { font-size: clamp(22px, 5.4vw, 26px); margin: 0; }
.cat-notes > p { margin-bottom: 26px; }
.cat-notes__sub {
  font-family: var(--face-meta); font-weight: 400; font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--mark); margin: 0 0 4px;
}
.cat-notes__outro { margin-top: 22px; font-style: italic; color: var(--ink-soft); }

/* ---------- 17. Prose pages (about, legal) -------------------------------- */

/* A prose page is set like a chapter opening: the title and its section list
   hold the left rail, the text runs in a single measured column beside it. */
.prose-layout { display: flex; flex-wrap: wrap; gap: 44px; padding: 34px 0 0; align-items: flex-start; }
.prose-rail { flex: 1 1 230px; min-width: 210px; }
.prose-rail h1 { font-size: clamp(38px, 8vw, 52px); line-height: .98; margin: 8px 0 0; letter-spacing: -0.015em; }
.prose-rail .prose__updated { border: 0; padding: 0; margin: 14px 0 0; }
@media (min-width: 900px) { .prose-rail { position: sticky; top: 22px; } }

.prose__sections { margin-top: 22px; border-top: 2px solid var(--rule-heavy); padding-top: 12px; }
.prose__sections .railhead { border: 0; padding: 0 0 8px; }
.prose__sections ol {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 6px;
  font-family: var(--face-meta); font-size: 11px; line-height: 1.4; counter-reset: sec;
}
.prose__sections li { counter-increment: sec; display: flex; gap: 8px; }
.prose__sections li::before { content: counter(sec, decimal-leading-zero); color: var(--mark); flex: none; }
.prose__sections a { text-decoration: none; }
.prose__sections a:hover { text-decoration: underline; }
@media (max-width: 899px) { .prose__sections { display: none; } }

.prose { flex: 3 1 460px; min-width: 300px; max-width: 68ch; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(23px, 5.6vw, 27px); margin: 34px 0 4px; scroll-margin-top: 18px; }
.prose h3 { font-size: 19px; margin: 24px 0 4px; }
.prose ul, .prose ol { padding-left: 20px; display: grid; gap: 7px; margin: 0 0 1em; }
.prose dl { margin: 0 0 1em; display: grid; gap: 10px; }
.prose dt { font-weight: 600; font-family: var(--face-display); }
.prose dd { margin: 2px 0 0; color: var(--ink-soft); }
.prose__updated {
  font-family: var(--face-meta); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-faint); border-bottom: 1px solid var(--rule-hair); padding-bottom: 14px; margin-bottom: 22px;
}
.callout { border-left: 3px solid var(--mark); padding: 2px 0 2px 16px; margin: 20px 0; }

/* ---------- 18. Contact form ---------------------------------------------- */

.form { display: grid; gap: 16px; max-width: 46ch; margin-top: 24px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--face-meta); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--mark); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 16px; color: inherit;
  background: var(--paper-sunk); border: 1px solid var(--rule-thin);
  padding: 10px 12px; width: 100%; border-radius: 0;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--mark); }

/* ---------- 19. Footer ---------------------------------------------------- */

.foot { background: var(--ink); color: var(--paper-raised); font-family: var(--face-meta); margin-top: 56px; }
:root[data-edition="night"] .foot { background: var(--paper-sunk); border-top: 1px solid var(--rule-hair); color: var(--ink); }
@media (prefers-color-scheme: dark) {
  :root:not([data-edition="day"]) .foot { background: var(--paper-sunk); border-top: 1px solid var(--rule-hair); color: var(--ink); }
}
.foot__in { max-width: var(--page); margin-inline: auto; padding: 34px var(--gutter); display: flex; flex-wrap: wrap; gap: 26px; justify-content: space-between; }
.foot__brand { flex: 1 1 240px; }
.foot__name { font-family: var(--face-display); font-weight: 700; font-size: 24px; }
.foot__blurb { font-family: var(--face-text); font-size: 14px; line-height: 1.5; margin: 8px 0 0; max-width: 34ch; opacity: .8; }
.foot__social { display: flex; gap: 14px; margin-top: 14px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; list-style: none; padding: 0; }
.foot__col { flex: 0 1 180px; }
.foot__col h2 { font-family: var(--face-meta); font-weight: 400; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; opacity: .6; margin: 0 0 9px; }
.foot__col ul { list-style: none; display: grid; gap: 7px; font-size: 11px; margin: 0; padding: 0; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot__rule { border-top: 1px solid oklch(0.5 0.02 60 / .35); }
.foot__legal { max-width: var(--page); margin-inline: auto; padding: 14px var(--gutter); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; opacity: .65; }

/* ---------- 20. 404 ------------------------------------------------------- */

.notfound { padding: 80px 0 60px; text-align: center; }
.notfound__code { font-family: var(--face-meta); font-size: clamp(64px, 22vw, 140px); font-weight: 700; line-height: 1; letter-spacing: -.02em; color: var(--mark); }
.notfound h1 { font-size: clamp(28px, 7vw, 40px); margin: 12px 0 8px; }
.notfound p { max-width: 46ch; margin-inline: auto; color: var(--ink-soft); }
.notfound .btnrow { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 24px; font-family: var(--face-meta); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- 21. Touch targets ---------------------------------------------
   A finger is not a cursor. On coarse pointers every primary control gets a
   44px hit area; dense secondary lists (contents, footer columns) get at
   least the 24px WCAG 2.2 minimum without turning into a wall of padding. */

@media (max-width: 979px) {
  .folio__nav a { padding-block: 13px; }            /* main nav: 18px → 44px */
  .btn { padding-block: 13px; }
  .playbtn { padding-block: 15px; }
  .chip { padding-block: 13px; }
  .sectionhead__more { padding: 13px 0; }
  .skip { padding-block: 14px; }
  .foot__social a { padding-block: 14px; }
  .foot__col ul a { display: inline-block; padding-block: 10px; }
  .contents a { display: block; padding-block: 6px; }
  .contents ol { gap: 2px; }
  .rail__links a, .prose__sections a { display: inline-block; padding-block: 7px; }
  .slugline a { display: inline-block; padding-block: 8px; }
  .rail__tags a { padding-block: 13px; }
  .folio__name { padding-block: 9px; }
  .foot__legal a { display: inline-block; padding-block: 12px; }
}

/* ---------- 22. Print ----------------------------------------------------- */

@media print {
  .folio, .foot, .column-side, .player__bar, .dimmer, .skip { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .columns { display: block; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
