:root {
  --page: #0b0c0e; --glass: rgba(22,24,30,0.36); --glass-hi: rgba(30,33,40,0.42);
  --frost: rgba(17,20,27,0.34);
  --edge: rgba(255,255,255,0.09); --edge-hi: rgba(255,255,255,0.16);
  --ink: #f2f1ec; --ink-2: #b9b7ad; --muted: #83817a;
  --organ: #ff7038; --atom: #4fa3ff; --alive: #35e08c;

  /* Neon corpus identities — one hue per era, restrained to accents (borders,
     glow, tags) never as text-on-fill. The predictions ledger gets its own
     icy blue, distinct from the six eras. */
  --c1: #ff8a3d; --c1-rgb: 255,138,61;     /* I   S208  — genesis amber, kin to --organ */
  --c2: #ff3fa6; --c2-rgb: 255,63,166;     /* II  S209  — birth magenta */
  --c3: #22d3ee; --c3-rgb: 34,211,238;     /* III S210  — runaway cyan */
  --c4: #b565ff; --c4-rgb: 181,101,255;    /* IV  S211–S212 — mouth violet */
  --c5: #39ff9e; --c5-rgb: 57,255,158;     /* V   S212  — third-life emerald, kin to --alive */
  --c6: #ffd23f; --c6-rgb: 255,210,63;     /* VI  S213  — costume gold */
  --c7: #818cf8; --c7-rgb: 129,140,248;    /* VII S214  — composition indigo */
  --spine: #4fd1ff; --spine-rgb: 79,209,255; /* the predictions ledger — icy blue, kin to --atom */

  /* Semantic ledger states — the-predictions.html only. */
  --paid: #39ff9e; --paid-rgb: 57,255,158;
  --paying: #2dd4bf; --paying-rgb: 45,212,191;
  --open: #ffab4d; --open-rgb: 255,171,77;
  --falsified: #ff4d6d; --falsified-rgb: 255,77,109;
}
* { box-sizing: border-box; }
html { background: var(--page); }
body {
  margin: 0; padding: 0 20px 100px; background: var(--page); color: var(--ink);
  font: 16px/1.7 system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 900px; margin: 0 auto; }
.serif { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.glass {
  background: var(--glass); border: 1px solid var(--edge); border-radius: 12px;
  backdrop-filter: blur(14px) saturate(1.15); -webkit-backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset, 0 12px 40px rgba(0,0,0,0.35);
}
/* Icy glass — the index cards. Same dark-glass identity, leveled up: cooler
   frosted fill, a hairline of accent light at the border, a soft accent
   glow behind the panel, and a top sheen like light catching an ice edge.
   Content and page both stay visible through it — alpha kept low so the
   dark base and any neighboring glow read through the panel. */
.icy {
  position: relative;
  background:
    linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0) 45%),
    var(--frost);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  backdrop-filter: blur(20px) saturate(1.6) brightness(1.08);
  -webkit-backdrop-filter: blur(20px) saturate(1.6) brightness(1.08);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.14) inset,
    0 0 0 1px rgba(var(--accent-rgb, 255,255,255), 0.16) inset,
    0 18px 50px rgba(0,0,0,0.45),
    0 0 46px -14px rgba(var(--accent-rgb, 255,255,255), 0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.icy:hover, .icy:focus-within {
  border-color: rgba(var(--accent-rgb, 255,255,255), 0.4);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.16) inset,
    0 0 0 1px rgba(var(--accent-rgb, 255,255,255), 0.32) inset,
    0 22px 60px rgba(0,0,0,0.5),
    0 0 64px -10px rgba(var(--accent-rgb, 255,255,255), 0.55);
  transform: translateY(-2px);
}
/* Backdrop-filter fallback: browsers without it get a near-opaque frost
   fill instead of a blur, so text stays fully readable either way. */
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .glass { background: rgba(20,21,26,0.92); }
  .icy { background: rgba(15,17,22,0.94); }
}
/* Corpus/era accent assignment — sets the two custom properties every icy
   element and accent-colored child reads. */
