/* ============================================================================
   devlog — design system
   A crossover between the restraint of grownowgames.com and the structured
   technical typography of Claude artifact pages.

   Two typefaces:  IBM Plex Sans (body) + JetBrains Mono (headings/eyebrows/data)
   Warm paper background, white cards, hairline rules, one amber accent.
   Full light + dark via CSS custom properties (honours the reader's setting).
   ========================================================================== */

/* ----- Tokens -------------------------------------------------------------- */
:root {
  --paper:      #F3F5EE;
  --card:       #FFFFFF;
  --ink:        #14170F;
  --ink-soft:   #565C4E;
  --hairline:   #DDE1D4;
  --hairline-2: #E9ECE2;
  --accent:     #A8431F;   /* burnt amber, used sparingly */
  --accent-dim: #B4552A;
  --code-bg:    #F5F6F0;
  --shadow:     0 1px 2px rgba(20, 23, 15, .04), 0 8px 24px rgba(20, 23, 15, .05);

  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;

  --measure: 78ch;        /* body text line length */
  --container: 1000px;    /* max content width */
  --gap: 52px;            /* vertical rhythm between sections */

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:      #12140E;
    --card:       #1A1D15;
    --ink:        #ECEFE4;
    --ink-soft:   #9BA290;
    --hairline:   #2C3124;
    --hairline-2: #23271C;
    --accent:     #E6935F;
    --accent-dim: #D8824C;
    --code-bg:    #1E2118;
    --shadow:     0 1px 2px rgba(0, 0, 0, .25), 0 8px 24px rgba(0, 0, 0, .30);
  }
}

/* ----- Reset-ish ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ----- Layout -------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Running text keeps a comfortable reading measure; wide blocks (tables,
   figures, callouts, code, the post list) share the full container width
   instead, same as the metric band above them. */
.prose > * { max-width: var(--measure); }
.prose > h2,
.prose > .callout,
.prose > .table-wrap,
.prose > figure,
.prose > pre,
.prose > .post-list { max-width: none; }
.prose p, .prose ul, .prose ol { color: var(--ink); }
.prose > * + * { margin-top: 1.15em; }

section { margin-top: var(--gap); }

/* ----- Masthead ------------------------------------------------------------ */
.masthead {
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
}
.masthead .container {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.brand {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand .dot { color: var(--accent); }
.masthead nav {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.masthead nav a { color: var(--ink-soft); margin-left: 20px; }
.masthead nav a:hover { color: var(--accent); text-decoration: none; }

/* ----- Eyebrow ------------------------------------------------------------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

/* ----- Headings ------------------------------------------------------------ */
h1, h2, h3 { color: var(--ink); }

h1 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}

/* signature move: h2 as small uppercase mono with a 2px bottom border */
h2 {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 10px;
  margin: 0 0 22px;
  border-bottom: 2px solid var(--ink);
}

h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.25;
  margin: 0 0 10px;
}

.prose h3 { margin-top: 1.6em; }

/* ----- Lead ---------------------------------------------------------------- */
.lead {
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: var(--measure);
}

/* ----- Metric band --------------------------------------------------------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border: 1px solid var(--hairline);
  border-radius: 10px;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
}
.metric {
  padding: 22px 24px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.metric .num {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.05;
}
.metric .num .accent { color: var(--accent); }
.metric .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 8px;
}

/* ----- Project cards (clickable) ------------------------------------------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.project-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 24px;
  box-shadow: var(--shadow);
  color: inherit;
  transition: border-color .12s ease, transform .12s ease;
}
.project-card:hover {
  text-decoration: none;
  border-color: var(--accent);
  transform: translateY(-2px);
}
.project-card .pc-name {
  display: block;
  height: 40px;
  width: auto;
  max-width: 100%;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.project-card:hover .pc-name { color: var(--accent); }
.project-card .pc-desc {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 10px 0 20px;
  flex: 1;
}
.project-card .pc-go {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ----- Timeline (milestones / updates) ------------------------------------- */
.timeline {
  border-left: 2px solid var(--hairline);
  margin: 0;
  padding: 4px 0;
}
.tl-item {
  position: relative;
  padding: 0 0 30px 28px;
}
.tl-item:last-child { padding-bottom: 4px; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--paper);
}
.tl-date {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.tl-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.3;
  margin: 0 0 4px;
  color: var(--ink);
}
.tl-item p { margin: 0; color: var(--ink-soft); font-size: 15px; max-width: var(--measure); }
.tl-item .status {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 8px;
  vertical-align: 1px;
}

