/* Final State devlog, implemented from the owner's Claude Design file
   "Final State Devlog Rebuild / Final State Devlog.dc.html" (2026-11-11). Every colour, size and
   rule below comes from that design; focus, motion and the browser-drawn details come from the
   Kara library. Fonts are self-hosted (the design loads the same families from Google). No inline
   styles anywhere: the page runs under a strict CSP. */

@font-face {
  font-family: "Archivo";
  src: url("/static/fonts/archivo-wdth.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/static/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  /* primitives, from the design */
  --cobalt: #1F3F94;
  --cobalt-line: #2E50A8;
  --cobalt-deep: #18306F;
  --blue-soft: #6F88C9;
  --blue-mute: #4A66B4;
  --blue-pale: #B9C6E6;
  --blue-mist: #DDE4F4;
  --paper: #F2EADF;
  --white: #FAF7F2;
  --warm: #E9DFD1;
  --hover: #E7DCCB;
  --rule-white: #DDD3C4;
  --rule-paper: #CFC4B4;
  --rule-warm: #C3B6A3;
  --ink: #22252E;
  --ink-2: #3A3D46;
  --ink-soft: #4A4D57;
  --ink-mute: #6B6E78;
  --grey: #8A8D96;
  --yellow: #F5C842;
  --image-outline: rgba(0, 0, 0, 0.1);
  --sticker-shadow: rgba(24, 48, 111, 0.24);

  /* roles */
  --floor: var(--cobalt);
  --accent: var(--yellow);
  --focus: var(--cobalt);

  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --text: "Archivo", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 128px);
  --fs-h2: clamp(40px, 6vw, 76px);

  --ease: cubic-bezier(0.2, 0, 0, 1);
  --t-fast: 160ms;
  --t-section: 480ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--cobalt-deep); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--cobalt);
}
::selection { background: var(--yellow); color: var(--ink); }
img, video, iframe { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--cobalt); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.floor :focus-visible, .bar :focus-visible, .footer :focus-visible { outline-color: var(--yellow); }
p, h1, h2, h3 { margin: 0; }
code { font: 0.875em var(--mono); background: var(--hover); padding: 1px 5px; overflow-wrap: anywhere; }
time, .ledger, .clock, .count, .record__lines { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 16px; top: -48px; z-index: 30; background: var(--yellow); color: var(--ink); padding: 10px 14px; font: 700 12px var(--mono); }
.skip:focus { top: 12px; }

/* Shared mono label type */
.mark__sub, .nav, .bar__phase, .devbar__label, .hero__jam, .button, .clock__head, .clock__name, .lane,
.kicker, .pre__group, .pre__duringlabel, .pre__duringlink, .pre__statlabel, .mark-key, .count,
.dayrow__label, .dayrow__status, .filters a, .ledger th, .ledger-empty__cols, .parts__num, .part__ver,
.slot__top, .tag, .entry__daylabel, .entry__type, .pre__toggle {
  font-family: var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---- Header ---- */
.bar { position: sticky; top: 0; z-index: 20; background: var(--cobalt); color: var(--white); border-bottom: 1px solid var(--cobalt-line); }
.bar__inner { min-height: 60px; padding-block: 10px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.mark { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; }
.mark:hover { color: var(--white); }
.mark__block { width: 18px; height: 18px; background: linear-gradient(var(--white) 0 62%, var(--yellow) 62%); }
.mark__name { font-weight: 900; font-stretch: 125%; font-size: 15px; letter-spacing: 0.02em; text-transform: uppercase; }
.mark__sub { font-size: 11px; color: var(--yellow); }
.nav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px clamp(14px, 2.4vw, 28px); font-size: 12px; font-weight: 500; }
.nav a { color: var(--white); text-decoration: none; }
.nav a:hover { color: var(--yellow); }
.nav .nav__curate { color: var(--yellow); }
.bar__phase { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--blue-soft); color: var(--white); font-size: 11px; white-space: nowrap; }
.lamp { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); }

.devbar { background: var(--yellow); color: var(--ink); }
.devbar__inner { padding-block: 9px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; font-size: 13px; }
.devbar__label { font-size: 11px; font-weight: 700; }
.devbar a { font-weight: 600; }