.accent-1 { --accent: var(--c1); --accent-rgb: var(--c1-rgb); }
.accent-2 { --accent: var(--c2); --accent-rgb: var(--c2-rgb); }
.accent-3 { --accent: var(--c3); --accent-rgb: var(--c3-rgb); }
.accent-4 { --accent: var(--c4); --accent-rgb: var(--c4-rgb); }
.accent-5 { --accent: var(--c5); --accent-rgb: var(--c5-rgb); }
.accent-6 { --accent: var(--c6); --accent-rgb: var(--c6-rgb); }
.accent-7 { --accent: var(--c7); --accent-rgb: var(--c7-rgb); }
.accent-spine { --accent: var(--spine); --accent-rgb: var(--spine-rgb); }
nav {
  display: flex; align-items: baseline; gap: 22px; padding: 16px 22px; margin-top: 18px;
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; letter-spacing: 0.1em;
}
nav .brand { font-size: 14px; font-weight: 700; letter-spacing: 0.2em; color: var(--ink); text-decoration: none; }
nav a { color: var(--muted); text-decoration: none; text-transform: uppercase; }
nav a:hover, nav a:focus { color: var(--ink); }
.eyebrow { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); margin: 30px 0 8px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.eyebrow a { color: var(--muted); text-decoration: none; }
.eyebrow a:hover, .eyebrow a:focus { color: var(--ink); }
/* The volume badge — the one neon touch the (calm) essay pages carry: a
   small accent-colored chip naming which corpus/era this essay belongs to,
   restrained to a border + text glow, never a filled neon background. */
.eyebrow .vol { display: inline-block; padding: 2px 9px; border-radius: 999px; letter-spacing: 0.1em;
  border: 1px solid rgba(var(--accent-rgb, 131,129,122), 0.5); color: var(--accent, var(--muted));
  text-shadow: 0 0 9px rgba(var(--accent-rgb, 0,0,0), 0.4); }
main { max-width: 68ch; margin: 0 auto; padding-top: 6px; }
h1.title { font-family: "Iowan Old Style", Palatino, Georgia, serif; font-weight: 600;
  font-size: clamp(30px, 5vw, 44px); line-height: 1.12; margin: 8px 0 10px; text-wrap: balance; }
main h2 { font-family: "Iowan Old Style", Palatino, Georgia, serif; font-size: 25px; font-weight: 600;
  margin: 40px 0 12px; line-height: 1.2; }
main h3 { font-family: "Iowan Old Style", Palatino, Georgia, serif; font-size: 19px; font-weight: 600; margin: 28px 0 8px; }
main p, main li { color: var(--ink-2); font-size: 17px; }
main p { margin: 0 0 18px; }
main strong { color: var(--ink); font-weight: 600; }
main em { color: var(--ink); }
main a { color: var(--atom); text-decoration: none; border-bottom: 1px solid rgba(79,163,255,0.3); }
main a:hover, main a:focus { border-bottom-color: var(--atom); }
main code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.9em;
  background: rgba(255,255,255,0.06); padding: 0.1em 0.35em; border-radius: 4px; color: var(--ink); }
main pre { background: rgba(255,255,255,0.05); border: 1px solid var(--edge); border-radius: 8px;
  padding: 14px 16px; overflow-x: auto; }
main pre code { background: none; padding: 0; font-size: 0.86em; line-height: 1.5; }
main blockquote { margin: 0 0 18px; padding: 6px 0 6px 18px; border-left: 3px solid var(--organ);
  color: var(--ink-2); font-style: italic; }
main blockquote em { font-style: normal; }
main hr { border: none; border-top: 1px solid var(--edge); margin: 34px auto; width: 40%; }
main ul { padding-left: 22px; margin: 0 0 18px; }
main li { margin: 0 0 6px; }
.tablewrap { overflow-x: auto; margin: 0 0 20px; }
main table { border-collapse: collapse; width: 100%; font-size: 15px; }
main th, main td { border: 1px solid var(--edge); padding: 9px 12px; text-align: left; vertical-align: top; color: var(--ink-2); }
main th { background: rgba(255,255,255,0.04); color: var(--ink); font-weight: 600; }
main .dek { color: var(--muted); font-size: 15.5px; line-height: 1.6; }
main .dek em { color: var(--ink-2); }
/* Ledger-state tags — the-predictions.html only, the one place the calm
   essay pages are lit up: PAID/PAYING/OPEN/FALSIFIED colored where the
   ledger prose itself declares them (bold text + glow, never a fill —
   text is never set directly on a neon background). */
