/* LeRobot Dataset Index: a lab field-recording log.
   Ruled notebook paper, index cards, film-strip episode strips, rubber-stamped robot labels,
   a few pencilled notes. Two faces: IBM Plex Sans Condensed for everything set, Caveat for
   the handwritten notes. No inline styles anywhere (strict CSP). */

@font-face { font-family: 'Plex Cond'; src: url('fonts/plex-condensed-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Plex Cond'; src: url('fonts/plex-condensed-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Plex Cond'; src: url('fonts/plex-condensed-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Plex Cond'; src: url('fonts/plex-condensed-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Caveat'; src: url('fonts/caveat-latin-wght-normal.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --paper: #f1f3ee;
  --paper-2: #e6eae3;
  --card: #fcfcf9;
  --rule: #cdd9e4;
  --rule-strong: #a9bccd;
  --margin: #d9675a;
  --ink: #17202b;
  --ink-2: #4b5664;
  --pencil: #1f4f9e;
  --stamp: #b3342b;
  --stamp-2: #2b5f8f;
  --link: #1c4e9b;
  --tape: rgb(226 214 170 / 0.78);
  --film: #1b1e22;
  --film-frame: #2c3238;
  --film-hole: #f1f3ee;
  --bar-fill: #24476f;
  --bar-sim: #8a9bb0;
  --ok: #2f6b3a;
  --warn: #9a5a00;
  --focus: #1c4e9b;
  --shadow: 0 1px 0 rgb(23 32 43 / 0.08), 0 8px 18px -10px rgb(23 32 43 / 0.35);

  --face: 'Plex Cond', 'IBM Plex Sans Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --hand: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;
  --code: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; /* taste-skill-ignore: code blocks only */

  --line: 28px; /* the ruling pitch */
  --gutter: clamp(16px, 3.2vw, 40px);
  --margin-x: clamp(28px, 5vw, 76px); /* where the red margin line sits */
  --text: 1.0625rem;
  --small: 0.9375rem;
  --h2: clamp(1.75rem, 1.1rem + 2.4vw, 3rem);
  --h1: clamp(2.75rem, 0.9rem + 6.6vw, 7rem);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper: #13171a; --paper-2: #1a1f23; --card: #1e2429; --rule: #252f38; --rule-strong: #34424f;
    --margin: #8b3a33; --ink: #ebe8e1; --ink-2: #a9b1ba; --pencil: #9dbcff; --stamp: #ff8270; --stamp-2: #8cc0f0;
    --link: #9dbcff; --tape: rgb(170 160 120 / 0.42); --film: #090b0d; --film-frame: #20262c; --film-hole: #13171a;
    --bar-fill: #7fa8d8; --bar-sim: #55657a; --ok: #7fcf8c; --warn: #f0b45a; --focus: #9dbcff;
    --shadow: 0 1px 0 rgb(0 0 0 / 0.3), 0 6px 14px -10px rgb(0 0 0 / 0.45);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --paper: #13171a; --paper-2: #1a1f23; --card: #1e2429; --rule: #252f38; --rule-strong: #34424f;
  --margin: #8b3a33; --ink: #ebe8e1; --ink-2: #a9b1ba; --pencil: #9dbcff; --stamp: #ff8270; --stamp-2: #8cc0f0;
  --link: #9dbcff; --tape: rgb(170 160 120 / 0.42); --film: #090b0d; --film-frame: #20262c; --film-hole: #13171a;
  --bar-fill: #7fa8d8; --bar-sim: #55657a; --ok: #7fcf8c; --warn: #f0b45a; --focus: #9dbcff;
  --shadow: 0 1px 0 rgb(0 0 0 / 0.3), 0 6px 14px -10px rgb(0 0 0 / 0.45);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font: 400 var(--text) / 1.55 var(--face);
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}
/* The notebook: pale blue ruling and a red margin line down the left of every page. */
main {
  position: relative;
  background-image:
    linear-gradient(to right, transparent calc(var(--margin-x) - 2px), var(--margin) calc(var(--margin-x) - 2px), var(--margin) var(--margin-x), transparent var(--margin-x)), /* taste-skill-ignore: hard-stop ruling, the notebook paper itself */
    repeating-linear-gradient(to bottom, transparent 0 calc(var(--line) - 1px), var(--rule) calc(var(--line) - 1px) var(--line)); /* taste-skill-ignore: hard-stop ruling, the notebook paper itself */
  background-attachment: local;
  padding-bottom: 96px;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
::selection { background: color-mix(in srgb, var(--pencil) 25%, transparent); }
code, pre, kbd { font-family: var(--code); font-size: 0.92em; }
h1, h2, h3 { font-weight: 700; line-height: 1.02; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { padding-left: calc(var(--margin-x) + var(--gutter)); padding-right: var(--gutter); max-width: 1520px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 10; transition: transform 0.2s var(--ease); }
.skip:focus { transform: translateY(72px); }

/* Header bar: wordmark, four links, the theme switch. */
.bar {
  display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap;
  padding: 14px var(--gutter) 14px calc(var(--margin-x) + var(--gutter));
  background: var(--paper-2);
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 1.15rem; letter-spacing: -0.01em; }
.wordmark b { font-weight: 700; }
.mark { width: 30px; height: 30px; flex: none; }
.reel-rim { fill: var(--ink); }
.reel-hub, .reel-hole { fill: var(--paper-2); }
.wordmark:hover .mark { transform: rotate(-60deg); }
.mark { transition: transform 0.6s var(--ease); }
.bar nav { margin-left: auto; }
.bar ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; }
.bar nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color 0.15s; }
.bar nav a:hover { border-bottom-color: var(--rule-strong); }
.bar nav a[aria-current='page'] { border-bottom-color: var(--stamp); }
.theme { font: inherit; font-size: var(--small); color: var(--ink); background: var(--paper); border: 0; padding: 7px 12px 7px 10px; display: inline-flex; gap: 8px; align-items: center; cursor: pointer; border-radius: 999px; transition: background-color 0.15s, transform 0.1s; }
.theme:hover { background: var(--card); }
.theme:active { transform: scale(0.96); }
.theme-dot { width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); box-shadow: inset 0 0 0 2px var(--ink); } /* taste-skill-ignore: two flat halves, the theme glyph */

/* Rubber stamps: robot families and labels. Inked, slightly crooked, never small caps confetti. */
.stamp {
  display: inline-block; font-weight: 700; font-size: 0.92rem; line-height: 1; letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--stamp-2); padding: 5px 8px 4px;
  border: 2px solid currentColor; border-radius: 3px; transform: rotate(-1.5deg);
  white-space: nowrap; text-decoration: none; background: color-mix(in srgb, currentColor 7%, transparent);
}
a.stamp:hover { background: color-mix(in srgb, currentColor 16%, transparent); }
.stamp.red { color: var(--stamp); }
.stamp.plain { color: var(--ink-2); }
.stamp.tilt { transform: rotate(1.2deg); }
.hand { font-family: var(--hand); font-weight: 600; font-size: 1.45rem; line-height: 1.1; color: var(--pencil); }

/* Front page: title and the week's log entry on the left, the pinned index card on the right. */
.front { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px clamp(32px, 5vw, 88px); padding-top: clamp(40px, 6vw, 84px); padding-bottom: 56px; align-items: start; }
.front h1 { font-size: var(--h1); letter-spacing: -0.035em; line-height: 0.92; }
.front .lede { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); line-height: 1.4; max-width: 34ch; margin-top: 28px; }
.logline { margin-top: 40px; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 4px 40px; }
.logline div { display: grid; }
.logline dt { order: 2; color: var(--ink-2); font-size: var(--small); }
.logline dd { order: 1; margin: 0; font-weight: 700; font-size: clamp(1.9rem, 1.2rem + 2.2vw, 3.4rem); line-height: 1; letter-spacing: -0.02em; }
.logline-note { margin-top: 14px; color: var(--ink-2); font-size: var(--small); max-width: 60ch; }
.front-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.btn {
  font: inherit; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px;
  background: var(--ink); color: var(--paper); text-decoration: none; border: 0; border-radius: 0; cursor: pointer;
  transition: transform 0.12s var(--ease), background-color 0.15s;
}
.btn:hover { background: var(--pencil); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); } /* taste-skill-ignore: inset border on the secondary button */
.btn.ghost:hover { background: var(--card); }

/* Index card with masking tape. */
.card {
  position: relative; background: var(--card); padding: 30px 28px 26px; box-shadow: var(--shadow); /* taste-skill-ignore: the taped card is a physical object lifted off the page */
  background-image: repeating-linear-gradient(to bottom, transparent 0 calc(var(--line) - 1px), color-mix(in srgb, var(--rule) 60%, transparent) calc(var(--line) - 1px) var(--line)); /* taste-skill-ignore: hard-stop ruling on the index card */
  background-position: 0 70px;
}
.card::before {
  content: ''; position: absolute; left: 0; right: 0; top: 58px; height: 2px; background: var(--margin); opacity: 0.75;
}
.tape::after, .tape::before {
  content: ''; position: absolute; width: 92px; height: 26px; background: var(--tape); top: -12px; z-index: 1;
}
.tape::after { right: 22px; transform: rotate(5deg); }
.tape::before { left: 22px; transform: rotate(-4deg); }
.pick { transform: rotate(1.1deg); margin-top: 18px; transition: transform 0.4s var(--ease); }
.pick:hover { transform: rotate(0deg); }
.pick-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; height: 32px; }
.pick-head .hand { font-size: 1.6rem; color: var(--stamp); }
.pick-week { color: var(--ink-2); font-size: var(--small); }
.pick h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem); margin-top: 22px; word-break: break-word; }
.pick h2.long { font-size: clamp(1.3rem, 1rem + 0.9vw, 1.75rem); }
.pick h2 a { color: var(--ink); text-decoration: none; }
.pick h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.pick-owner { color: var(--ink-2); font-weight: 400; display: block; font-size: 0.55em; letter-spacing: 0; margin-bottom: 4px; }
.pick-stamps { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 12px; margin: 20px 0 0; }
.figs div { display: grid; }
.figs dt { order: 2; font-size: 0.85rem; color: var(--ink-2); }
.figs dd { order: 1; margin: 0; font-size: 1.6rem; font-weight: 700; line-height: 1.15; }
.why { margin-top: 18px; display: flex; gap: 14px; align-items: flex-start; }
.why .score-ring { flex: none; }
.why p { font-size: var(--small); }
.why .hand { display: block; font-size: 1.35rem; }