/* ----- Tables -------------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
thead th {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--hairline);
  background: var(--hairline-2);
}
tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
tbody tr:last-child td { border-bottom: none; }
td .mono, table .num { font-family: var(--mono); }
table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ----- Code ---------------------------------------------------------------- */
code {
  font-family: var(--mono);
  font-size: .88em;
  background: var(--code-bg);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 1px 5px;
}
pre {
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.6;
  background: var(--code-bg);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 18px 20px;
  overflow-x: auto;
}
pre code { background: none; border: none; padding: 0; font-size: inherit; }

/* ----- Callout ------------------------------------------------------------- */
.callout {
  border-left: 2px solid var(--accent);
  background: var(--card);
  border-radius: 0 10px 10px 0;
  padding: 18px 22px;
  box-shadow: var(--shadow);
}
.callout .eyebrow { margin-bottom: 8px; }
.callout p { margin: 0; }

/* ----- Figures ------------------------------------------------------------- */
figure {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 20px;
  box-shadow: var(--shadow);
}
figure svg { width: 100%; height: auto; display: block; }
figcaption {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .03em;
  color: var(--ink-soft);
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
}

/* ----- Post list (index) --------------------------------------------------- */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { border-top: 1px solid var(--hairline); }
.post-list li:last-child { border-bottom: 1px solid var(--hairline); }
.post-card {
  display: block;
  padding: 26px 0;
  color: inherit;
}
.post-card:hover { text-decoration: none; }
.post-card:hover .post-title { color: var(--accent); }
.post-meta {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.post-meta .tag { color: var(--accent); }
.post-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  transition: color .12s ease;
}
.post-dek { color: var(--ink-soft); margin: 0; max-width: var(--measure); }

/* ----- Post header --------------------------------------------------------- */
.post-header { margin-top: 44px; }
.post-header .post-meta { margin-bottom: 16px; font-size: 12px; }
.byline {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}

/* ----- Footnote / small ---------------------------------------------------- */
.note { font-size: 14px; color: var(--ink-soft); }
hr {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: var(--gap) 0;
}

/* ----- Footer -------------------------------------------------------------- */
.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--hairline);
  padding: 32px 0 48px;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink-soft);
}
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--accent); }

/* ----- Back link ----------------------------------------------------------- */
.backlink {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 40px;
}
.backlink:hover { color: var(--accent); text-decoration: none; }

/* ----- Responsive ---------------------------------------------------------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .lead { font-size: 18px; }
  .metric .num { font-size: 25px; }
  .masthead .container { flex-direction: column; align-items: flex-start; gap: 10px; }
  .masthead nav a { margin-left: 0; margin-right: 18px; }
  :root { --gap: 40px; }
}

/* Remove the dangling right/bottom borders on the metric grid edges cleanly */
@supports (grid-template-columns: subgrid) { }

/* ============================================================================
   Extensions for the project write-ups (added with the long-form project pages)
   Everything below follows the tokens above — no new colours, no new type.
   ========================================================================== */

/* ----- Figures carrying real images ---------------------------------------- */
/* A figure may hold an SVG diagram (above) or a captured PNG. Screenshots of a
   Game Boy screen must never be smoothed by the browser: the whole point of a
   four-shade picture is that it has four shades in it. */
figure img { width: 100%; border-radius: 6px; }
/* Numeric cells must not wrap mid-figure ("100.00 %" splitting over two lines). */
table .num { white-space: nowrap; }
figure.pixel img {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: var(--code-bg);
}
/* A narrower figure for tall or small captures, still full-bleed on a phone. */
figure.narrow { max-width: 520px; }
figure.narrow img { border-radius: 4px; }

/* ----- Figures carrying real footage ---------------------------------------- */
/* Same treatment as figure img: full-bleed, same radius, never blows out a
   phone. A muted autoplay loop (.clip-auto) swaps to its poster frame under
   prefers-reduced-motion, with no script involved on either path. */
figure video { width: 100%; height: auto; border-radius: 6px; display: block; background: var(--code-bg); }
.clip-auto .clip-poster { display: none; }
@media (prefers-reduced-motion: reduce) {
  .clip-auto video { display: none; }
  .clip-auto .clip-poster { display: block; }
}

