/*
  ══════════════════════════════════════════════════════════════════
  RITUALISH · shared site stylesheet (v1 podcast site)
  Extracted + extended from the v0 lander inline styles.

  PALETTE (house warm family)
    ink #1F1B16 · cream #F2EDE3 · paper #FBF9F4 · ochre #A6764A
    PROPOSAL soft lava-tone accents (not canon — flag for ruling):
      lava-blush #E8C4A8 · lava-clay #D89B72 · lava-moss #B7B08E

  SEASON-ONE COVER LADDER — PROPOSAL, pending Preston's ruling
  (ember → clay → ochre → butter → cream). RE-CUT 2026-09-13, Preston's
  ruling: THE COLOR GOES ON THE GROUND, NOT IN A DECORATION — each rung
  is now the FULL GROUND of its cover; the melt is a tonal event on it:
    01 #832D12 · 02 #9A3F1B · 03 #AE5126 · 04 #BE6433 · 05 #C97841
    06 #D08D53 · 07 #D8A268 · 08 #E0B781 · 09 #E7CA9B · 10 #ECD9B4
  REVERSED-CUT LAW: ground WCAG relative luminance < 0.36 → cream cut
  (rungs 01-06, max Y=0.33); ≥ 0.36 → ink cut (rungs 07-10, min Y=0.41).

  FONTS: local only — figtree-var.woff2 (body),
  fraunces-500(.italic).woff2 (display).
  ══════════════════════════════════════════════════════════════════
*/

/* ---------- fonts (LOCAL ONLY) ---------- */
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree-var.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-500-italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --ink:   #1F1B16;
  --cream: #F2EDE3;
  --paper: #FBF9F4;
  --ochre: #A6764A;
  /* PROPOSAL — soft lava-tone accents (not canon; pending ruling) */
  --lava-blush: #E8C4A8;
  --lava-clay:  #D89B72;
  --lava-moss:  #B7B08E;

  --ink-60: rgba(31, 27, 22, 0.6);
  --ink-40: rgba(31, 27, 22, 0.4);
  --ink-12: rgba(31, 27, 22, 0.12);
  --ink-06: rgba(31, 27, 22, 0.06);

  /* dark-confident register (the v7-tag3 "in the world" energy) */
  --ink-raise: #2A241C;                 /* elevated surface on ink */
  --cream-70: rgba(242, 237, 227, 0.7);
  --cream-55: rgba(242, 237, 227, 0.55);
  --cream-14: rgba(242, 237, 227, 0.14);
  --cream-08: rgba(242, 237, 227, 0.08);
  --cream-04: rgba(242, 237, 227, 0.04);

  --font-body: "Figtree", -apple-system, "Helvetica Neue", sans-serif;
  --font-display: "Fraunces", Georgia, serif;

  --max: 62rem;
  --pad: clamp(1.25rem, 5vw, 3rem);
}

/* Fraunces canon: default-opsz cut — keep optical sizing off on web */
* { box-sizing: border-box; }

html { font-optical-sizing: none; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- top nav ---------- */
.site-nav {
  position: relative;
  z-index: 2;
  padding: 1.25rem 0 0;
}
.site-nav .wrap {
  display: flex;
  align-items: center; /* was baseline — the SVG mark has no text baseline */
  gap: 1.25rem;
  flex-wrap: wrap;
}
/*
  THE MARK — LOCKED 2026-09-13 (v7-tag3 inline tag, seam 75).
  Rendered from the per-page #rl-mark defs; word = currentColor (ink),
  tag = ochre, ish = true knockout. 40px = the sheet's hard-floor size
  for the full mark — never smaller; below 40px use the ish-tag icon.
*/
.nav-mark {
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  margin-right: auto;
}
.nav-mark svg {
  display: block;
  height: 40px;
  width: auto;
  aspect-ratio: 3926.8 / 1162.9; /* the mark's viewBox — width:auto alone
                                    falls back to the svg default (100%) */
}
/* keep mark + all three links on one row at phone widths */
@media (max-width: 420px) { .site-nav .wrap { gap: 1rem; } }
.site-nav a:not(.nav-mark) {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-60);
  text-decoration: none;
}
.site-nav a:not(.nav-mark):hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom: 2px solid var(--ochre); }