/* Film strip: one frame per camera, sprocket holes above and below. */
.film {
  margin-top: 20px; background: var(--film); padding: 12px 8px; display: flex; gap: 6px; overflow: hidden; position: relative;
}
.film::before, .film::after {
  content: ''; position: absolute; left: 0; right: 0; height: 6px;
  background: radial-gradient(circle at 50% 50%, var(--film-hole) 0 2.2px, transparent 2.6px) 0 0 / 14px 6px repeat-x; /* taste-skill-ignore: sprocket holes of the film strip */
}
.film::before { top: 3px; }
.film::after { bottom: 3px; }
.frame { flex: 1 1 0; min-width: 0; background: var(--film-frame); color: #d9dde2; padding: 10px 8px 8px; font-size: 0.82rem; line-height: 1.2; display: grid; gap: 2px; }
.frame b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frame span { color: #9aa4ae; }
.frame.depth { box-shadow: inset 0 -3px 0 #6e8fbf; } /* taste-skill-ignore: depth-camera marker */
.film.empty .frame { color: #9aa4ae; }

/* Sections */
.section { padding-top: clamp(72px, 9vw, 150px); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 28px; margin-bottom: 28px; }
.section-head h2 { font-size: var(--h2); }
.section-head p { color: var(--ink-2); max-width: 62ch; }
.margin-note { position: relative; }
.margin-note .hand { display: inline-block; transform: rotate(-2deg); }

/* Catalogue: the filter column and the logbook table. */
.catalogue { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 32px; align-items: start; }
.catalogue > * { min-width: 0; }
#results { overflow-x: auto; }
.filters { background: var(--paper-2); padding: 20px 18px 22px; display: grid; gap: 14px; position: sticky; top: 12px; }
.filters label, .filters legend { display: block; font-weight: 500; font-size: var(--small); margin-bottom: 4px; }
.filters input[type='search'], .filters select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--card); border: 0; border-bottom: 2px solid var(--rule-strong);
  padding: 8px 10px; border-radius: 0; appearance: none;
}
.filters select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 16px) 55%, calc(100% - 11px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 28px; } /* taste-skill-ignore: select chevron, two flat triangles */
.filters input[type='search']:focus, .filters select:focus { outline: none; border-bottom-color: var(--pencil); }
.filters input[type='search']:focus-visible, .filters select:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.filters .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.filters .check { display: flex; gap: 10px; align-items: center; font-size: var(--small); }
.filters .check input { width: 18px; height: 18px; accent-color: var(--ink); }
.more-filters > summary { display: none; }
.more-grid { display: grid; gap: 14px; }
.filters .reset { font: inherit; font-size: var(--small); background: none; border: 0; padding: 0; color: var(--link); text-decoration: underline; cursor: pointer; justify-self: start; }
.result-line { margin-bottom: 8px; min-height: var(--line); }
.result-line strong { font-size: 1.3rem; }
.result-line .hand { font-size: 1.3rem; }

.log { width: 100%; border-collapse: collapse; background: var(--card); font-size: 0.98rem; }
.log caption { text-align: left; }
.log th { text-align: left; font-weight: 700; font-size: 0.88rem; color: var(--ink-2); padding: 10px 10px 8px; border-bottom: 2px solid var(--ink); white-space: nowrap; vertical-align: bottom; }
.log td { padding: 9px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.log tr:hover td { background: color-mix(in srgb, var(--paper-2) 70%, transparent); }
.log .num { text-align: right; white-space: nowrap; }
.log .ds a { color: var(--ink); font-weight: 500; text-decoration: none; word-break: break-word; }
.log .ds a:hover { color: var(--link); text-decoration: underline; }
.log .ds .owner { display: block; color: var(--ink-2); font-size: 0.86rem; font-weight: 400; }
.log .ds .flags { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.log .stamp { font-size: 0.76rem; padding: 3px 5px 2px; border-width: 1.5px; }
.log .score { font-weight: 700; }
.chip { font-size: 0.8rem; color: var(--ink-2); background: var(--paper-2); padding: 1px 6px; }
.chip.warn { color: var(--warn); }
.cams { display: inline-flex; gap: 2px; vertical-align: -2px; margin-left: 4px; }
.cams i { width: 7px; height: 11px; background: var(--film); display: inline-block; }
.more { margin-top: 16px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.empty-log { padding: 28px 16px; background: var(--card); }
.empty-log .hand { font-size: 1.6rem; }

/* Robots: tape strips whose length is the hours logged. */
.reels { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.reel { display: grid; grid-template-columns: minmax(150px, 240px) minmax(0, 1fr) minmax(0, 20rem); gap: 8px 22px; align-items: center; padding: 12px 0; }
.reel .stamp { justify-self: start; }
.tape-strip { position: relative; height: 22px; background: var(--paper-2); }
.tape-strip span { position: absolute; inset: 0 auto 0 0; background: var(--bar-fill); transform-origin: left center; }
.tape-strip span::after { content: ''; position: absolute; inset: 7px 0; background: radial-gradient(circle, color-mix(in srgb, var(--paper) 55%, transparent) 0 1.6px, transparent 2px) 0 0 / 9px 8px repeat-x; } /* taste-skill-ignore: sprocket holes on the tape strip */
.reel-figs { font-size: var(--small); color: var(--ink-2); white-space: nowrap; text-align: right; }
.reel-figs b { color: var(--ink); font-size: 1.05rem; }
.reel a.rlink { color: var(--ink); }
.w-0 { width: 0.6%; } .w-5 { width: 5%; } .w-10 { width: 10%; } .w-15 { width: 15%; } .w-20 { width: 20%; } .w-25 { width: 25%; } .w-30 { width: 30%; } .w-35 { width: 35%; } .w-40 { width: 40%; } .w-45 { width: 45%; } .w-50 { width: 50%; } .w-55 { width: 55%; } .w-60 { width: 60%; } .w-65 { width: 65%; } .w-70 { width: 70%; } .w-75 { width: 75%; } .w-80 { width: 80%; } .w-85 { width: 85%; } .w-90 { width: 90%; } .w-95 { width: 95%; } .w-100 { width: 100%; }

/* New this week: log entries by day, the day pencilled in the margin. */
.days { display: grid; gap: 30px; }
.day { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; }
.day-label { font-family: var(--hand); font-weight: 600; font-size: 1.7rem; line-height: 1; color: var(--pencil); transform: rotate(-2deg); padding-top: 6px; }
.day-label small { display: block; font-family: var(--face); font-size: 0.85rem; color: var(--ink-2); font-weight: 400; transform: none; margin-top: 4px; }
.entries { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 10px 0; border-bottom: 1px dashed var(--rule-strong); } /* taste-skill-ignore: logbook entry ruling */
.entry a.name { font-weight: 500; color: var(--ink); text-decoration: none; word-break: break-word; }
.entry a.name:hover { color: var(--link); text-decoration: underline; }
.entry .meta { color: var(--ink-2); font-size: var(--small); grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.entry .stamp { font-size: 0.76rem; padding: 3px 5px 2px; border-width: 1.5px; }

/* Two related tools, pencilled in as cross references. */
.xref { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.xref a { display: block; background: var(--paper-2); padding: 22px 24px; color: var(--ink); text-decoration: none; transition: background-color 0.15s, transform 0.2s var(--ease); }
.xref a:hover { background: var(--card); transform: translateY(-2px); }
.xref a:active { transform: translateY(0); }
.xref b { display: block; font-size: 1.35rem; }
.xref .hand { display: block; margin-top: 6px; }
.xref-desc { display: block; font-size: var(--small); color: var(--ink-2); margin-top: 4px; }

/* Detail page */
.crumbs { padding-top: 26px; font-size: var(--small); color: var(--ink-2); }
.crumbs a { color: var(--ink-2); }
.dhead { padding-top: 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 32px; align-items: end; }
.dhead h1 { font-size: clamp(2rem, 1rem + 3.6vw, 4.2rem); line-height: 0.98; word-break: break-word; }
.dhead .owner { display: block; font-size: 0.42em; font-weight: 400; color: var(--ink-2); letter-spacing: 0; margin-bottom: 8px; }
.dhead .stamps { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.dscore { text-align: right; }
.dscore b { display: block; font-size: clamp(2.6rem, 1.8rem + 2.4vw, 4.2rem); line-height: 0.9; }
.dscore span { color: var(--ink-2); font-size: var(--small); }
.dgrid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px clamp(28px, 4vw, 64px); margin-top: 40px; align-items: start; }
.dblock + .dblock { margin-top: 44px; }
.dblock h2 { font-size: 1.6rem; margin-bottom: 14px; }
.kv { width: 100%; border-collapse: collapse; background: var(--card); }
.kv th { text-align: left; font-weight: 500; color: var(--ink-2); padding: 8px 12px; width: 38%; vertical-align: top; border-bottom: 1px solid var(--rule); }
.kv td { padding: 8px 12px; border-bottom: 1px solid var(--rule); word-break: break-word; }
.names { color: var(--ink-2); font-size: 0.9rem; margin-top: 2px; }
.snippet { background: var(--film); color: #e7eaee; padding: 18px 18px 16px; position: relative; }
.snippet pre { margin: 0; white-space: pre-wrap; word-break: break-all; font-size: 0.92rem; line-height: 1.6; }
.snippet .copy { position: absolute; top: 10px; right: 10px; font: inherit; font-size: 0.88rem; font-weight: 700; background: #e7eaee; color: #111; border: 0; padding: 6px 12px; cursor: pointer; transition: transform 0.1s, background-color 0.15s; }
.snippet .copy:hover { background: #fff; }
.snippet .copy:active { transform: scale(0.95); }
.snippet-note { margin-top: 10px; font-size: var(--small); color: var(--ink-2); }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bars li { display: grid; grid-template-columns: 110px minmax(0, 1fr) 72px; gap: 10px; align-items: center; font-size: var(--small); }
.bars .track { height: 12px; background: var(--paper-2); position: relative; }
.bars .track span { position: absolute; inset: 0 auto 0 0; background: var(--bar-fill); }
.bars .val { text-align: right; color: var(--ink-2); }
.penalty { margin-top: 12px; color: var(--stamp); font-size: var(--small); }
.kv + .taglist { margin-top: 12px; }
.taglist { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.episodes-strip { margin-top: 18px; }
.ep-row { display: flex; gap: 2px; flex-wrap: wrap; }
.ep-row i { width: 9px; height: 14px; background: var(--film); display: block; }
.ep-row i.more-eps { background: transparent; width: auto; height: auto; font-style: normal; color: var(--ink-2); font-size: 0.85rem; padding-left: 6px; }
.ep-caption { font-size: var(--small); color: var(--ink-2); margin-top: 8px; }
.notice { background: var(--paper-2); padding: 18px 20px; margin-top: 24px; max-width: 70ch; }

/* Prose pages (method, picks, 404) */
.prose { max-width: 74ch; }
.prose h1 { font-size: clamp(2.4rem, 1.2rem + 4vw, 4.8rem); line-height: 0.95; padding-top: clamp(36px, 5vw, 72px); }
.prose h2 { font-size: 1.9rem; margin-top: 56px; margin-bottom: 12px; }
.prose p, .prose ul, .prose ol { margin-top: 14px; }
.prose li + li { margin-top: 6px; }
.prose table { margin-top: 14px; }
.lede-big { font-size: 1.3rem; line-height: 1.45; margin-top: 22px; }

/* Footer: the name returns across the page. */
.foot { background: var(--paper-2); padding: 48px var(--gutter) 0 calc(var(--margin-x) + var(--gutter)); overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 24px 40px; font-size: var(--small); }
.foot-note { color: var(--ink-2); max-width: 52ch; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; align-content: start; }
.foot-name { font-weight: 700; font-size: clamp(1.6rem, 8.1vw, 9.5rem); line-height: 0.8; letter-spacing: -0.04em; color: var(--ink); margin-top: 40px; white-space: nowrap; transform: translateY(0.12em); }

/* Entrance: rows of the log rise into place once. JS adds .in; without JS they stay put. */
.js .rise { opacity: 0; transform: translateY(18px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
.js .rise.in { opacity: 1; transform: none; }
.js .rise.d1 { transition-delay: 0.07s; } .js .rise.d2 { transition-delay: 0.14s; } .js .rise.d3 { transition-delay: 0.21s; }
.js .tape-strip span { transform: scaleX(0); transition: transform 0.9s var(--ease); }
.js .in .tape-strip span, .js .tape-strip.in span { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .rise { opacity: 1; transform: none; }
  .js .tape-strip span { transform: none; }
  .pick, .pick:hover { transform: none; }
}

/* Tablet and phone: each its own composition. */
@media (max-width: 1100px) {
  .catalogue { grid-template-columns: 1fr; }
  .filters { position: static; }
  .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters .wide { grid-column: 1 / -1; }
}
@media (max-width: 1000px) {
  .theme-word { display: none; }
  .bar nav ul { gap: 4px 16px; }
}
@media (max-width: 900px) {
  .front { grid-template-columns: 1fr; }
  .pick { max-width: 640px; }
  .dgrid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-note { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  :root { --margin-x: 18px; --gutter: 16px; }
  .bar { padding-left: calc(var(--margin-x) + 10px); }
  .bar nav { margin-left: 0; order: 3; width: 100%; }
  .theme { margin-left: auto; }
  .theme-word { display: none; }
  .wrap { padding-left: calc(var(--margin-x) + 12px); }
  .logline { grid-template-columns: repeat(2, auto); gap: 12px 28px; }
  .filters { grid-template-columns: 1fr; }
  .more-grid { grid-template-columns: 1fr; }
  .more-filters > summary { display: list-item; cursor: pointer; font-weight: 700; padding: 6px 0; }
  .more-filters[open] > summary { margin-bottom: 12px; }
  .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
  .reel { grid-template-columns: auto minmax(0, 1fr); }
  .reel-figs { white-space: normal; }
  .reel .tape-strip { grid-column: 1 / -1; grid-row: 2; }
  .day { grid-template-columns: 1fr; gap: 6px; }
  .xref { grid-template-columns: 1fr; }
  .dhead { grid-template-columns: 1fr; }
  .dscore { text-align: left; }
  .foot { padding-left: calc(var(--margin-x) + 12px); }
  .foot-grid { grid-template-columns: 1fr; }
  /* The log table becomes one card per dataset: name line, then the figures in a row. */
  .log thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .log, .log tbody, .log tr, .log td { display: block; }
  .log tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 12px 12px 10px; border-bottom: 1px solid var(--rule-strong); gap: 6px 8px; }
  .log td { border: 0; padding: 0; }
  .log td.ds { grid-column: 1 / -1; }
  .log td.robot { grid-column: 1 / -1; }
  .log td.num { text-align: left; font-size: 0.92rem; }
  .log td[data-label]::before { content: attr(data-label); display: block; color: var(--ink-2); font-size: 0.78rem; }
  .log td.hide-sm { display: none; }
}
@media (max-width: 360px) {
  .log tr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logline { grid-template-columns: 1fr 1fr; }
}
.kv code, .prose code { overflow-wrap: anywhere; word-break: break-word; }
.kv { table-layout: fixed; }