/* Two captures side by side — a before and an after. Stacks under 640px. */
.fig-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.fig-pair .cap {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 8px;
}
.fig-pair .cap .accent { color: var(--accent); }
.fig-pair img { border-radius: 6px; }

/* ----- Code block with a caption ------------------------------------------- */
/* `figure.code` wraps a <pre> so a snippet can say where it came from. */
figure.code { padding: 0; overflow: hidden; }
figure.code pre { border: none; border-radius: 0; margin: 0; background: var(--code-bg); }
figure.code figcaption {
  margin-top: 0;
  padding: 12px 20px;
  border-top: 1px solid var(--hairline);
  background: var(--card);
}

/* ----- Pull quote ---------------------------------------------------------- */
/* Used for a rule a project holds itself to, in its own words. */
.pullquote {
  border-left: 2px solid var(--accent);
  margin: 0;
  padding: 4px 0 4px 22px;
  max-width: var(--measure);
}
.pullquote p {
  font-size: 21px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}
.pullquote cite {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--ink-soft);
  margin-top: 12px;
}

/* ----- Provenance strip ---------------------------------------------------- */
/* One line under a page saying what backs every number on it. */
.provenance {
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--card);
  padding: 18px 22px;
  box-shadow: var(--shadow);
}
.provenance p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.provenance p + p { margin-top: 10px; }

/* ----- Prose helpers ------------------------------------------------------- */
.prose figure, .prose .fig-pair, .prose .pullquote { margin-top: 1.6em; }
.prose figure + p, .prose .fig-pair + p { margin-top: 1.6em; }
.wide { max-width: none; }

/* A caption sitting directly under a full-width figure outside .prose */
figcaption strong { color: var(--ink); }

@media (max-width: 640px) {
  .fig-pair { grid-template-columns: 1fr; }
  .pullquote p { font-size: 18px; }
  figure { padding: 14px; }
}

/* ============================================================================
   Extensions for the STANDING PAGES (finds, agent progress, performance)
   The captain's brief: Claude-artifact clarity — generous type, obvious
   hierarchy, content in well-spaced cards, metric tiles, real breathing room.
   Same tokens as everything above: no new colours, no new typefaces.
   ========================================================================== */

/* ----- Page hero ----------------------------------------------------------- */
/* The standing pages open wider than a post: a full-measure lead and a row of
   mono facts under it, so a reader knows what the page IS before scrolling. */
.page-hero { margin-top: 56px; }
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { font-size: 21px; max-width: 72ch; }
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hero-facts b { color: var(--ink); font-weight: 700; }
.hero-facts .lc { text-transform: none; }

/* ----- Contents ------------------------------------------------------------ */
.toc {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 22px 26px;
}
.toc .eyebrow { margin-bottom: 14px; }
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 8px 28px;
  counter-reset: toc;
}
.toc li { counter-increment: toc; }
.toc a {
  display: block;
  padding: 5px 0;
  color: var(--ink);
  font-size: 15px;
  border-bottom: 1px solid transparent;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
  margin-right: 12px;
  letter-spacing: .06em;
}
.toc a:hover { color: var(--accent); text-decoration: none; }

/* ----- Section head -------------------------------------------------------- */
/* An h2 keeps its 2px rule; this adds the one-line standfirst under it that a
   long page needs so each section announces its own job. */
.sec-head { margin-bottom: 26px; }
.sec-head h2 { margin-bottom: 14px; }
.sec-head .sub {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: var(--measure);
  margin: 0;
}

/* ----- Free-standing metric tiles ------------------------------------------ */
/* `.metrics` is the joined band. `.tiles` is the same data as separate cards —
   better when the numbers are unrelated to each other or there are many. */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.tile {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.tile .t-num {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.tile .t-num .accent { color: var(--accent); }
.tile .t-num small { font-size: 16px; font-weight: 600; color: var(--ink-soft); }
.tile .t-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 10px;
}
.tile .t-note {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--hairline-2);
}

