@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/ibm-plex-sans-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/ibm-plex-sans-condensed-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); }
:root {
  --bg: #f3f4f5;
  --surface-1: #ffffff;
  --surface-2: #e8ebee;
  --border: #c9ced4;
  --border-strong: #7d8690;
  --text-1: #121417;
  --text-2: #48505a;
  --text-3: #59626c;
  --accent: #7f6000;
  --accent-fill: #f5c518;
  --on-accent: #121417;
  --tested: var(--accent);
  --alt-1: #2465a8;
  --alt-2: #7445b0;
  --alt-3: #4e5966;
  --alt-4: var(--text-3);
  --series-neutral: var(--text-2);
  --status-fill: #a7afb8;
  --on-status: #121417;
  --good: #08705a;
  --warn: #a35400;
  --bad: #b3351a;
  --good-soft: #dcf2ea;
  --warn-soft: #fbead6;
  --bad-soft: #fcebe6;
  --chart-grid: #e1e4e8;
  --chart-axis: var(--border-strong);
  --caption-bg: #0a0b0dd6;
  --caption-text: #ffffff;
  --scrim: #f3f4f5e6;
  --focus: var(--accent);
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;
  --safe-side: 96px;
  --safe-top: 72px;
  --safe-bottom: 200px;
  --end-screen: 20s;
  --shorts-side: 72px;
  --shorts-right: 160px;
  --shorts-top: 180px;
  --shorts-bottom: 480px;
  --grid-pitch: 48px;
  --radius-0: 0px;
  --radius-1: 2px;
  --radius-2: 6px;
  --radius-round: 50%;
  --border-hair: 2px;
  --border-rule: 3px;
  --border-heavy: 6px;
  --border-web: 1px;
  --elevation-0: none;
  --elevation-1: 0 1px 2px rgba(18,20,23,0.08), 0 0 0 1px #c9ced4;
  --elevation-2: 0 4px 12px rgba(18,20,23,0.12), 0 0 0 1px #c9ced4;
  --dur-cut: 0ms;
  --dur-fast: 160ms;
  --dur-base: 320ms;
  --dur-slow: 560ms;
  --dur-draw: 900ms;
  --dur-count: 900ms;
  --dur-line: 1600ms;
  --dur-stagger: 90ms;
  --dur-hold: 1500ms;
  --dur-sting: 3000ms;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
  --ease-linear: linear;
  --font-display: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  --font-text: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121417;
    --surface-1: #1a1d21;
    --surface-2: #23272c;
    --border: #3a4048;
    --border-strong: #6e7681;
    --text-1: #eceef0;
    --text-2: #a7afb8;
    --text-3: #8f98a2;
    --accent: #f5c518;
    --accent-fill: #f5c518;
    --on-accent: #121417;
    --tested: var(--accent);
    --alt-1: #7db7f0;
    --alt-2: #c9a7f2;
    --alt-3: #c9d1d9;
    --alt-4: var(--text-3);
    --series-neutral: var(--text-2);
    --status-fill: #a7afb8;
    --on-status: #121417;
    --good: #4cc9a0;
    --warn: #f29a38;
    --bad: #ff7a5c;
    --good-soft: #13332b;
    --warn-soft: #3a2a14;
    --bad-soft: #3d1d17;
    --chart-grid: #262b31;
    --chart-axis: var(--border-strong);
    --caption-bg: #0a0b0dd6;
    --caption-text: #ffffff;
    --scrim: #121417e0;
    --focus: var(--accent);
    --elevation-0: none;
    --elevation-1: 0 0 0 2px #3a4048;
    --elevation-2: 0 0 0 2px #6e7681;
  }
}
/* site/style.css: layout for the public site; tools/site.py puts the design system tokens (both themes) in front */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text-1); font-family: var(--font-text); font-size: 17px; line-height: 1.6;
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface-1); color: var(--text-1); padding: 8px 12px; z-index: 2; }
.skip:focus { left: 16px; }
.mono { font-family: var(--font-mono); font-size: 14px; color: var(--text-2); }
.small { font-size: 14px; }

/* header and footer */
header.site { background: var(--surface-1); border-bottom: var(--border-web) solid var(--border); }
.bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text-1); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 50%; }
.wm { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1; letter-spacing: -0.01em; }
.wm.small { font-size: 18px; }
.plate { background: var(--accent-fill); color: var(--on-accent); padding: 2px 6px; margin-left: 3px; }
header nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
header nav a { display: inline-block; color: var(--text-1); text-decoration: none; padding: 20px 0 17px; border-bottom: 3px solid transparent; font-size: 15px; }
header nav a:hover { border-bottom-color: var(--border-strong); }
header nav a[aria-current="page"] { border-bottom-color: var(--accent-fill); font-weight: 600; }
footer.site { background: var(--surface-1); border-top: var(--border-web) solid var(--border); padding: 28px 0 36px; color: var(--text-2); font-size: 15px; }
footer.site p { margin: 0 0 10px; }

/* type */
main { padding: 28px 16px 72px; }
h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 6vw, 56px); line-height: 1.04; letter-spacing: -0.01em; margin: 8px 0 12px; }
h2 { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1.15; margin: 48px 0 14px; padding-top: 14px;
  border-top: var(--border-web) solid var(--border); }
