:root {
  --bg: #08090b;
  --bg-elev: #101216;
  --bg-card: #14171c;
  --ink: #f4efe6;
  --muted: #9a9388;
  --line: rgba(244, 239, 230, 0.12);
  --line-strong: rgba(244, 239, 230, 0.28);
  --accent: #e23d2d;
  --accent-2: #f0c36a;
  --ok: #7dba7a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --max: 1180px;
  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Outfit", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --pad: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }

img, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-2); }
button, input, textarea { font: inherit; color: inherit; }

.wrap { width: min(var(--max), calc(100% - 2 * var(--pad))); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 8px; background: var(--accent); color: #fff; padding: 8px 12px; z-index: 80; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(8, 9, 11, 0.88);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.header-inner { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.03em; }
.brand .dot { color: var(--accent); }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #8b1c14);
  display: grid; place-items: center; font-size: 13px; font-weight: 800; flex: none;
}
nav.primary { margin-left: auto; display: flex; gap: 22px; align-items: center; }
nav.primary a { font-size: 14px; color: var(--muted); }
nav.primary a[aria-current="page"], nav.primary a:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 12px 16px;
  cursor: pointer; font-weight: 600; text-align: center; line-height: 1.2;
}
.btn-danger { background: var(--accent); color: #fff; }
.btn-ghost { background: transparent; border: 1px solid var(--line-strong); }
.menu-btn {
  display: none; margin-left: auto;
  background: var(--bg-card); border: 1px solid var(--line); color: var(--ink);
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  border-radius: 999px; padding: 10px 14px; min-height: 44px;
}

.hero {
  padding: 56px 0 28px;
  background:
    radial-gradient(900px 400px at 10% -10%, rgba(226, 61, 45, 0.18), transparent 50%),
    radial-gradient(700px 300px at 90% 0%, rgba(240, 195, 106, 0.08), transparent 45%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, .7fr);
  gap: 28px; align-items: start;
}
.hero-panel {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.lookups { margin: 10px 0 22px; padding-left: 18px; color: var(--muted); }
.lookups li { margin: 6px 0; }
.panel-cats { color: var(--ink); margin: 8px 0 0; font-size: 14px; }

.kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent-2);
}
h1, h2, h3 { font-family: var(--serif); letter-spacing: -0.03em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2rem, 7vw, 4.6rem); font-weight: 650; }
h1 .hit { color: var(--accent); font-style: italic; }
h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); margin-top: 6px; }
.lede { max-width: 46rem; color: var(--muted); font-size: 1.08rem; margin-top: 16px; }
.es {
  display: block; color: var(--muted); font-weight: 400; font-size: 0.92em;
  margin-top: 4px; text-transform: none; letter-spacing: 0; font-family: var(--sans);
}
.h-es { font-family: var(--serif); font-style: italic; font-size: 1.05rem; margin: 8px 0 14px; color: #b7b0a5; }
.search-hint { margin-top: 12px; color: var(--accent-2); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.btn .es { font-size: 11px; letter-spacing: 0; text-transform: none; font-family: var(--sans); color: inherit; opacity: .85; }
.chip .es { display: block; font-size: 10px; opacity: .8; }

.search { margin-top: 24px; display: flex; gap: 10px; max-width: 640px; }
.search input {
  flex: 1; min-width: 0;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: 999px; padding: 14px 18px; font-size: 16px;
}

.how-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-top: 22px; }
.how-grid h3 { margin: 8px 0; }
.how-grid p { color: var(--muted); margin: 0; }

.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.cta-band .lede { margin-top: 8px; }

.grid-2 { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: start; }
.card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card-pad { padding: 22px; }
.sticky { position: sticky; top: 92px; }
.micro { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.chip { font-family: var(--mono); font-size: 11px; border: 1px solid var(--line); padding: 6px 8px; border-radius: 999px; }
.chip.warn { color: var(--accent); border-color: rgba(226,61,45,.4); background: rgba(226,61,45,.08); }
.chip.ok { color: var(--ok); border-color: rgba(125,186,122,.35); }
.loss { font-family: var(--mono); font-size: 1.7rem; margin: 6px 0 0; color: var(--muted); }
dl.dossier { margin: 0; }
dl.dossier div {
  display: grid; grid-template-columns: 108px 1fr; gap: 10px;
  border-top: 1px solid var(--line); padding: 12px 0; font-size: 14px;
}
dt { color: var(--muted); font-size: 12px; }
dd { margin: 0; overflow-wrap: anywhere; }
.mono { font-family: var(--mono); font-size: 12px; }

.figure { margin: 22px 0 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; }
.figure img { width: 100%; display: block; object-fit: cover; max-height: 520px; }
figcaption { padding: 10px 14px; color: var(--muted); font-size: 12px; font-family: var(--mono); }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.section { margin: 42px 0; }
.people { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.person img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.person p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }

.video-tile { display: block; color: inherit; }
.video-tile .thumb { position: relative; aspect-ratio: 16/9; background: #000; overflow: hidden; }
.video-tile img, .video-tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.play { position: absolute; inset: 0; display: grid; place-items: center; }
.play span {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: #111;
  display: grid; place-items: center; font-size: 22px;
}
.badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--accent); color: #fff; font-family: var(--mono);
  font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px;
}
.dur {
  position: absolute; right: 10px; bottom: 10px;
  background: rgba(0,0,0,.75); padding: 3px 7px; border-radius: 6px;
  font-family: var(--mono); font-size: 12px;
}

.player-wrap {
  background: #000; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.player-wrap video { width: 100%; aspect-ratio: 9/16; max-height: 82vh; object-fit: contain; background: #000; display: block; margin: 0 auto; }
.warn-box { border: 1px solid rgba(226,61,45,.35); background: rgba(226,61,45,.08); border-radius: var(--radius); padding: 22px; }
.warn-box li { margin: 8px 0; }
.featured { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; margin: 18px 0 48px; }
.featured article { padding: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 13px; padding: 18px 0 6px; }
.crumbs a { color: var(--muted); }
.footer { margin-top: 64px; background: #050506; border-top: 1px solid var(--line); padding: 48px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer a { color: #c9c2b6; }
.legal { color: #7c766c; font-size: 12px; line-height: 1.6; margin-top: 28px; }
.cta-xl { font-family: var(--serif); font-size: clamp(2rem, 10vw, 5.2rem); font-weight: 700; letter-spacing: -.05em; display: block; margin-top: 8px; }
.comment form { display: grid; gap: 12px; }
.comment input, .comment textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px; font-size: 16px;
}

@media (max-width: 980px) {
  .hero-grid, .how-grid, .grid-2, .featured, .foot-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: stretch; }
}

@media (max-width: 820px) {
  :root { --pad: 16px; --radius: 14px; }
  .header-inner { min-height: 58px; }
  .menu-btn { display: inline-flex; align-items: center; }
  nav.primary {
    display: none;
    position: fixed;
    inset: calc(58px + env(safe-area-inset-top)) 0 0 0;
    margin: 0;
    background: rgba(8, 9, 11, 0.97);
    padding: 18px var(--pad) calc(24px + env(safe-area-inset-bottom));
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    overflow: auto;
  }
  nav.primary.open { display: flex; }
  nav.primary a {
    font-size: 18px; color: var(--ink); padding: 14px 4px;
    border-bottom: 1px solid var(--line); min-height: 48px;
    display: flex; align-items: center;
  }
  nav.primary .btn { margin-top: 12px; width: 100%; justify-content: center; min-height: 48px; }
  .hero { padding: 28px 0 12px; }
  h1 { font-size: clamp(2rem, 11vw, 3.1rem); }
  .lede { font-size: 1rem; }
  .search { flex-direction: column; max-width: none; }
  .search input, .search .btn { width: 100%; min-height: 48px; border-radius: 14px; }
  .actions { flex-direction: column; }
  .actions .btn { width: 100%; min-height: 48px; flex-direction: column; }
  .sticky { position: static; }
  .figure img { max-height: 360px; }
  .people { grid-template-columns: 1fr; }
  dl.dossier div { grid-template-columns: 1fr; gap: 4px; }
  .player-wrap { border-radius: 12px; }
  .player-wrap video { max-height: 70vh; }
  .cta-xl { font-size: clamp(1.8rem, 12vw, 3rem); }
  .section { margin: 28px 0; }
  .footer { margin-top: 40px; padding-top: 32px; }
  .card-pad { padding: 16px; }
  .warn-box { padding: 16px; }
}

@media (max-width: 420px) {
  h1 { font-size: 1.85rem; }
  .brand { font-size: 15px; }
}