/* ---------- blobs (shared) ---------- */
.blob { position: absolute; pointer-events: none; }

/* Subtle drift — allowed here (fun brand), but reduced-motion wins. */
@keyframes drift-a {
  0%   { transform: translate(0, 0) rotate(0deg); }
  50%  { transform: translate(1.2%, -2%) rotate(2.5deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes drift-b {
  0%   { transform: translate(0, 0) rotate(0deg); }
  50%  { transform: translate(-1.5%, 1.5%) rotate(-2deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
.drift-a { animation: drift-a 14s ease-in-out infinite; }
.drift-b { animation: drift-b 18s ease-in-out infinite; }
.drift-c { animation: drift-a 22s ease-in-out infinite reverse; }

@media (prefers-reduced-motion: reduce) {
  .drift-a, .drift-b, .drift-c { animation: none; }
}

/* ---------- hero (home) ---------- */
.hero {
  position: relative;
  padding: clamp(4rem, 12vh, 8rem) 0 clamp(4rem, 10vh, 7rem);
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 1; }

.hero-blob-main {
  top: 50%;
  left: 50%;
  width: clamp(24rem, 62vw, 44rem);
  height: auto;
  translate: -54% -52%;
  z-index: 0;
}
.hero-blob-side {
  top: 8%;
  right: -8%;
  width: clamp(9rem, 22vw, 15rem);
}
.hero-blob-low {
  bottom: -14%;
  left: -6%;
  width: clamp(8rem, 18vw, 13rem);
}

/*
  HERO WORDMARK — the real mark (LOCKED v7-tag3, seam 75), inline SVG
  via #rl-mark. Height clamp mirrors the old type ramp; width follows
  the mark's own aspect (3.377:1).
*/
.wordmark {
  color: var(--ink);
  line-height: 0;
  margin: 0;
}
.wordmark svg {
  display: block;
  height: clamp(3.75rem, 12vw, 7.5rem);
  width: auto;
  aspect-ratio: 3926.8 / 1162.9;
}

.premise {
  font-size: clamp(1.125rem, 2.6vw, 1.4rem);
  max-width: 26em;
  margin: 1.5rem 0 0;
  color: var(--ink);
}
.credit {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-60);
}
.credit a { color: var(--ink-60); text-underline-offset: 3px; }

/* ---------- section chrome ---------- */
section { position: relative; padding: clamp(3rem, 8vh, 5.5rem) 0; }

/*
  Eyebrow = the tag device (the mark's "ish" tag shape as a small chip).
  ONE-TRICK RESTRAINT: this is the only place the tag shape recurs — the
  mark itself stays the star. Tag is ALWAYS ochre (per the sheet).
*/
.kicker {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ochre);
  border-radius: 999px;
  padding: 0.32em 1em 0.36em;
  margin: 0 0 0.9rem;
}
h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}
.section-note {
  margin: 0 0 2rem;
  color: var(--ink-60);
  max-width: 34em;
}

/* Honest-state flag pill (was .wiring-flag on v0) */
.flag {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ochre);
  border: 1px dashed var(--ochre);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
}

.alt-band { background: var(--cream); overflow: hidden; }

/*
  INK BAND — the dark-confident register (RE-CUT 2026-09-13). Used for the
  notify band on every page + any section that wants the v7-tag3 "in the
  world" energy. The tag chip stays ochre; marks reverse to cream.
*/
.ink-band { background: var(--ink); color: var(--cream); overflow: hidden; }
.ink-band h2, .ink-band h3 { color: var(--paper); }
.ink-band .section-note { color: var(--cream-55); }
.ink-band a { color: var(--cream-70); }
.ink-band .notify-form input[type="email"] {
  background: var(--cream-08);
  border-color: var(--cream-14);
  color: var(--paper);
}
.ink-band .notify-form input[type="email"]::placeholder { color: var(--cream-55); }
.ink-band .notify-form button { background: var(--paper); color: var(--ink); }

/* ---------- trailer (honest placeholder) ---------- */
.trailer-card {
  position: relative;
  z-index: 1;
  border: 1px dashed var(--ink-12);
  border-radius: 1.25rem;
  background: var(--paper);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  max-width: 34rem;
}
.trailer-play {
  flex: none;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  border: 1px solid var(--ink-12);
  display: grid;
  place-items: center;
  color: var(--ink-40);
}
.trailer-play svg { width: 1.1rem; height: 1.1rem; }
.trailer-meta p { margin: 0; }
.trailer-meta .t-title { font-weight: 600; }
.trailer-meta .t-sub { font-size: 0.85rem; color: var(--ink-60); }

/* ---------- cover grid (home "first ten" + /covers/) ---------- */
.cover-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(1rem, 1.8vw, 1.5rem);
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (max-width: 720px) { .cover-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }

/*
  COVER WALL — the ten-up grid as the marketing image. The band breaks out
  of the 62rem column so the covers render generous (~215px tiles at 1440),
  not stamp-sized. Used on home "The first ten" + /covers/ "All ten".
  RE-CUT 2026-09-13: the wall sits on an INK band so the full-color tiles
  read as the ember→cream gradient moment — color on the ground, popped.
*/
.cover-wall-band { background: var(--ink); color: var(--cream); }
.cover-wall-band h2 { color: var(--paper); }
.cover-wall-band .section-note { color: var(--cream-55); }
.cover-wall-band .section-note a { color: var(--cream-70); }
.cover-wall-band .wrap { max-width: 80rem; }

.cover-tile { margin: 0; }
.cover-tile a { display: block; border-radius: 0.85rem; overflow: hidden; border: 1px solid var(--cream-08); }
.cover-tile svg, .cover-tile img { display: block; width: 100%; height: auto; }
.cover-tile figcaption {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: var(--cream-55);
  line-height: 1.35;
}
.cover-tile figcaption strong { color: var(--paper); font-weight: 600; }

/* the ten-up grid presented as a single marketing image (on the ink band) */
.grid-poster {
  background: var(--cream-04);
  border: 1px solid var(--cream-08);
  border-radius: 1.25rem;
  padding: clamp(1rem, 3vw, 2rem);
}

/* ---------- episode index · DARK PLAYER ROWS ---------- */
/*
  RE-CUT 2026-09-13 (the v7-tag3 "in the world" register): the index is a
  stack of player rows on an ink band. Each row: ish-tag circle avatar
  (the episode's ladder color as the tag fill inside the ink circle),
  "ep. NN — Title" bold cream + quiet meta, reversed flat mark, and the
  square cover thumb riding the right edge (the ladder read).
*/
.ep-rows-band { background: var(--ink); color: var(--cream); }
.ep-rows-band h2 { color: var(--paper); }
.ep-rows-band .section-note { color: var(--cream-55); }
.ep-rows {
  position: relative;
  z-index: 1;
  list-style: none;
  padding: 0;
  margin: 0;
}
.ep-row a {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.6rem;
  border-radius: 1rem;
  background: var(--cream-04);
  border: 1px solid var(--cream-08);
  text-decoration: none;
  color: var(--cream);
  transition: background 0.15s ease;
}
.ep-row a:hover { background: var(--cream-08); }
/* the ish-tag avatar: ink circle, tag filled with the row's --ep color */
.tag-avatar {
  flex: none;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: var(--ink-raise);
  border: 1px solid var(--cream-14);
  display: grid;
  place-items: center;
}
.tag-avatar svg { display: block; width: 68%; height: auto; color: var(--ep, var(--ochre)); }
.ep-row-main { flex: 1; min-width: 0; }
.ep-row-title {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--paper);
}
.ep-row a:hover .ep-row-title { text-decoration: underline; text-underline-offset: 3px; }
.ep-row-meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: var(--cream-55);
}
/* reversed flat mark, quiet, at its 26px floor */
.ep-row-mark { flex: none; color: var(--cream-55); line-height: 0; }
.ep-row-mark svg {
  display: block;
  height: 26px;
  width: auto;
  aspect-ratio: 3926.8 / 1162.9;
}
/* square cover thumb riding the row's right edge */
.ep-row-thumb {
  flex: none;
  width: 3.6rem;
  border-radius: 0.55rem;
  overflow: hidden;
  border: 1px solid var(--cream-08);
}
.ep-row-thumb svg { display: block; width: 100%; height: auto; }
@media (max-width: 640px) {
  .ep-row a { gap: 0.85rem; padding: 0.8rem 0.85rem; }
  .ep-row-mark { display: none; } /* below the row's budget at phone width */
  .ep-row-thumb { width: 3.1rem; }
  .tag-avatar { width: 2.75rem; height: 2.75rem; }
}

