:root {
  --navy: #0c1a30;
  --navy-dark: #081120;
  --orange: #ff7a1a;
  --paper: #f6f4ef;
  --card: #ffffff;
  --ink: #16202e;
  --muted: #5a6a7a;
  --muted-light: #9fb0c9;
  --line: #dbe3ec;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0a1424;
    --card: #12233c;
    --ink: #eef2f6;
    --muted: #9db0c0;
    --line: rgba(255,255,255,.14);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

a { color: var(--orange); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 680px; }
.center { text-align: center; }

/* Header */
.site-header { background: var(--navy); border-bottom: 3px solid var(--orange); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px; background: var(--orange);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { color: #fff; font-weight: 900; font-size: 20px; letter-spacing: .5px; }
.brand-text strong span { color: var(--orange); }
.brand-text small { color: var(--muted-light); font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: 2px; }
.header-socials { display: flex; gap: 6px; }
.header-socials a { color: #cdd9ec; padding: 8px; border-radius: 8px; display: flex; }
.header-socials a:hover { color: #fff; background: rgba(255,255,255,.12); }

/* Hero */
.hero { background: var(--navy); color: #fff; padding: 88px 0 96px; position: relative; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,17,32,.93) 0%, rgba(8,17,32,.6) 55%, rgba(8,17,32,.8) 100%);
}
.hero-inner { position: relative; }
.kicker {
  display: inline-block; background: var(--orange); color: #17110a;
  font-family: "IBM Plex Mono", monospace; font-size: 12px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin: 0 0 20px;
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1.02; font-weight: 900;
  letter-spacing: -1.5px; margin: 0 0 20px; max-width: 12ch;
}
.hero h1 em { font-style: normal; color: var(--orange); }
.lede { font-size: 19px; color: #d7e2f2; max-width: 620px; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-meta { display: flex; gap: 48px; flex-wrap: wrap; }
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta strong { font-size: 26px; font-weight: 800; line-height: 1.1; }
.hero-meta span { color: var(--muted-light); font-size: 14px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 8px;
  font-weight: 700; font-size: 16px; text-decoration: none;
}
.btn-primary { background: var(--orange); color: #17110a; }
.btn-primary:hover { background: #e56e08; }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); }
.btn-ghost:hover { border-color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-dark); }

/* Fact ticker */
.ticker { background: var(--orange); color: #1a1206; overflow: hidden; padding: 12px 0; }
.ticker-track {
  display: inline-flex; white-space: nowrap; padding-left: 100%;
  animation: ticker-scroll 46s linear infinite; will-change: transform;
}
.ticker-track span { font-size: 15px; font-weight: 700; padding: 0 22px; display: inline-flex; align-items: center; gap: 10px; }
.ticker-track b {
  background: #1a1206; color: var(--orange); font-family: "IBM Plex Mono", monospace;
  font-size: 11px; letter-spacing: 1px; padding: 3px 7px; border-radius: 4px;
}
@keyframes ticker-scroll { to { transform: translateX(-100%); } }

/* Sections */
.section { padding: 64px 0; }
.section-paper { background: var(--paper); }
.section-intro { color: var(--muted); font-size: 18px; margin: 0 0 32px; max-width: 640px; }
.section-intro.center { margin-left: auto; margin-right: auto; }
h2 { font-size: 36px; font-weight: 800; letter-spacing: -0.5px; margin: 0 0 16px; color: var(--ink); }
h2 .section-kicker {
  font-family: "IBM Plex Mono", monospace; font-size: 12px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase; color: var(--orange);
  vertical-align: middle; margin-left: 14px; white-space: nowrap;
}
h3 { margin: 0 0 8px; color: var(--ink); }
p { margin: 0 0 16px; }

/* Series cards */
.series-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.series-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.series-media { position: relative; }
.series-media img { display: block; width: 100%; height: 190px; object-fit: cover; }
.series-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--orange); color: #fff;
  font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 4px 9px; border-radius: 4px; margin: 0;
}
.series-body { padding: 18px 20px 22px; }
.series-body h3 { font-size: 21px; font-weight: 800; line-height: 1.25; }
.series-meta {
  font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 1px;
  border-top: 1px solid var(--line); padding-top: 10px; margin: 0 0 10px;
}
.series-body p:last-child { margin: 0; color: var(--muted); }

/* Fact machine */
.fact-machine {
  background: var(--navy); border-radius: 12px; padding: 32px 28px;
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.fact-label { font-family: "IBM Plex Mono", monospace; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--orange); margin: 0 0 12px; }
.fact-text { font-size: 24px; line-height: 1.4; color: #fff; font-weight: 700; margin: 0 0 14px; }
.fact-counter { font-family: "IBM Plex Mono", monospace; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--muted-light); margin: 0; }
.fact-machine button {
  background: var(--orange); color: #17110a; border: none; border-radius: 8px;
  padding: 12px 24px; font-weight: 700; font-size: 16px; cursor: pointer; font-family: inherit;
  white-space: nowrap;
}
.fact-machine button:hover { background: #e56e08; }

/* Format cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: 10px; padding: 22px; }
.card-label { font-family: "IBM Plex Mono", monospace; font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.card p:last-child { margin: 0; color: var(--muted); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.checklist { display: grid; gap: 16px; }
.check-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.check-card h3 { font-size: 18px; margin: 0 0 6px; }
.check-card p { margin: 0; color: var(--muted); }

/* Follow */
.follow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 32px 0; }
.follow-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 26px 16px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-decoration: none; text-align: center; color: var(--ink);
}
.follow-card svg { fill: var(--ink); }
.follow-card strong { font-size: 18px; font-weight: 800; }
.follow-card span { color: var(--muted); font-size: 14px; }
.follow-card:hover { border-color: var(--orange); }

.fineprint { font-size: 13px; color: var(--muted); }

/* Legal pages */
.legal h1 { font-size: 32px; color: var(--ink); margin: 0 0 8px; }
.legal h2 { font-size: 20px; margin: 28px 0 8px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 24px; }

/* Footer */
.site-footer { background: var(--navy); color: #9fb0c9; padding: 48px 0 0; font-size: 14px; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-bottom: 32px; }
.footer-col p { margin: 0 0 8px; }
.footer-brand { color: #fff; font-weight: 900; font-size: 18px; letter-spacing: .5px; }
.footer-brand span { color: var(--orange); }
.footer-head { font-family: "IBM Plex Mono", monospace; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.site-footer a { color: #cdd9ec; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; }

@media (max-width: 900px) {
  .follow-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .hero { padding: 56px 0 64px; }
  .lede { font-size: 17px; }
  .section { padding: 44px 0; }
  h2 { font-size: 28px; }
  h2 .section-kicker { display: block; margin: 8px 0 0; }
  .fact-machine { grid-template-columns: 1fr; }
  .fact-text { font-size: 20px; }
  .follow-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; gap: 24px; }
  .header-inner { justify-content: center; text-align: center; }
}
