:root {
  --bg: #0d0f12;
  --bg-2: #14171c;
  --card: #181c22;
  --line: #2a3039;
  --text: #e9e6df;
  --muted: #a3a8b0;
  --accent: #e8c547;
  --confirmed: #4cc38a;
  --explained: #5aa9e6;
  --disputed: #f0a03c;
  --unexplained: #b48cf2;
  --unproven: #ef6b6b;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
img { max-width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(13, 15, 18, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--serif); font-weight: 800; font-size: 1.15rem; letter-spacing: .01em; }
.brand-mark {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--accent); color: var(--accent); font-family: var(--mono); font-size: .95rem;
}
.site-header nav { display: flex; align-items: center; gap: clamp(10px, 2.5vw, 28px); }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 500; }
.site-header nav a:hover { color: var(--text); }
.site-header nav .nav-cta { color: var(--bg); background: var(--accent); padding: 6px 14px; border-radius: 999px; font-weight: 600; }
.site-header nav .nav-cta:hover { color: var(--bg); filter: brightness(1.08); }

main { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }

/* Hero */
.hero { padding: clamp(56px, 10vw, 120px) 0 clamp(40px, 6vw, 72px); max-width: 820px; }
.eyebrow, .file-no { font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.hero h1 { font-family: var(--serif); font-weight: 800; font-size: clamp(2.3rem, 6.5vw, 4.4rem); line-height: 1.05; margin: 0 0 22px; letter-spacing: -.01em; }
.hero h1 em { color: var(--accent); font-style: italic; }
.lede { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--muted); margin: 0 0 28px; max-width: 680px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px; text-decoration: none; font-weight: 600;
  color: var(--text); border: 1px solid var(--line); background: var(--bg-2);
}
.btn:hover { border-color: var(--muted); }
.btn-primary { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn-primary:hover { filter: brightness(1.08); }

/* Verdict stamps */
.stamp {
  display: inline-block; font-family: var(--mono); font-weight: 700; font-size: .68rem; letter-spacing: .12em;
  padding: 4px 9px; border: 2px solid currentColor; border-radius: 4px; transform: rotate(-2deg); white-space: nowrap;
}
.stamp-big { font-size: 1.15rem; padding: 8px 16px; border-width: 3px; }
.stamp-confirmed { color: var(--confirmed); }
.stamp-explained { color: var(--explained); }
.stamp-disputed { color: var(--disputed); }
.stamp-unexplained { color: var(--unexplained); }
.stamp-unproven { color: var(--unproven); }

/* Legend */
.legend { border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); padding: 24px clamp(18px, 3vw, 32px); margin-bottom: 64px; }
.legend h2 { font-family: var(--serif); font-size: 1.3rem; margin: 0 0 16px; }
.legend ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px 28px; }
.legend li { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .92rem; }
.legend li .stamp { flex: none; min-width: 150px; text-align: center; }
.legend-flat { margin-top: 40px; }

/* Cases grid */
.cases { margin-bottom: 72px; scroll-margin-top: 84px; }
.cases-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.cases h2, .subscribe h2, .more h2 { font-family: var(--serif); font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 0; }
.more h2 { margin-bottom: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: 500 .85rem var(--sans); color: var(--muted); background: transparent; border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
}
.chip:hover { color: var(--text); }
.chip.active { color: var(--bg); background: var(--text); border-color: var(--text); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none;
  transition: transform .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card[hidden] { display: none; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card-top .file-no { margin: 0; font-size: .72rem; color: var(--muted); }
.card h3 { font-family: var(--serif); font-size: 1.3rem; line-height: 1.25; margin: 4px 0 0; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; flex: 1; }
.card-meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); }
.card-meta span { border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }

/* Subscribe */
.subscribe { text-align: center; padding: 56px 20px; margin-bottom: 72px; border: 1px dashed var(--line); border-radius: 20px; }
.subscribe p { color: var(--muted); margin: 12px auto 24px; max-width: 560px; }
.subscribe .hero-actions { justify-content: center; }

/* Case page */
.case { max-width: 740px; margin: 0 auto; padding: 40px 0 24px; }
.back { display: inline-block; color: var(--muted); text-decoration: none; font-size: .9rem; margin-bottom: 28px; }
.back:hover { color: var(--text); }
.case-head h1 { font-family: var(--serif); font-weight: 800; font-size: clamp(2rem, 5.5vw, 3.2rem); line-height: 1.1; margin: 0 0 18px; }
.case-section { margin-top: 44px; }
.case-section h2 { font-family: var(--mono); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; }
.case-section p { margin: 0 0 18px; }
.case-section ol { padding-left: 0; list-style: none; counter-reset: ev; margin: 0; }
.case-section ol li { counter-increment: ev; position: relative; padding: 14px 0 14px 48px; border-top: 1px solid var(--line); }
.case-section ol li::before {
  content: counter(ev, decimal-leading-zero); position: absolute; left: 0; top: 14px;
  font-family: var(--mono); font-weight: 700; color: var(--accent);
}
.verdict-box { margin-top: 44px; padding: 28px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); border-left: 6px solid currentColor; }
.verdict-box p { color: var(--text); margin: 14px 0 0; }
.verdict-box .verdict-def { color: var(--muted); font-size: .92rem; }
.verdict-box .verdict-label { font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.verdict-confirmed { color: var(--confirmed); }
.verdict-explained { color: var(--explained); }
.verdict-disputed { color: var(--disputed); }
.verdict-unexplained { color: var(--unexplained); }
.verdict-unproven { color: var(--unproven); }
.sources ul { padding-left: 20px; }
.sources li { margin-bottom: 10px; }
.small { font-size: .85rem; color: var(--muted); }

/* Footer */
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px;
  padding: 40px clamp(16px, 4vw, 48px); border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem;
}
.site-footer p { margin: 0 0 8px; max-width: 560px; }
.footer-brand { font-family: var(--serif); font-weight: 800; color: var(--text); font-size: 1.1rem; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .site-header nav a:not(.nav-cta) { display: none; }
  .grid { grid-template-columns: 1fr; }
  .legend li { flex-direction: column; align-items: flex-start; gap: 6px; }
  .case-section ol li { padding-left: 40px; }
}
