/* computewars.media: design system v1.
   Brand per the owner blueprint (obsidian / copper / ivory / steel, gold only for War Room).
   Editorial typography after modern-mba: serif display (Newsreader) over an interface sans (Instrument Sans). */
:root {
  --ink: #11151B;      /* obsidian */
  --ink-2: #161B22;    /* raised panel */
  --ink-3: #1D232C;
  --rule: #272E38;
  --paper: #F1EFEA;    /* ivory */
  --muted: #A4ABB3;    /* ≥ 7:1 on obsidian */
  --dim: #7E8791;      /* ≥ 4.5:1, for meta only */
  --copper: #CC8046;
  --gold: #C9A227;
  --steel: #8FA6B6;    /* text-safe tint of steel #667C8C */
  --steel-line: #667C8C;
  --red: #D0614F;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, monospace;
  --wrap: 1240px;
  --r: 14px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--ink); color: var(--paper); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--paper); color: var(--ink); padding: 8px 14px; border-radius: 6px; z-index: 99; }
.skip:focus { left: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: clamp(18px, 4vw, 40px); }
.label { font: 600 12.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.kicker { font: 600 13px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--copper); }
.mono { font-family: var(--mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(17,21,27,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand span { font: 700 17px/1 var(--sans); letter-spacing: .08em; }
.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; font: 600 12.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 8px 0; }
.nav a:hover { color: var(--paper); }
.menu { display: none; }
@media (max-width: 820px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--ink); border-bottom: 1px solid var(--rule); padding: 8px clamp(18px,4vw,40px) 18px; }
  .nav a { padding: 16px 0; font-size: 14px; border-bottom: 1px solid var(--rule); }
  .top.open .nav { display: flex; }
  .menu { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: 1px solid var(--rule); border-radius: 10px; color: var(--paper); font: 600 12px var(--sans); letter-spacing: .12em; cursor: pointer; }
}

/* hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--rule); }
.hero::before { content: ""; position: absolute; inset: 0 0 0 46%; background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px); background-size: 120px 120px; opacity: .55; -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); mask-image: linear-gradient(90deg, transparent, #000 30%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; padding-block: clamp(56px, 8vw, 104px) clamp(48px, 7vw, 88px); }
.hero h1 { font: 400 clamp(38px, 4.8vw, 64px)/1.05 var(--serif); letter-spacing: -.02em; margin: 22px 0 26px; }
.hero h1 em { font-style: italic; color: var(--copper); }
.hero .sub { font: 600 clamp(20px, 2.2vw, 26px)/1.25 var(--sans); letter-spacing: -.01em; margin: 0 0 16px; }
.hero .lede { font: 400 clamp(18px, 1.6vw, 21px)/1.55 var(--serif); color: var(--muted); max-width: 37em; margin: 0 0 34px; }
.hero .emblem { justify-self: center; width: min(260px, 70%); filter: drop-shadow(0 30px 80px rgba(204,128,70,.18)); }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } .hero .emblem { display: none; } .hero::before { inset: 0; opacity: .3; } }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--paper); color: var(--ink); text-decoration: none; font: 700 14px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.btn:hover { background: #fff; }
.btn.ghost { background: transparent; color: var(--paper); border: 1px solid var(--rule); }
.btn.ghost:hover { border-color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* section scaffolding */
.sec { padding-block: clamp(64px, 8vw, 104px); border-bottom: 1px solid var(--rule); }
.sechead { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.sechead h2 { font: 700 clamp(24px, 2.6vw, 34px)/1.05 var(--sans); letter-spacing: -.02em; text-transform: uppercase; margin: 12px 0 0; }
.sechead p { margin: 12px 0 0; color: var(--muted); max-width: 34em; }

/* featured season */
.season { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 960px) { .season { grid-template-columns: 1fr; } }
.feature { display: block; text-decoration: none; }
.feature .frame { border-radius: var(--r); overflow: hidden; border: 1px solid var(--rule); }
.feature h3 { font: 400 clamp(30px, 3.4vw, 44px)/1.08 var(--serif); letter-spacing: -.015em; margin: 22px 0 12px; }
.feature .q { font: 400 19px/1.5 var(--serif); color: var(--muted); margin: 0 0 10px; }
.order { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.order li { display: grid; grid-template-columns: 34px 92px 1fr; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.order .n { font: 400 28px/1 var(--serif); color: var(--dim); }
.order .t { font: 600 16.5px/1.3 var(--sans); }
.order .m { margin-top: 6px; }
.order .thumb { aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: var(--ink-3); }
.order .thumb img { width: 100%; height: 100%; object-fit: cover; }
.order .thumb.v img { object-fit: contain; }
.orderhead { display: flex; justify-content: space-between; margin-bottom: 14px; }

/* meta line + badges */
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font: 600 12px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.meta .f { color: var(--acc, var(--muted)); }
.meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--dim); }
.acc-copper { --acc: var(--copper); } .acc-gold { --acc: var(--gold); } .acc-steel { --acc: var(--steel); } .acc-red { --acc: var(--red); }
.badge { position: absolute; top: 12px; left: 12px; font: 700 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 7px 9px; border-radius: 5px; background: rgba(17,21,27,.82); color: var(--paper); border: 1px solid rgba(241,239,234,.25); }
.badge.soon { color: var(--copper); border-color: rgba(204,128,70,.55); }
.gates { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.gate { font: 500 11px/1 var(--mono); letter-spacing: .08em; padding: 6px 8px; border: 1px solid var(--rule); border-radius: 5px; color: var(--muted); }
.gate.power { color: var(--red); border-color: rgba(208,97,79,.45); }

/* media frame (16:9, vertical covers centred on a blurred copy) */
.media { position: relative; aspect-ratio: 16/9; background: var(--ink-3); overflow: hidden; }
.media > img { width: 100%; height: 100%; object-fit: cover; }
.media.v .blur { position: absolute; inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); object-fit: cover; filter: blur(24px) brightness(.45); }
.media.v .fg { position: relative; height: 100%; width: auto; margin: 0 auto; object-fit: contain; }

/* catalog */
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 22px; margin-bottom: 30px; border-bottom: 1px solid var(--rule); }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--rule); background: transparent; color: var(--muted); font: 600 12.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.chip:hover { border-color: var(--dim); color: var(--paper); }
.chip[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.chip .c { font-size: 11px; opacity: .7; letter-spacing: 0; }
.chips.gaterow { margin-top: -22px; align-items: center; }
.chips:has(+ .gaterow) { border-bottom: 0; padding-bottom: 0; }
.rowlabel { margin-right: 6px; }
.meta .soon { margin-left: 4px; padding: 5px 7px; border-radius: 5px; border: 1px solid rgba(204,128,70,.55); color: var(--copper); letter-spacing: .12em; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 26px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; }
.card .media { border-radius: 12px; border: 1px solid var(--rule); }
.card h3 { font: 700 21px/1.22 var(--sans); letter-spacing: -.01em; margin: 16px 0 8px; }
.card p { margin: 0; color: var(--muted); font: 400 16.5px/1.5 var(--serif); }
.card .meta { margin-top: 16px; }
.card[hidden] { display: none; }
.empty { color: var(--muted); }

/* formats */
.formats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1000px) { .formats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .formats { grid-template-columns: 1fr; } }
.fmt { background: var(--ink-2); border: 1px solid var(--rule); border-top: 4px solid var(--acc); border-radius: 12px; padding: 26px 24px 28px; }
.fmt .label { color: var(--acc); }
.fmt h3 { font: 700 18px/1.2 var(--sans); text-transform: uppercase; letter-spacing: -.005em; margin: 16px 0 10px; }
.fmt p { margin: 0; color: var(--muted); font: 400 16.5px/1.5 var(--serif); }
.fmt .count { margin-top: 20px; }

/* on the record */
.record { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 960px) { .record { grid-template-columns: 1fr; } }
.labels { list-style: none; margin: 0; padding: 0; }
.labels li { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.labels li:first-child { border-top: 1px solid var(--rule); }
.labels b { display: block; font: 700 14px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px; }
.labels span { color: var(--muted); font: 400 16.5px/1.5 var(--serif); }
.exhibit { background: var(--ink-2); border: 1px solid var(--rule); border-radius: var(--r); padding: clamp(22px, 3vw, 34px); }
.exhibit .claim { font: 400 clamp(22px, 2.4vw, 28px)/1.3 var(--serif); margin: 16px 0 22px; }
.exhibit blockquote { margin: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--copper); font: italic 400 18px/1.55 var(--serif); color: var(--paper); }
.exhibit .src { margin-top: 18px; font: 500 13px/1.5 var(--mono); color: var(--muted); }
.exhibit .src a { color: var(--steel); }
.tag { display: inline-block; font: 700 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 6px 8px; border-radius: 5px; }
.tag.fact { background: rgba(143,166,182,.16); color: var(--steel); }