/* ---- Floor sections ---- */
.floor { background: var(--floor); color: var(--white); }
.floor h1, .floor h2, .floor h3 { color: var(--white); }
.stripe { height: 14px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, var(--ink) 14px 28px); }

.hero__grid {
  padding-block: clamp(56px, 9vw, 112px) clamp(56px, 8vw, 96px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(28px, 4vw, 56px); align-items: stretch;
}
.hero__copy { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.hero__jam { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; letter-spacing: 0.16em; color: var(--yellow); }
.hero__slash { color: var(--blue-soft); }
.hero__title { font-weight: 900; font-stretch: 125%; font-size: clamp(56px, 9vw, 136px); line-height: 0.84; letter-spacing: -0.01em; text-transform: uppercase; }
.hero__lede { max-width: 30em; font-size: 18px; line-height: 1.55; color: var(--blue-mist); text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.button {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px;
  background: var(--yellow); color: var(--ink); text-decoration: none; white-space: nowrap;
  font-size: 12px; font-weight: 700; border: 0; cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.button:hover, .floor .button:hover { background: var(--white); color: var(--ink); }
.button:active { transform: scale(0.96); }
.button--line { background: transparent; color: var(--white); border: 1px solid var(--blue-soft); font-weight: 500; }
.button--line:hover, .floor .button--line:hover { background: transparent; color: var(--white); border-color: var(--white); }
.button--quiet { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.button--quiet:hover { background: var(--ink); color: var(--white); }

.clock { border: 2px solid var(--white); padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-width: 0; overflow: hidden; container-type: inline-size; }
.clock__top { display: flex; flex-direction: column; gap: 20px; }
.clock__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 11px; letter-spacing: 0.16em; }
.clock__label { color: var(--yellow); white-space: nowrap; }
.clock__day { color: var(--blue-pale); white-space: nowrap; }
.clock__digits { display: flex; align-items: flex-start; gap: 0.05em; font-weight: 900; font-stretch: 125%; font-size: min(16.5cqw, 120px); line-height: 0.9; letter-spacing: -0.02em; white-space: nowrap; }
.clock__unit { display: flex; flex-direction: column; gap: 10px; }
.clock__name { font-size: 10px; font-weight: 500; letter-spacing: 0.16em; color: var(--blue-pale); line-height: 1; }
.clock__sep { color: var(--blue-soft); }
.clock__note { font-size: 14px; line-height: 1.5; color: var(--blue-mist); }
.lanes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.lane { display: flex; flex-direction: column; gap: 8px; font-size: 10px; letter-spacing: 0.12em; line-height: 1.6; color: var(--blue-pale); }
.lane__bar { height: 4px; background: var(--blue-mute); }
.day--done .lane__bar { background: var(--yellow); }
.day--live .lane__bar { background: repeating-linear-gradient(-45deg, var(--yellow) 0 4px, var(--blue-mute) 4px 8px); }
.lane__day { color: var(--white); font-weight: 700; margin-bottom: -8px; }
.lane__date { text-transform: none; }

/* ---- Paper sections ---- */
.sheet { padding-block: var(--section-y); scroll-margin-top: 60px; }
/* Sections anchor the sticker slots on their top edge; clip sideways only, so a
   sticker can still hang over the section above. */
.sheet, .floor { position: relative; overflow-x: clip; }
.sheet--white { background: var(--white); }
.sheet--warm { background: var(--warm); }
.sheet .wrap { display: flex; flex-direction: column; }
.kicker { display: flex; align-items: center; gap: 16px; font-size: 12px; letter-spacing: 0.16em; color: var(--cobalt); margin-bottom: 20px; }
.kicker__num { font-weight: 700; }
.kicker__rule { flex: 1; height: 1px; background: var(--rule-paper); }
.sheet--white .kicker__rule { background: var(--rule-white); }
.sheet--warm .kicker__rule { background: var(--rule-warm); }
.kicker--floor { color: var(--yellow); }
.kicker--floor .kicker__rule { background: var(--blue-mute); }
.sheet__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.sheet__title { font-weight: 900; font-stretch: 125%; font-size: var(--fs-h2); line-height: 0.95; letter-spacing: -0.01em; }
.standfirst { max-width: 36em; margin: 20px 0 48px; font-size: 17px; line-height: 1.55; color: var(--ink-soft); text-wrap: pretty; }
.floor .standfirst { color: var(--blue-mist); }
.muted { color: var(--ink-mute); }
.count { font-size: 11px; padding: 2px 7px; background: var(--ink); color: var(--white); letter-spacing: 0; }

/* Segmented filter */
.filters { display: flex; flex-wrap: wrap; border: 1px solid var(--ink); }
.section .filters { align-self: flex-start; margin-bottom: 32px; }
.filters a { padding: 10px 16px; color: var(--ink); text-decoration: none; font-size: 11px; font-weight: 500; }
.filters a:hover { background: var(--hover); color: var(--ink); }
.filters a[aria-current="true"] { background: var(--ink); color: var(--white); font-weight: 700; }

/* ---- Pre-game disclosure ---- */
.pre__summary { list-style: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; cursor: pointer; }
.pre__summary::-webkit-details-marker { display: none; }
.pre--locked .pre__summary { cursor: default; pointer-events: none; }
.pre__toggle { display: inline-flex; align-items: center; padding: 10px 16px; border: 1px solid var(--ink); font-size: 11px; font-weight: 700; white-space: nowrap; transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.pre__summary:hover .pre__toggle { background: var(--ink); color: var(--white); }
.pre__hide, .pre[open] .pre__show { display: none; }
.pre[open] .pre__hide { display: inline; }
.pre[open] ~ .pre__stats { display: none; }
.pre__body { display: flex; flex-wrap: wrap; gap: 40px clamp(32px, 5vw, 64px); align-items: flex-start; }
.pre__list { flex: 2 1 520px; display: flex; flex-direction: column; min-width: 0; }
.pre__listhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); font-weight: 800; font-stretch: 110%; font-size: 20px; }
.pre__row { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr) auto; gap: 8px 24px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--rule-white); }
.pre__name { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-weight: 800; font-size: 17px; }
.pre__ver { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--ink-mute); }
.pre__group { font-size: 10px; font-weight: 400; color: var(--ink-mute); }
.pre__desc { font-size: 15px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.pre__during { flex: 1 1 280px; display: flex; flex-direction: column; gap: 16px; padding: 24px; background: var(--cobalt); color: var(--white); }
.pre__duringlabel { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; color: var(--yellow); }
.pre__duringtitle { font-weight: 800; font-stretch: 110%; font-size: 22px; line-height: 1.25; }
.pre__duringtext { font-size: 15px; line-height: 1.55; color: var(--blue-mist); text-wrap: pretty; }
.pre__duringlink { font-size: 11px; font-weight: 700; color: var(--white); }
.pre__duringlink:hover { color: var(--yellow); }
.pre__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule-white); }
.pre__stat { padding: 22px 20px 22px 0; display: flex; flex-direction: column; gap: 6px; }
.pre__statnum { font-weight: 900; font-stretch: 125%; font-size: 44px; line-height: 1; color: var(--cobalt); }
.pre__statlabel { font-size: 11px; color: var(--ink-soft); }
.pre__statnames { padding: 22px 0; display: flex; align-items: center; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }

/* Marks: square keys that carry meaning by shape and fill, with the word */
.legend { display: flex; flex-wrap: wrap; gap: 20px; font-size: 11px; color: var(--ink-soft); margin: -24px 0 56px; padding-top: 8px; }
.mark-key { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; color: var(--ink-soft); white-space: nowrap; }
.legend .mark-key { font-size: 11px; }
.mark-key::before { content: ""; width: 8px; height: 8px; flex: none; }
.mark-key--engine::before { background: var(--cobalt); }
.mark-key--third-party::before { box-shadow: inset 0 0 0 1.5px var(--grey); }
.mark-key--custom::before { background: var(--yellow); outline: 1px solid var(--ink); }
.mark-key--prejam::before { background: var(--ink); }
.mark-key--private::before { background: repeating-linear-gradient(45deg, var(--ink) 0 2px, transparent 2px 4px); box-shadow: inset 0 0 0 1px var(--ink); }

/* ---- Log ---- */
.days { border-top: 2px solid var(--ink); }
.dayrow { display: grid; grid-template-columns: minmax(88px, 140px) minmax(0, 1fr) auto; gap: clamp(16px, 3vw, 40px); align-items: center; padding: 24px 0; border-bottom: 1px solid var(--rule-paper); }
.dayrow__num { display: flex; flex-direction: column; gap: 2px; font-weight: 900; font-stretch: 125%; font-size: 44px; line-height: 1; color: var(--cobalt); }
.dayrow__label { font-size: 10px; font-weight: 400; letter-spacing: 0.16em; color: var(--ink-mute); line-height: 1.2; }
.dayrow__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dayrow__long { font-weight: 800; font-stretch: 110%; font-size: 20px; }
.dayrow__meta { font-size: 14px; color: var(--ink-mute); }
.dayrow__status { font-size: 11px; padding: 6px 10px; border: 1px solid var(--rule-paper); color: var(--ink-soft); white-space: nowrap; }
.dayrow.day--live .dayrow__status { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }

.entries { display: grid; gap: 56px; border-top: 2px solid var(--ink); padding-top: 32px; }
.entry { display: grid; grid-template-columns: minmax(88px, 140px) minmax(0, 1fr); gap: 16px clamp(16px, 3vw, 40px); scroll-margin-top: 80px; }
.entry__rail { display: flex; flex-direction: column; gap: 8px; }
.entry__day { display: flex; flex-direction: column; gap: 2px; font-weight: 900; font-stretch: 125%; font-size: 44px; line-height: 1; color: var(--cobalt); }
.entry__daylabel { font-size: 10px; font-weight: 400; letter-spacing: 0.16em; color: var(--ink-mute); line-height: 1.2; }
.entry__time { font: 400 12px/1.5 var(--mono); color: var(--ink-mute); }
.panel { background: var(--white); border: 1px solid var(--rule-paper); padding: clamp(20px, 3vw, 32px); }
.entry__kind { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.entry__type { font-size: 11px; color: var(--ink-soft); }
.entry__title { font-weight: 800; font-stretch: 110%; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; overflow-wrap: anywhere; }
.entry__title a { text-decoration: none; }
.entry__title a:hover { text-decoration: underline; }
.entry__standfirst { margin-top: 12px; max-width: 36em; font-size: 18px; line-height: 1.5; color: var(--ink-2); }
.entry__tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.prose { margin-top: 16px; max-width: 68ch; font-size: 16px; line-height: 1.6; color: var(--ink-2); overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3 { font-weight: 800; font-stretch: 110%; font-size: 21px; line-height: 1.25; color: var(--ink); margin-top: 1.6em; }
.prose pre { overflow-x: auto; background: var(--paper); padding: 14px; font: 14px/1.5 var(--mono); }
.prose img { display: block; outline: 1px solid var(--image-outline); outline-offset: -1px; }
.prose a { color: var(--cobalt); }
.prose code { font: 0.9em/1 var(--mono); background: var(--paper); padding: 2px 5px; }
.prose pre code { background: none; padding: 0; font: inherit; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 0.35em; }
.prose table { border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--rule-paper); padding: 6px 10px; text-align: left; }

/* Post media: a line holding only ![caption](file) */
.figure { margin: 1.5em 0 0; }
.figure__frame { display: block; width: 100%; background: var(--ink); border: 0; }
.figure__frame img { display: block; width: 100%; height: auto; outline: 1px solid var(--image-outline); outline-offset: -1px; }
.figure__embed { aspect-ratio: 16 / 9; }
.figure__audio { display: block; width: 100%; }
.figure__caption { margin-top: 8px; font: 400 12px/1.5 var(--mono); letter-spacing: 0.04em; color: var(--ink-mute); }

/* Day folds: the newest day opens, earlier days fold to their row */
.dayfold__row { list-style: none; cursor: pointer; transition: background-color var(--t-fast) var(--ease); }
.dayfold__row::-webkit-details-marker { display: none; }
.dayfold__row:hover { background: var(--hover); }
.dayfold__row:hover .dayrow__status { border-color: var(--ink); color: var(--ink); }
.dayfold__hide, .dayfold[open] .dayfold__show { display: none; }
.dayfold[open] .dayfold__hide { display: inline; }
.dayfold[open] > .dayfold__row .dayrow__status { background: var(--ink); border-color: var(--ink); color: var(--white); }
.dayfold .entries { border-top: 0; padding: 32px 0 56px; }
.dayfold .entry__day { display: none; }
.media__audio { display: block; width: 100%; }

/* ---- Sticker slots: blank die-cuts stuck across a section's top edge ---- */
.stickers { position: absolute; inset: 0 0 auto; height: 0; z-index: 2; pointer-events: none; }
.sticker { position: absolute; top: 0; width: var(--sticker); aspect-ratio: 1; translate: -50% -50%; rotate: var(--tilt, -4deg); }
.sticker--l { --sticker: clamp(116px, 15vw, 200px); }
.sticker--m { --sticker: clamp(96px, 11.5vw, 152px); }
.sticker--s { --sticker: clamp(84px, 9vw, 120px); }
.sticker__cut { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 1px 0 var(--image-outline)) drop-shadow(0 10px 16px var(--sticker-shadow)); }
.sticker__paper { fill: var(--white); stroke: var(--white); stroke-width: 6; stroke-linejoin: round; }
.sticker__line { fill: none; stroke: var(--blue-soft); stroke-width: 2; stroke-dasharray: 7 6; }
.sticker__art { position: absolute; inset: 14%; width: 72%; height: 72%; object-fit: contain; }
.sticker__text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; }
.sticker__label { font-weight: 900; font-stretch: 125%; font-size: calc(var(--sticker) * 0.13); line-height: 1; color: var(--cobalt); }
.sticker__note { font: 500 9px/1.2 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }
.sticker__art ~ .sticker__text { display: none; }
.stickers--pregame .sticker { left: 76%; --tilt: -7deg; }
.stickers--log .sticker { left: 20%; --tilt: 5deg; }
.stickers--record .sticker { left: 64%; --tilt: -3deg; }
.stickers--tooling .sticker { left: 86%; --tilt: 8deg; }
.stickers--submission .sticker { left: 36%; --tilt: -5deg; }
.older { margin-top: 8px; }