/* ----- Content cards ------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card + .card { margin-top: 16px; }
.cards .card + .card { margin-top: 0; }
.card-hd {
  padding: 20px 26px;
  border-bottom: 1px solid var(--hairline);
  background: var(--hairline-2);
}
.card-hd h3 { margin: 0; }
.card-hd .kicker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}
.card-bd { padding: 24px 26px; }
.card-bd > * { max-width: var(--measure); }
.card-bd > .table-wrap, .card-bd > figure, .card-bd > .tiles { max-width: none; }
.card-bd > * { margin-block: 0; }
.card-bd > * + * { margin-top: 1.15em; }
.card-ft {
  padding: 16px 26px;
  border-top: 1px solid var(--hairline);
  background: var(--hairline-2);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--ink-soft);
}

/* ----- Chips --------------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 3px 11px;
  background: var(--paper);
  white-space: nowrap;
}
.chip.on { color: var(--accent); border-color: var(--accent); }

/* ----- Spec list ----------------------------------------------------------- */
/* Label/value rows — "where it lives", "how it was verified". A find entry is
   worth nothing without these, so they get their own component rather than
   being smuggled into prose. */
dl.spec {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(140px, 190px) 1fr;
  border-top: 1px solid var(--hairline);
}
dl.spec dt {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 14px 18px 14px 0;
  border-bottom: 1px solid var(--hairline);
}
dl.spec dd {
  margin: 0;
  padding: 14px 0;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
}
dl.spec dd:last-of-type, dl.spec dt:last-of-type { border-bottom: none; }

/* ----- Honest-gap list ----------------------------------------------------- */
/* Every standing page ends with what is NOT true. Marked, not buried. */
.gaps { list-style: none; margin: 0; padding: 0; }
.gaps li {
  position: relative;
  padding: 0 0 0 26px;
  max-width: var(--measure);
  color: var(--ink-soft);
}
.gaps li + li { margin-top: 16px; }
.gaps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 12px;
  height: 2px;
  background: var(--accent);
}
.gaps b, .gaps strong { color: var(--ink); }

/* ----- Timeline additions -------------------------------------------------- */
/* The progress page hangs metric tiles and prose off each timeline node. */
.tl-item .tl-detail {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .03em;
  color: var(--ink-soft);
}
.tl-item .tl-detail b { color: var(--accent); font-weight: 700; }
.timeline.wide .tl-item p { font-size: 15.5px; }

/* ----- Utility ------------------------------------------------------------- */
.stack > * + * { margin-top: 20px; }
.stack-lg > * + * { margin-top: 32px; }
.measure { max-width: var(--measure); }
.centre-note {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ----- Responsive ---------------------------------------------------------- */
@media (max-width: 640px) {
  .page-hero { margin-top: 36px; }
  .page-hero .lead { font-size: 18px; }
  .hero-facts { gap: 8px 18px; }
  .toc { padding: 18px 20px; }
  .toc ol { grid-template-columns: 1fr; }
  .card-hd, .card-bd, .card-ft { padding-left: 20px; padding-right: 20px; }
  .tile .t-num { font-size: 27px; }
  dl.spec { grid-template-columns: 1fr; }
  dl.spec dt { padding-bottom: 0; border-bottom: none; }
  dl.spec dd { padding-top: 6px; }
  dl.spec dt:last-of-type { border-bottom: none; }
}

/* ----- Lists inside cards -------------------------------------------------- */
/* A feature card is a list, and a bare <ul> inherits browser defaults that do
   not match anything else here. Amber markers, our own rhythm. */
.card-bd ul, .card-bd ol { margin: 0; padding-left: 20px; }
.card-bd li { color: var(--ink); }
.card-bd li + li { margin-top: 8px; }
.card-bd li::marker { color: var(--accent); }

/* ----- Clickable card ------------------------------------------------------ */
/* The index links its standing pages with the same card as the pages use. */
a.card {
  display: block;
  color: inherit;
  transition: border-color .12s ease, transform .12s ease;
}
a.card:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); }
a.card:hover h3 { color: var(--accent); }
a.card:hover .card-ft { color: var(--accent); }

/* ----- Wide data figures on a narrow screen -------------------------------- */
/* A byte map or a 26-cell grid scaled to a 390px phone is unreadable. Let the
   figure itself scroll sideways instead, and keep the page body from doing it. */
@media (max-width: 700px) {
  figure.scrollfig { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  figure.scrollfig svg { width: 640px; max-width: none; }
  figure.scrollfig figcaption { position: sticky; left: 0; }
}