/* next season */
.next { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; background: linear-gradient(90deg, rgba(204,128,70,.12), transparent 70%); border: 1px solid var(--rule); border-radius: var(--r); padding: clamp(24px, 3vw, 36px); }
.next h3 { font: 400 clamp(28px, 3vw, 40px)/1.1 var(--serif); margin: 10px 0 8px; }
.next p { margin: 0; color: var(--muted); }
.next .big { font: 400 clamp(64px, 8vw, 104px)/1 var(--serif); color: var(--copper); }
@media (max-width: 760px) { .next { grid-template-columns: 1fr; } .next .big { display: none; } }

/* follow + footer */
.follow { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; }
@media (max-width: 760px) { .follow { grid-template-columns: 1fr; } }
.follow h2 { font: 400 clamp(34px, 4.6vw, 60px)/1.05 var(--serif); margin: 14px 0 12px; letter-spacing: -.015em; }
.follow p { color: var(--muted); margin: 0; }
.foot { padding-block: 44px 56px; color: var(--dim); font-size: 14px; }
.foot .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot a { text-decoration: none; color: var(--muted); }
.foot a:hover { color: var(--paper); }
.foot .disc { margin-top: 22px; max-width: 60em; line-height: 1.6; }

/* season picker (Netflix-style select) */
.seasonbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--rule); }
.picker { position: relative; display: inline-block; }
.picker::after { content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--paper); border-bottom: 2px solid var(--paper); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.picker select { appearance: none; -webkit-appearance: none; min-height: 50px; padding: 0 52px 0 20px; border-radius: 10px; border: 1px solid var(--dim); background: var(--ink-3); color: var(--paper); font: 700 16px/1 var(--sans); letter-spacing: .01em; cursor: pointer; max-width: 100%; }
.picker select:hover { border-color: var(--paper); }
.spanel[hidden] { display: none; }
.order li.ghost .t { color: var(--dim); font-weight: 500; font-style: italic; font-family: var(--serif); }
.order li.ghost .thumb { border: 1px dashed var(--rule); background: transparent; }
.order .t a, .card h3 a { text-decoration: none; }
.order .t a:hover, .card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.meta a.soon.live { text-decoration: none; background: var(--copper); color: var(--ink); border-color: var(--copper); }
.cover-link { display: block; text-decoration: none; }
.play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(17,21,27,.75); border: 2px solid var(--paper); }
.play::after { content: ""; position: absolute; left: 25px; top: 19px; border-left: 20px solid var(--paper); border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.cover-link:hover .play { background: var(--copper); border-color: var(--copper); }

/* hero tagline: same scale as the statement line, kept in copper caps */
.hero .kicker { font: 700 clamp(20px, 2.2vw, 26px)/1.2 var(--sans); letter-spacing: .06em; }

/* ---------- episode page ---------- */
.ephead { padding-block: clamp(36px, 5vw, 64px) 28px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font: 600 12.5px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--paper); }
.crumbs .f { color: var(--acc); }
.ephead h1 { font: 400 clamp(34px, 4.4vw, 58px)/1.06 var(--serif); letter-spacing: -.015em; margin: 18px 0 14px; max-width: 22em; }
.ephead .dek { font: 400 clamp(19px, 1.8vw, 23px)/1.5 var(--serif); color: var(--muted); margin: 0 0 18px; max-width: 42em; }
.epgrid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; padding-bottom: clamp(40px, 5vw, 64px); }
@media (max-width: 960px) { .epgrid { grid-template-columns: 1fr; } }
.player .media { border-radius: var(--r); border: 1px solid var(--rule); }
.player .small { margin: 10px 2px 0; font-size: 14px; color: var(--dim); }
.player .small a { color: var(--muted); }
.yt { cursor: pointer; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ytbtn { position: absolute; inset: 0; }
.ytbtn:hover .play { background: var(--copper); border-color: var(--copper); }
.panel { background: var(--ink-2); border: 1px solid var(--rule); border-radius: var(--r); padding: 26px 26px 24px; }
.panel .stat { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.panel .stat b { font: 400 34px/1 var(--serif); color: var(--paper); }
.panel .stat span { color: var(--muted); font: 400 16px/1.45 var(--serif); }
.panel .go { display: inline-block; margin: 14px 0 6px; color: var(--paper); font: 600 13px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; text-underline-offset: 4px; }
.disc-box { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule); }
.disc-box p { margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.epbody { max-width: 860px; padding-bottom: clamp(48px, 6vw, 80px); }
.block { padding-block: 34px; border-top: 1px solid var(--rule); }
.block > .label { margin: 0 0 18px; }
.block .lead { font: 400 clamp(21px, 2vw, 25px)/1.45 var(--serif); margin: 0 0 16px; }
.block p { font: 400 18px/1.6 var(--serif); color: var(--muted); margin: 0 0 14px; }
.claims { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.claim { background: var(--ink-2); border: 1px solid var(--rule); border-radius: 12px; padding: 20px 22px; scroll-margin-top: 84px; }
.claim:target { border-color: var(--copper); }
.claim .meta { gap: 10px; }
.claim .cid { margin-left: auto; font: 500 12px/1 var(--mono); color: var(--dim); text-decoration: none; letter-spacing: .04em; }
.claim .ctext { font: 400 19px/1.45 var(--serif); color: var(--paper); margin: 12px 0 12px; }
.claim blockquote { margin: 0 0 8px; padding: 2px 0 2px 16px; border-left: 3px solid var(--copper); font: italic 400 17px/1.55 var(--serif); color: var(--muted); }
.claim .src { margin: 0 0 4px; font: 500 13.5px/1.5 var(--mono); color: var(--dim); }
.claim .src a { color: var(--steel); }
.tag.inference { background: rgba(201,162,39,.14); color: var(--gold); }
.dim { color: var(--dim); }
.sources { margin: 0; padding-left: 22px; display: grid; gap: 10px; color: var(--muted); }
.sources li { font: 400 16.5px/1.5 var(--serif); padding-left: 4px; }
.sources .org { color: var(--paper); }
.sources a { color: var(--steel); }
.md h3, .md h4, .md h5 { font: 700 15px/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--paper); margin: 26px 0 12px; }
.md p, .md li { font: 400 16.5px/1.6 var(--serif); color: var(--muted); }
.md ul { padding-left: 20px; margin: 0 0 14px; }
.md code { font: 500 .88em var(--mono); color: var(--paper); background: var(--ink-3); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.md strong { color: var(--paper); font-weight: 600; }
.tablewrap { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--rule); border-radius: 10px; }
.md table { border-collapse: collapse; width: 100%; font: 500 13.5px/1.4 var(--mono); }
.md th, .md td { padding: 9px 12px; border-bottom: 1px solid var(--rule); text-align: right; white-space: nowrap; color: var(--muted); }
.md th { color: var(--paper); background: var(--ink-2); font-family: var(--sans); font-weight: 600; letter-spacing: .04em; }
.md th:first-child, .md td:first-child { text-align: left; }
.credits { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; line-height: 1.55; display: grid; gap: 6px; }
.tx summary { cursor: pointer; font: 600 14px/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--paper); padding: 14px 18px; border: 1px solid var(--rule); border-radius: 10px; list-style: none; }
.tx summary::-webkit-details-marker { display: none; }
.tx summary::before { content: "+ "; color: var(--copper); }
.tx[open] summary::before { content: "– "; }
.tx[open] summary { margin-bottom: 20px; }
.tx p { position: relative; padding-left: 64px; }
.tx .ts { position: absolute; left: 0; top: 3px; font: 500 13px/1.4 var(--mono); color: var(--dim); }
.related { border-top: 1px solid var(--rule); border-bottom: 0; }
h1.nf { font: 400 clamp(34px, 4.4vw, 56px)/1.1 var(--serif); margin: 14px 0 12px; }
.feature h3 a { text-decoration: none; }
.feature h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.md p, .md li { overflow-wrap: anywhere; }
.panel .stat.word { grid-template-columns: 1fr; gap: 6px; }
.panel .stat.word b { font-size: 26px; }
.note { font: 400 15.5px/1.55 var(--serif) !important; color: var(--muted); border-left: 2px solid var(--rule); padding-left: 14px; }
.sources li, .credits li, .claim, .claim * { min-width: 0; overflow-wrap: anywhere; }