/* ---------- episode page ---------- */
/*
  Each episode page carries --ep (its season-ladder step) on <body> plus a
  register class: .ep-deep (rungs 01-06, cream cut) / .ep-pale (07-10, ink
  cut) — same 0.36-luminance law as the covers. RE-CUT 2026-09-13: the hero
  takes the ladder color as a FULL BAND behind the cover — color on the
  ground, not in a decoration.
*/
.ep-hero { overflow: hidden; background: var(--ep, var(--paper)); }
/* the hero kicker holds its own on all ten grounds: ink chip, paper text */
.ep-hero .kicker { background: var(--ink); color: var(--paper); }
.ep-hero .ep-cover { border-color: rgba(31, 27, 22, 0.18); box-shadow: 0 1.5rem 3rem rgba(31, 27, 22, 0.18); }
/* deep rungs: reversed hero */
.ep-deep .ep-hero { color: var(--cream); }
.ep-deep .ep-hero h1 { color: var(--paper); }
.ep-deep .ep-hero h1::after { background: var(--paper); }
.ep-deep .ep-lede { color: var(--cream-70); }
.ep-deep .ep-hero .player-shell {
  background: rgba(31, 27, 22, 0.14);
  border-color: rgba(242, 237, 227, 0.3);
  color: var(--cream-70);
}
.ep-deep .ep-hero .trailer-play { border-color: rgba(242, 237, 227, 0.35); color: var(--cream-70); }
.ep-deep .ep-hero .flag { color: var(--cream); border-color: rgba(242, 237, 227, 0.55); }
/* pale rungs: ink cut on the color band */
.ep-pale .ep-hero h1::after { background: var(--ink); }
.ep-pale .ep-lede { color: rgba(31, 27, 22, 0.72); }
.ep-pale .ep-hero .player-shell {
  background: rgba(251, 249, 244, 0.35);
  border-color: rgba(31, 27, 22, 0.25);
  color: rgba(31, 27, 22, 0.55);
}
.ep-pale .ep-hero .flag { color: var(--ink); border-color: rgba(31, 27, 22, 0.45); }
.ep-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 26rem) 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 720px) { .ep-hero-grid { grid-template-columns: 1fr; } }