main .tag-paid, main .tag-paying, main .tag-open, main .tag-falsified { font-weight: 700; }
main .tag-paid { color: var(--paid); text-shadow: 0 0 10px rgba(var(--paid-rgb), 0.55); }
main .tag-paying { color: var(--paying); text-shadow: 0 0 10px rgba(var(--paying-rgb), 0.55); }
main .tag-open { color: var(--open); text-shadow: 0 0 10px rgba(var(--open-rgb), 0.55); }
main .tag-falsified { color: var(--falsified); text-shadow: 0 0 10px rgba(var(--falsified-rgb), 0.55); }
footer { margin-top: 70px; padding: 18px 0; font-size: 12.5px; color: var(--muted); text-align: center;
  border-top: 1px solid var(--edge); }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }
/* index page — this is where the icy glass gets to be bold. Each corpus
   group is its own accent-tinted panel (border glow + text accents only;
   fill stays the same dark frost as everywhere else so body copy keeps its
   contrast). Essay rows nest inside, tinted by inheritance from the
   ancestor's --accent custom property. */
.corpus-group { margin: 56px 0 0; }
.corpus-card { padding: 26px 28px 24px; }
.corpus-head { margin: 0 0 6px; }
.corpus-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; }
.corpus-num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 9px; flex: none; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px;
  font-weight: 700; color: var(--accent); border: 1px solid rgba(var(--accent-rgb), 0.55);
  background: rgba(var(--accent-rgb), 0.1); text-shadow: 0 0 12px rgba(var(--accent-rgb), 0.6);
  box-shadow: 0 0 20px -5px rgba(var(--accent-rgb), 0.6); }
.corpus-tag { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); text-shadow: 0 0 10px rgba(var(--accent-rgb), 0.4); }
.corpus-count { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px; letter-spacing: 0.06em;
  color: var(--muted); }
.corpus-count::before { content: "·"; margin-right: 10px; color: var(--edge-hi); }
.corpus-head h2 { font-family: "Iowan Old Style", Palatino, Georgia, serif; font-size: 27px; font-weight: 600; margin: 4px 0 8px; }
.corpus-blurb { color: var(--ink-2); font-size: 15.5px; margin: 0 0 4px; max-width: 72ch; }
.essay-list { display: flex; flex-direction: column; gap: 6px; margin: 18px 0 14px; }
.essay-row { padding: 16px 20px 16px 18px; border-left: 2px solid rgba(var(--accent-rgb), 0.4); border-radius: 10px; }
.essay-row h3 { font-family: "Iowan Old Style", Palatino, Georgia, serif; font-size: 19px; font-weight: 600; margin: 0 0 5px; }
.essay-row h3 a { color: var(--ink); text-decoration: none; }
.essay-row h3 a:hover, .essay-row h3 a:focus { color: var(--accent); }
.essay-row p { color: var(--ink-2); font-size: 14.5px; margin: 0; line-height: 1.55; }
.pdf-line { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; margin: 2px 0 0; }
.pdf-line a { color: var(--muted); text-decoration: none; }
.pdf-line a:hover, .pdf-line a:focus { color: var(--accent); }
.index-lede { color: var(--ink-2); font-size: 17px; max-width: 68ch; }
/* The predictions ledger card — its own icy-blue identity, plus a single
   restrained falsified-red badge proving the semantic ledger colors are
   real (kept-not-hidden), without turning the index into a status board. */
.ledger-badge { display: inline-flex; align-items: center; gap: 6px; font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11.5px; letter-spacing: 0.03em; padding: 4px 11px; border-radius: 999px; margin: 10px 0 0;
  border: 1px solid rgba(var(--falsified-rgb), 0.45); color: var(--ink-2); }
.ledger-badge b { color: var(--falsified); text-shadow: 0 0 8px rgba(var(--falsified-rgb), 0.5); font-weight: 700; }