h3 { font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1.2; margin: 30px 0 8px; }
p { margin: 0 0 14px; max-width: 72ch; }
.lead { font-size: 20px; line-height: 1.5; color: var(--text-2); max-width: 64ch; }
.deck { font-size: 19px; color: var(--text-2); margin-bottom: 24px; }
.note { color: var(--text-2); font-size: 15px; }
.h4 { font-weight: 600; margin-top: 18px; }
.q { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--text-1); margin-top: 6px; }
.crumbs { font-size: 14px; color: var(--text-2); }
.crumbs a { color: var(--text-2); }
code { font-family: var(--font-mono); font-size: 0.88em; background: var(--surface-2); padding: 1px 5px; }

/* tables */
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
th, td { text-align: left; padding: 10px 12px; border-bottom: var(--border-web) solid var(--border); vertical-align: top; }
thead th { background: var(--surface-2); font-size: 14px; font-weight: 600; color: var(--text-2); border-bottom-color: var(--border-strong); white-space: nowrap; }
.num { text-align: right; font-family: var(--font-mono); white-space: nowrap; }
td.mono { white-space: nowrap; }

/* verdict */
.verdict { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0; }
.verdict .plate { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.2; padding: 4px 10px; margin: 0; }
.verdict .plate.big { font-size: 30px; }
.score { color: var(--text-2); font-family: var(--font-mono); font-size: 18px; }
.score b { font-weight: 500; font-size: 36px; color: var(--text-1); }
.scale { list-style: none; margin: 4px 0 14px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.scale li { border-top: 6px solid var(--border); padding-top: 5px; font-size: 13px; line-height: 1.25; color: var(--text-2); }
.scale li.on { border-top-color: var(--accent-fill); color: var(--text-1); font-weight: 600; }
.reason { font-size: 15px; color: var(--text-2); }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.label { color: var(--text-2); }
.tag { border: var(--border-web) solid var(--accent); color: var(--accent); font-weight: 600; padding: 1px 8px; }
.chip { border: var(--border-web) solid var(--border-strong); color: var(--text-2); font-weight: 600; padding: 1px 8px; }
.vchip { background: var(--accent-fill); color: var(--on-accent); font-weight: 600; padding: 2px 8px; white-space: nowrap; }
.panel { background: var(--surface-1); border: var(--border-web) solid var(--border); padding: 18px 20px; }
.panel .rec { margin: 0; }
.gates { list-style: none; margin: 18px 0; padding: 0; }
.gates li { display: grid; grid-template-columns: 92px 1fr 26px; align-items: center; gap: 10px; padding: 5px 0; font-size: 15px; }
.gates .n { font-family: var(--font-mono); text-align: right; font-size: 16px; }
.track { height: 12px; border: var(--border-web) solid var(--border-strong); background: var(--surface-2); }
.fill { display: block; height: 100%; background: var(--accent-fill); }
.s0 { width: 0; } .s1 { width: 10%; } .s2 { width: 20%; } .s3 { width: 30%; } .s4 { width: 40%; } .s5 { width: 50%; }
.s6 { width: 60%; } .s7 { width: 70%; } .s8 { width: 80%; } .s9 { width: 90%; } .s10 { width: 100%; }
.fw { margin: 0 0 12px; font-size: 15px; }
.fw dt { font-weight: 600; }
.fw dd { margin: 0 0 10px; }

/* episode page */
.tool { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.tool aside { order: -1; }
@media (min-width: 960px) {
  .tool { grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; }
  .tool aside { order: 0; }
  .tool aside .panel { position: sticky; top: 16px; }
}
.video { margin: 0 0 8px; }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.video.soon figcaption { font-family: var(--font-mono); font-size: 14px; color: var(--text-2); padding-top: 8px; }
.found { padding-left: 20px; }
.found li { margin-bottom: 10px; max-width: 72ch; }
.chapters { list-style: none; padding: 0; margin: 0; }
.chapters li { padding: 6px 0; border-bottom: var(--border-web) solid var(--border); }
.chapters .mono { display: inline-block; min-width: 4.5em; }
.src { list-style: none; padding: 0; font-size: 14px; line-height: 1.5; }
.src li { padding: 2px 0; overflow-wrap: anywhere; }
.src li.grp { font-weight: 600; margin-top: 12px; }

/* home */
.card { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--surface-1); border: var(--border-web) solid var(--border);
  color: var(--text-1); text-decoration: none; }
.card:hover { border-color: var(--border-strong); }
.cardtext { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; }
.cardtitle { font-family: var(--font-display); font-weight: 700; font-size: 32px; line-height: 1.1; }
.more { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (min-width: 760px) { .card { grid-template-columns: 1.25fr 1fr; align-items: center; } }
.sixgates li { margin: 6px 0; max-width: 72ch; }

/* long text pages */
.prose { max-width: 76ch; }
.prose table { margin: 6px 0 18px; }
.prose li { margin-bottom: 6px; }
.toc { background: var(--surface-1); border: var(--border-web) solid var(--border); padding: 12px 20px; margin: 8px 0 8px; font-size: 15px; }
.toc ol { margin: 0; padding-left: 20px; }
.log { padding-left: 20px; }

@media (max-width: 600px) {
  header nav ul { gap: 16px; }
  h2 { font-size: 24px; margin-top: 40px; }
  .score b { font-size: 30px; }
  .lead { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