.tag { display: inline-block; padding: 4px 8px; font-size: 10px; font-weight: 700; letter-spacing: 0.16em; background: var(--paper); color: var(--ink); }
.tag--human { background: var(--yellow); color: var(--ink); }
.tag--automated { background: var(--cobalt-line); color: var(--white); }
.tag--draft { background: var(--ink); color: var(--white); }
.tag--plain, .tag--cat { background: transparent; box-shadow: inset 0 0 0 1px var(--rule-paper); font-weight: 500; }

/* Records cited inside an entry */
.record { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--rule-white); }
.record__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 14px; color: var(--ink-soft); }
.record__lines { list-style: none; margin: 0; padding: 0; font: 13px/1.5 var(--mono); }
.record__line { display: grid; grid-template-columns: 26ch minmax(0, 1fr) auto auto auto; gap: 4px 16px; align-items: baseline; padding: 9px 12px; }
.record__line:nth-child(odd) { background: var(--paper); }
.record__line time { color: var(--ink-mute); white-space: nowrap; }
.record__src, .record__took { color: var(--ink-mute); }
.record__what { overflow-wrap: anywhere; }
.record__media { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 8px; }
.ledger__cat { color: var(--cobalt); font-weight: 700; text-transform: uppercase; font-size: 10px; letter-spacing: 0.14em; margin-right: 6px; }
.result { display: inline-flex; align-items: center; gap: 6px; font: 700 11px var(--mono); text-transform: uppercase; letter-spacing: 0.12em; white-space: nowrap; }
.result::before { content: ""; width: 8px; height: 8px; box-shadow: inset 0 0 0 1.5px var(--ink); }
.result--success::before { background: var(--cobalt); box-shadow: none; }
.result--failure::before { background: var(--yellow); box-shadow: inset 0 0 0 1.5px var(--ink); }
.result--partial::before { background: linear-gradient(90deg, var(--cobalt) 50%, transparent 50%); }
.result--info::before { background: var(--grey); box-shadow: none; }