.ep-cover {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--ink-12);
}
.ep-cover svg { display: block; width: 100%; height: auto; }

.ep-title-block h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  line-height: 1.1;
  margin: 0 0 0.75rem;
}
/* the ladder rule — this episode's color, one short stroke under the title */
.ep-title-block h1::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 4px;
  border-radius: 2px;
  background: var(--ep, var(--ochre));
  margin-top: 0.9rem;
}
.ep-lede { margin: 0 0 1.25rem; font-size: 1.05rem; color: var(--ink-60); max-width: 30em; }

/* player placeholder — labeled, never a fake player */
.player-shell {
  border: 1px dashed var(--ink-12);
  border-radius: 1rem;
  background: var(--paper);
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--ink-40);
  max-width: 30rem;
}
.player-shell .trailer-play { width: 2.6rem; height: 2.6rem; }
.player-shell p { margin: 0; font-size: 0.9rem; }

.shownotes { max-width: 38em; }
.shownotes ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.shownotes li { margin-bottom: 0.5rem; }

/* prev / next — neighbor cards carry their cover thumbs */
.prevnext {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--ink-12);
  padding-top: 1.5rem;
}
.prevnext a {
  text-decoration: none;
  font-weight: 500;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}
.prevnext a:hover .pn-title { text-decoration: underline; text-underline-offset: 3px; }
.prevnext .pn-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-bottom: 0.15rem;
}
.prevnext .pn-title { display: block; }
.prevnext .pn-thumb {
  flex: none;
  width: 4.25rem;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--ink-12);
}
.prevnext .pn-thumb svg { display: block; width: 100%; height: auto; }
.prevnext .pn-next { text-align: right; margin-left: auto; flex-direction: row-reverse; }

