:root {
  --bg: #070707;
  --bg-panel: rgba(20, 7, 7, 0.88);
  --bg-soft: rgba(255, 255, 255, 0.04);
  --ink: #f6eee7;
  --ink-soft: #c8b5a5;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #d41117;
  --accent-soft: rgba(212, 17, 23, 0.16);
  --warn: #ffb454;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(212, 17, 23, 0.24), transparent 24%),
    radial-gradient(circle at 85% 14%, rgba(113, 8, 12, 0.32), transparent 18%),
    linear-gradient(180deg, #040404 0%, #0b0707 42%, #110707 100%);
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 5px 5px;
  mix-blend-mode: screen;
}

.hero,
.page,
.footer {
  position: relative;
  z-index: 1;
}

.hero {
  padding: 28px clamp(20px, 4vw, 48px) 52px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-badge,
.eyebrow,
.panel-kicker,
.score-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.brand-name {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(1.6rem, 2vw, 2rem);
  font-weight: 700;
}

.topbar-link,
.button,
.timeline-links a,
.evidence-links a {
  text-decoration: none;
}

.topbar-link {
  color: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  padding-bottom: 2px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.hero-copy,
.hero-panel,
.evidence-card,
.timeline-item,
.crimes-section,
.timeline-section {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-copy {
  border-radius: 30px;
  padding: clamp(28px, 4vw, 48px);
}

.hero-copy h1,
.section-heading h2,
.evidence-card h3,
.timeline-item h3 {
  font-family: "Noto Serif SC", serif;
}

.hero-copy h1 {
  margin: 12px 0 18px;
  max-width: 11ch;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 1.05;
}

.hero-summary,
.crime-intro,
.evidence-card p,
.timeline-item p,
.signal-list {
  color: var(--ink-soft);
  line-height: 1.72;
}

.hero-summary {
  max-width: 56ch;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
}

.button-primary {
  background: var(--accent);
  color: #fff7ef;
}

.button-secondary {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.hero-panel {
  border-radius: 24px;
  padding: 28px;
}

.signal-list {
  padding-left: 18px;
  margin: 14px 0 20px;
}

.score-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.score-strip > div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.page {
  padding: 0 clamp(20px, 4vw, 48px) 56px;
}

.page-404 {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

section {
  margin-bottom: 28px;
}

.crimes-section,
.timeline-section {
  border-radius: 28px;
  padding: 28px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.inline-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
}

.crime-intro {
  max-width: 70ch;
  margin-bottom: 18px;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.evidence-card {
  border-radius: 24px;
  padding: 22px;
}

.evidence-card h3 {
  margin: 12px 0 10px;
  font-size: 1.18rem;
}

.risk-index {
  display: inline-flex;
  align-items: center;
  font-family: "Noto Serif SC", serif;
  font-size: 1.28rem;
  font-weight: 700;
  color: #fff1ee;
  letter-spacing: 0.03em;
}

.evidence-meta,
.timeline-top,
.filter-group,
.evidence-links,
.timeline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
}

.pill.official {
  color: var(--warn);
  background: rgba(255, 180, 84, 0.12);
}

.pill.community {
  color: #ff7b76;
  background: rgba(255, 123, 118, 0.12);
}

.pill.pending {
  color: #ff5158;
  background: rgba(212, 17, 23, 0.14);
}

.level-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.level-badge.signal {
  color: #d8c4a3;
  background: rgba(214, 176, 109, 0.12);
  border-color: rgba(214, 176, 109, 0.22);
}

.level-badge.risk {
  color: #ffb454;
  background: rgba(255, 180, 84, 0.14);
  border-color: rgba(255, 180, 84, 0.24);
}

.level-badge.contradiction {
  color: #ff8a7a;
  background: rgba(255, 138, 122, 0.14);
  border-color: rgba(255, 138, 122, 0.25);
}

.level-badge.expectation {
  color: #ff5d66;
  background: rgba(255, 93, 102, 0.14);
  border-color: rgba(255, 93, 102, 0.24);
}

.level-badge.collapse {
  color: #fff2ef;
  background: rgba(212, 17, 23, 0.9);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(212, 17, 23, 0.15);
}

.filter-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.filter-button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff8ef;
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
  padding-left: 18px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(255, 255, 255, 0.14));
}

.timeline-item {
  position: relative;
  border-radius: 22px;
  padding: 18px 18px 18px 22px;
  border-left: 4px solid rgba(255, 255, 255, 0.08);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 24px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(212, 17, 23, 0.12);
}

.timeline-item:has(.level-badge.signal) {
  border-left-color: rgba(214, 176, 109, 0.6);
}

.timeline-item:has(.level-badge.risk) {
  border-left-color: rgba(255, 180, 84, 0.78);
}

.timeline-item:has(.level-badge.contradiction) {
  border-left-color: rgba(255, 138, 122, 0.78);
}

.timeline-item:has(.level-badge.expectation) {
  border-left-color: rgba(255, 93, 102, 0.78);
}

.timeline-item:has(.level-badge.collapse) {
  border-left-color: rgba(212, 17, 23, 1);
  background: linear-gradient(180deg, rgba(35, 9, 9, 0.98), rgba(25, 8, 8, 0.98));
}

.timeline-item h3 {
  margin: 12px 0 10px;
  font-size: 1.05rem;
}

.timeline-date {
  font-weight: 700;
}

.timeline-links a,
.evidence-links a {
  color: var(--ink);
  border-bottom: 1px solid currentColor;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0 clamp(20px, 4vw, 48px) 32px;
  color: var(--ink-soft);
}

.not-found-card {
  max-width: 640px;
  width: min(100%, 640px);
}

@media (max-width: 1000px) {
  .hero-grid,
  .evidence-grid {
    grid-template-columns: 1fr;
  }

  .inline-heading {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .hero,
  .page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .topbar {
    flex-direction: column;
    align-items: start;
  }

  .hero-copy,
  .hero-panel,
  .crimes-section,
  .timeline-section {
    padding: 20px;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: 2.5rem;
  }
}