/* ---- Record ---- */
.ledger-box { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; }
.ledger-box:last-child { margin-bottom: 0; }
.ledger-box__head { display: flex; align-items: baseline; gap: 10px; font-weight: 800; font-size: 18px; }
.ledger-box__scroll { overflow-x: auto; background: var(--white); border: 1px solid var(--rule-warm); }
.ledger { width: 100%; min-width: 760px; border-collapse: collapse; font: 13px/1.45 var(--mono); }
.ledger th { text-align: left; padding: 14px 20px; border-bottom: 2px solid var(--cobalt); font-size: 10px; font-weight: 700; letter-spacing: 0.16em; color: var(--cobalt); white-space: nowrap; }
.ledger td { padding: 12px 20px; vertical-align: top; border-bottom: 1px solid var(--rule-white); overflow-wrap: anywhere; }
.ledger tr:last-child td { border-bottom: 0; }
.ledger td:nth-child(3), .ledger td:nth-child(4), .ledger td:nth-child(5) { white-space: nowrap; overflow-wrap: normal; }
.ledger-empty { min-width: 760px; }
.ledger-empty__cols { display: grid; grid-template-columns: 90px 2fr 1fr 90px 70px 1.2fr; gap: 16px; padding: 14px 20px; border-bottom: 2px solid var(--cobalt); font-size: 10px; font-weight: 700; letter-spacing: 0.16em; color: var(--cobalt); }
.ledger-empty__title { padding: 48px 20px 8px; text-align: center; font-weight: 800; font-size: 16px; }
.ledger-empty__text { padding: 0 20px 48px; text-align: center; font-size: 14px; color: var(--ink-mute); }

/* ---- Tools ---- */
.parts { display: flex; flex-direction: column; }
.parts__group { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 24px clamp(24px, 4vw, 48px); padding: 32px 0 40px; border-top: 2px solid var(--ink); }
.parts__head { display: flex; flex-direction: column; gap: 6px; }
.parts__num { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; color: var(--cobalt); }
.parts__title { font-weight: 800; font-stretch: 110%; font-size: 20px; line-height: 1.2; }
.parts__list { grid-column: span 3; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 0 clamp(24px, 3vw, 40px); }
.part { display: flex; flex-direction: column; gap: 10px; padding: 20px 0 24px; border-top: 1px solid var(--rule-white); }
.part__name { font-weight: 800; font-size: 19px; }
.part__name a { text-decoration: none; }
.part__name a:hover { text-decoration: underline; }
.part__ver { font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-mute); margin-left: 4px; }
.part__marks { display: flex; flex-wrap: wrap; gap: 14px; }
.part__role { font-size: 15px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.part__note { font-size: 13px; line-height: 1.5; color: var(--ink-mute); font-style: italic; }
.part__maker { font-size: 13px; color: var(--ink-mute); }

/* ---- Where to play it ---- */
.exit .wrap { padding-block: var(--section-y); }
.exit { scroll-margin-top: 60px; }
.slots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1px; background: var(--blue-mute); border: 1px solid var(--blue-mute); }
.slot { background: var(--cobalt); padding: 28px; display: flex; flex-direction: column; gap: 14px; min-height: 180px; }
.slot__top { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; color: var(--blue-pale); }
.slot__state { display: inline-flex; align-items: center; gap: 6px; }
.slot__state::before { content: ""; width: 7px; height: 7px; border: 1.5px solid var(--blue-pale); border-radius: 50%; }
.slot--live .slot__state { color: var(--yellow); }
.slot--live .slot__state::before { background: var(--yellow); border-color: var(--yellow); }
.slot__label { font-weight: 800; font-stretch: 110%; font-size: 21px; line-height: 1.2; }
.slot__link { font-size: 15px; overflow-wrap: anywhere; }
.slot__note { margin-top: auto; font-size: 14px; line-height: 1.5; color: var(--blue-pale); }