/* ---------- listen / follow badges ---------- */
.listen-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--ink-12);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-40);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: default;
  user-select: none;
}
.badge svg { width: 1.1rem; height: 1.1rem; flex: none; }
.badge .at-launch {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ochre);
}
.smartlink-note { margin-top: 0.85rem; font-size: 0.82rem; color: var(--ink-40); }

/* ---------- notify (newsletter, every page) ---------- */
.notify-inner { position: relative; z-index: 1; max-width: 34em; }
.notify-blob {
  top: -18%;
  left: 55%;
  width: clamp(8rem, 18vw, 12rem);
}
.notify-form {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.notify-form input[type="email"] {
  flex: 1 1 14rem;
  padding: 0.8rem 1.1rem;
  border: 1px solid var(--ink-12);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
.notify-form button {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-weight: 600;
}
.notify-form input:disabled,
.notify-form button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ---------- hosts ---------- */
.hosts-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 44rem;
}
@media (max-width: 640px) { .hosts-grid { grid-template-columns: 1fr; } }
.host-card {
  background: var(--paper);
  border: 1px solid var(--ink-12);
  border-radius: 1.25rem;
  padding: 1.25rem;
}
.host-card p { margin: 0.25rem 0 0; font-size: 0.92rem; color: var(--ink-60); }
.host-card .host-name { font-weight: 600; color: var(--ink); font-size: 1rem; }

/* ---------- /covers/ art-system page ---------- */
.anatomy-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 24rem) 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 720px) { .anatomy-grid { grid-template-columns: 1fr; } }
.anatomy-fig {
  margin: 0;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--ink-12);
}
.anatomy-fig svg { display: block; width: 100%; height: auto; }
.anatomy-key { list-style: none; margin: 0; padding: 0; max-width: 34em; }
.anatomy-key li { display: flex; gap: 0.8rem; margin-bottom: 0.9rem; }
.anatomy-key .key-dot {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-top: 0.15rem;
}
.anatomy-key p { margin: 0; font-size: 0.95rem; }
.anatomy-key .key-slot { font-weight: 600; }
.anatomy-key .key-fixed { color: var(--ink-40); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.anatomy-key .key-varies { color: var(--ochre); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }

/* ladder swatch row */
.swatch-row {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 44rem;
}
@media (max-width: 720px) { .swatch-row { grid-template-columns: repeat(5, 1fr); } }
.swatch { text-align: center; }
.swatch .chip {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 0.6rem;
  border: 1px solid var(--ink-12);
}
.swatch .hex {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: var(--ink-60);
}
.swatch .cname {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink);
}

/* 16:9 row */
.wide-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (max-width: 720px) { .wide-row { grid-template-columns: 1fr; } }
.wide-row li { border-radius: 0.85rem; overflow: hidden; border: 1px solid var(--ink-12); }
.wide-row svg { display: block; width: 100%; height: auto; }

/* 160px legibility test strip — on dark, fixed thumbnail size */
.thumb-strip-band { background: var(--ink); color: var(--paper); overflow: hidden; }
/* the tag chip reads the same on the ink band — ochre never shifts */
.thumb-strip-band h2 { color: var(--paper); }
.thumb-strip-band .section-note { color: rgba(251, 249, 244, 0.55); }
.thumb-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0 1rem;
  list-style: none;
  margin: 0;
  -webkit-overflow-scrolling: touch;
}
.thumb-strip li { flex: none; width: 160px; }
.thumb-strip svg { display: block; width: 160px; height: 160px; border-radius: 6px; }
.thumb-strip .thumb-cap {
  font-size: 0.68rem;
  color: rgba(251, 249, 244, 0.55);
  margin-top: 0.35rem;
}

/* ---------- footer ---------- */
footer {
  padding: 2.5rem 0 3rem;
  font-size: 0.85rem;
  color: var(--ink-60);
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center; /* was baseline — the SVG mark has no text baseline */
}
footer a { color: var(--ink-60); text-underline-offset: 3px; }
/*
  Footer sign-off: the flat one-color mark at 26px (#rl-mark-flat) — the
  sheet's sanctioned small-sign-off usage (two-color never below 40px).
*/
.foot-mark {
  color: var(--ink);
  display: inline-flex;
  align-items: center;
}
.foot-mark svg {
  display: block;
  height: 26px;
  width: auto;
  aspect-ratio: 3926.8 / 1162.9;
}
