/* Latin subsets of Anton, Archivo and IBM Plex Mono, all under the SIL Open Font License. */
@font-face { font-family: 'Anton'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/anton-400.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fonts/archivo.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/ibm-plex-mono-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/ibm-plex-mono-600.woff2') format('woff2'); }
:root {
  --ground: #100C0A;
  --ground-deep: #0B0807;
  --panel: #1A1411;
  --line: #3A2E26;
  --text: #F4ECDD;
  --text-soft: #D9CDBB;
  --text-muted: #B9AC98;
  --gold: #F2B33D;
  --gold-hover: #FFD27A;
  --red: #D7263D;
  --display: 'Anton', 'Impact', sans-serif;
  --body: 'Archivo', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { background: var(--ground); }
body { margin: 0; background: var(--ground); color: var(--text); font-family: var(--body); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--gold); }
a:hover { color: var(--gold-hover); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.muted { color: var(--text-muted); }
.soft { color: var(--text-soft); }
.gold { color: var(--gold); }
.display { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 1px; line-height: 1; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--gold); color: var(--ground); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { background: var(--ground-deep); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.logo { text-decoration: none; display: flex; align-items: center; gap: 12px; color: var(--gold); }
.logo-mark { width: 48px; height: 48px; flex: none; }
.logo-text { display: flex; flex-direction: column; gap: 4px; }
.logo:hover { color: var(--gold); }
.logo-word { font-family: var(--display); font-size: 34px; letter-spacing: 2px; line-height: 1; }
.logo-tag { font-size: 11px; letter-spacing: 3px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.nav a { color: var(--text-muted); text-decoration: none; padding: 12px 14px; font-weight: 600; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--gold); }
.btn { display: inline-block; background: var(--gold); color: var(--ground) !important; text-decoration: none; padding: 12px 18px; border-radius: 999px; font-weight: 700; border: 0; }
.btn:hover { background: var(--gold-hover); }

/* Hero */
.hero { padding-block: 56px 32px; display: flex; flex-direction: column; gap: 20px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.badge { background: var(--red); color: #fff; font-weight: 700; font-size: 13px; letter-spacing: 2px; padding: 6px 12px; border-radius: 4px; }
.badge.gold { background: var(--gold); color: var(--ground); }
.hero h1 { margin: 0; font-size: clamp(42px, 7vw, 88px); line-height: 0.98; max-width: 980px; }
.hero p { margin: 0; font-size: 19px; color: var(--text-soft); max-width: 680px; }

/* Bots strip */
.bots { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; padding-bottom: 48px; }
.bot-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--text); }
.bot-card:hover { color: var(--text); border-color: var(--gold); }
.bot-card.lead { border: 2px solid var(--gold); }
.bot-card .name { font-family: var(--display); font-size: 30px; letter-spacing: 1px; text-transform: uppercase; line-height: 1; }
.stats { display: flex; gap: 20px; font-family: var(--mono); }
.stat { display: flex; flex-direction: column; }
.stat b { font-size: 26px; font-weight: 600; }
.stat small { font-size: 12px; color: var(--text-muted); text-transform: uppercase; }
.chip { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* Bands */
.band { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section { padding-block: 48px; display: flex; flex-direction: column; gap: 24px; }
.section h2 { margin: 0; font-size: 40px; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; color: var(--text-soft); }
.legend span { display: flex; align-items: center; gap: 8px; }

/* Film pick cards */
.films { display: flex; flex-direction: column; gap: 12px; }
.film { background: var(--ground); border: 1px solid var(--line); border-radius: 10px; padding: 20px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.film-id { flex: 1 1 260px; display: flex; gap: 16px; align-items: center; }
.film-rank { font-family: var(--display); font-size: 40px; color: var(--gold); width: 32px; }
.film-title { color: var(--text); text-decoration: none; font-weight: 700; font-size: 20px; }
.film-meta { font-size: 13px; color: var(--text-muted); display: block; }
.film-plot { flex: 2 1 380px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.track { position: relative; height: 28px; }
.track .rail { position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: var(--line); }
.track .span { position: absolute; top: 11px; height: 6px; border-radius: 3px; background: var(--gold); opacity: 0.35; }
.track .dot { position: absolute; top: 14px; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: 2px solid var(--ground); }
.track .dot.base { width: 10px; height: 10px; margin: -5px 0 0 -5px; background: var(--ground); border: 2px solid #8C8072; }
.track .actual { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1px; background: var(--gold); }
.vals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; font-family: var(--mono); font-size: 14px; }
.vals span { display: flex; flex-direction: column; }
.vals small { font-size: 11px; color: var(--text-muted); }
.vals b { font-weight: 600; }

/* Two columns */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; padding-block: 48px; }
.cols h2 { margin: 0 0 16px; font-size: 32px; }
.take { margin: 0 0 12px; padding: 16px 18px; background: var(--panel); border-radius: 10px; display: flex; flex-direction: column; gap: 8px; }
.take strong { display: flex; align-items: center; gap: 8px; }
.take q { color: var(--text-soft); font-size: 16px; }
.verdict { background: var(--panel); border-radius: 10px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.vrow { display: grid; grid-template-columns: 120px minmax(0, 1fr) 72px; gap: 12px; align-items: center; font-family: var(--mono); font-size: 14px; }
.vrow .who { font-family: var(--body); font-weight: 600; }
.vbar { height: 14px; background: #2A211C; border-radius: 7px; overflow: hidden; display: block; }
.vbar i { display: block; height: 100%; border-radius: 7px; }
.right { text-align: right; }

/* Steps */
.steps { border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-bottom: 48px; }
.steps div { display: flex; flex-direction: column; gap: 6px; }
.steps .day { font-family: var(--mono); color: var(--gold); font-size: 13px; }
.steps b { font-size: 18px; }
.steps span { color: var(--text-soft); font-size: 15px; }

/* Tables */
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table-box table { min-width: 720px; }
th { background: var(--panel); text-align: left; font-size: 12px; letter-spacing: 1.5px; color: var(--text-muted); padding: 14px 18px; text-transform: uppercase; }
td { padding: 16px 18px; border-top: 1px solid var(--line); }
td.num, th.num { text-align: right; font-family: var(--mono); }
td.rank { font-family: var(--display); font-size: 28px; color: var(--gold); }
.who-cell { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.chart-box { background: var(--panel); border-radius: 12px; padding: 24px; }
.chart-box svg { width: 100%; height: auto; display: block; }

/* Prose pages */
.prose { max-width: 808px; padding-block: 48px; }
.prose h1 { font-size: clamp(40px, 6vw, 64px); margin: 0 0 16px; }
.prose h2 { font-size: 30px; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--text-soft); font-size: 17px; }
.prose pre { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px; overflow-x: auto; font-family: var(--mono); font-size: 13px; color: var(--text-soft); white-space: pre-wrap; }
.list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.list a { text-decoration: none; display: flex; justify-content: space-between; gap: 16px; padding: 16px 18px; background: var(--panel); border-radius: 10px; color: var(--text); }
.list a:hover { color: var(--gold); }

.cta { border: 2px dashed var(--line); border-radius: 12px; padding: 28px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; margin-bottom: 56px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--ground-deep); }
.site-footer .wrap { padding-top: 24px; padding-bottom: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }

@media (max-width: 560px) {
  .vals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vrow { grid-template-columns: 90px minmax(0, 1fr) 60px; }
  .logo-word { font-size: 28px; }
}