/* ---- Footer ---- */
.footer { background: var(--cobalt-deep); color: var(--blue-mist); }
.footer__grid { padding-block: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 40px; }
.footer__credit { font-size: 16px; line-height: 1.6; color: var(--white); }
.footer a { color: inherit; }
.footer a:hover { color: var(--yellow); }
.footer__key { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 16px 20px; align-items: baseline; font-size: 14px; line-height: 1.55; }
.footer__key div { display: contents; }
.footer__key dt { justify-self: start; }
.footer__key dd { margin: 0; }

/* ---- Shared states ---- */
.empty { max-width: 46ch; padding-top: 16px; border-top: 2px solid var(--ink); }
.empty__title { font-weight: 800; font-size: 18px; margin-bottom: 6px; }
.notice { margin-block: 16px 0; padding: 12px 16px; font-size: 14px; background: var(--white); border-left: 4px solid var(--yellow); }
.notice--warn { border-left-color: var(--ink); }

/* Curation view (development only) */
.section h2 { font-weight: 800; font-size: 21px; }
.group { margin-top: 40px; }
.group__name { margin-bottom: 14px; }
.items { display: grid; gap: 14px; }
.item { background: var(--white); padding: 18px 20px; border: 1px solid var(--rule-paper); border-left: 4px solid var(--cobalt); min-width: 0; }
.item--human { border-left-color: var(--yellow); }
.item--draft { border-left-style: dashed; }
.item__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 14px; }
.item__head time { margin-left: auto; color: var(--ink-mute); font-family: var(--mono); font-size: 12px; }
.item__title { font-weight: 700; font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }
.item__summary, .item__notes { margin-top: 6px; }
.item__meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 8px 0 0; font: 12px/1.5 var(--mono); color: var(--ink-mute); }
.item__meta div { display: flex; gap: 6px; }
.item__meta dt { font-weight: 700; }
.item__meta dd { margin: 0; overflow-wrap: anywhere; }
.item__cited, .item__citedby, .item__tags, .item__files { margin-top: 8px; font-size: 14px; }
.curate .cite { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; }
.cite__label { font: 700 10px var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-mute); }
.cite__copy { font: 700 10px var(--mono); text-transform: uppercase; letter-spacing: 0.14em; background: var(--cobalt); color: var(--white); border: 0; padding: 6px 10px; cursor: pointer; }
.cite__copy:active { transform: scale(0.96); }
.media { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 10px; }
.media__item { display: block; width: 100%; background: var(--ink); }
.media__item img { display: block; width: 100%; height: auto; outline: 1px solid var(--image-outline); outline-offset: -1px; }
.media__frame { aspect-ratio: 16 / 9; border: 0; }
.media__link { overflow-wrap: anywhere; }

/* Error pages: the code in floor tiles */
.status .wrap { padding-block: clamp(72px, 12vw, 160px); display: grid; gap: 20px; justify-items: start; }
.status__tiles { display: flex; gap: 12px; margin-bottom: 12px; }
.status__tile { display: grid; place-items: center; width: clamp(84px, 14vw, 132px); aspect-ratio: 3 / 4; border: 2px solid var(--white); font-weight: 900; font-stretch: 125%; font-size: clamp(64px, 11vw, 110px); line-height: 1; color: var(--white); }
.status h1 { font-weight: 900; font-stretch: 125%; font-size: var(--fs-h2); line-height: 0.95; }
.status p { font-size: 18px; max-width: 44ch; color: var(--blue-mist); }

/* htmx: a filtered log arrives rather than blinks in */
.htmx-added { opacity: 0; }
#log { transition: opacity var(--t-section) var(--ease); }

/* ---- Narrow screens ---- */
@media (max-width: 640px) {
  .pre__row { grid-template-columns: minmax(0, 1fr); }
  .dayrow { grid-template-columns: auto minmax(0, 1fr); }
  .dayrow__status { grid-column: 2; justify-self: start; }
  .entry { grid-template-columns: minmax(0, 1fr); }
  .stickers--pregame .sticker, .stickers--tooling .sticker { left: 78%; }
  .entry__rail { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .parts__list { grid-column: auto; }
  .record__line { grid-template-columns: minmax(0, 1fr) auto; }
  .record__line time, .record__what { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; }
}
