:root {
  --bg: #070906;
  --bg-2: #0c100b;
  --panel: #121810;
  --panel-2: #171e14;
  --ink: #e8eadc;
  --muted: #9aa58c;
  --dim: #6a7362;
  --line: #2a3526;
  --line-2: #3d4a36;
  --phos: #9dff6e;
  --phos-2: #c8ff9a;
  --phos-dim: #3f7a32;
  --gold: #e8b84a;
  --gold-2: #f3d27a;
  --deny: #ff4d3a;
  --deny-2: #ff8a7a;
  --half: #ff9f3a;
  --true: #6ee7b7;
  --paper: #f4efe2;
  --paper-ink: #16140f;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "IBM Plex Sans", "IBM Plex Mono", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(157, 255, 110, 0.08), transparent 55%),
    radial-gradient(900px 500px at 110% 0%, rgba(232, 184, 74, 0.07), transparent 50%),
    var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
  letter-spacing: -0.011em;
}

main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--phos); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--phos-2); }
code, kbd {
  font-family: var(--mono);
  font-size: 0.86em;
  background: rgba(157, 255, 110, 0.08);
  border: 1px solid var(--line);
  padding: 0.05em 0.35em;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--phos);
  color: #071007;
  padding: 0.5rem 0.8rem;
  z-index: 100;
  font-family: var(--mono);
  font-size: 0.85rem;
}
.skip:focus { top: 1rem; }

.scan {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.08) 0px,
    rgba(0, 0, 0, 0.08) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: multiply;
  opacity: 0.22;
}

.shell {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(7, 9, 6, 0.82);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  color: inherit;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.92rem;
}
.brand .hash { color: var(--deny); font-weight: 600; }
.brand .host { color: var(--phos); }
.brand .path { color: var(--muted); }
.brand .cursor {
  display: inline-block;
  width: 0.55ch;
  height: 1em;
  background: var(--phos);
  margin-left: 0.15rem;
  animation: blink 1.1s steps(1) infinite;
  transform: translateY(2px);
}
@keyframes blink { 50% { opacity: 0; } }

nav ul {
  display: flex;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}
nav a {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 0.4rem 0.55rem;
  border-radius: 6px;
}
nav a:hover, nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(157, 255, 110, 0.08);
}
nav a[aria-current="page"] { color: var(--phos); }

.nav-toggle {
  display: none;
  background: transparent;
  color: var(--phos);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
}

.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #0a0e09;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--dim);
  text-transform: lowercase;
  letter-spacing: 0.04em;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
  padding: 0.45rem 0;
}
.ticker-track span { padding: 0 1.4rem; }
.ticker b { color: var(--gold); font-weight: 500; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hero {
  padding: 3.4rem 0 2.2rem;
}
.kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}
.hero h1, .page-head h1 {
  font-weight: 520;
  font-size: clamp(2.4rem, 6.4vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 1.1rem;
  font-optical-sizing: auto;
}
.lede {
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  color: var(--muted);
  max-width: 42rem;
  margin: 0 0 1.6rem;
}
.lede a { color: var(--gold-2); }
.actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }

.btn {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.72rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  color: var(--ink);
  background: var(--panel);
}
.btn:hover { border-color: var(--phos-dim); color: var(--phos-2); }
.btn.primary {
  background: var(--phos);
  color: #081108;
  border-color: var(--phos);
  font-weight: 600;
}
.btn.primary:hover { background: var(--phos-2); color: #081108; }

.hero-fig {
  margin: 2.2rem 0 0;
  position: relative;
}
.hero-fig img, .frame img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.stamp {
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 3px solid currentColor;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  display: inline-block;
  transform: rotate(-8deg);
  background: rgba(7, 9, 6, 0.55);
  backdrop-filter: blur(4px);
  line-height: 1;
}
.stamp-lg {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  font-size: clamp(1.3rem, 3vw, 2rem);
  z-index: 2;
}
.stamp.deny { color: var(--deny); }
.stamp.half { color: var(--half); }
.stamp.true { color: var(--true); }
.stamp.gold { color: var(--gold); }
.stamp.phos { color: var(--phos); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin: 2rem 0 3.2rem;
}
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.05rem 1.05rem;
  min-height: 8.2rem;
}
.stat b {
  display: block;
  font-family: var(--mono);
  font-size: clamp(1.4rem, 3vw, 2.05rem);
  color: var(--phos);
  letter-spacing: -0.04em;
  margin-bottom: 0.35rem;
}
.stat.gold b { color: var(--gold); }
.stat.deny b { color: var(--deny); }
.stat span {
  display: block;
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
}

.section { padding: 0.4rem 0 3.4rem; }
.section h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 520;
  margin: 0 0 0.7rem;
}
.section .sub {
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 1.6rem;
}

.grid-3, .grid-2, .rooms {
  display: grid;
  gap: 0.9rem;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.rooms { grid-template-columns: repeat(3, 1fr); }

.card, .room, .claim, .source {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem 1.2rem 1.25rem;
}
.card h3, .room h3, .claim h3 {
  font-family: var(--sans);
  font-size: 1.05rem;
  margin: 0.45rem 0 0.45rem;
  letter-spacing: -0.02em;
}
.card p, .room p, .claim p, .source p { margin: 0; color: var(--muted); font-size: 1.02rem; }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.room {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.room:hover { border-color: var(--phos-dim); transform: translateY(-2px); color: inherit; }
.room .num {
  font-family: var(--mono);
  color: var(--phos);
  font-size: 0.8rem;
}

.frame { margin: 0; }
.frame figcaption {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--dim);
  margin-top: 0.65rem;
}

.quote {
  border-left: 3px solid var(--gold);
  padding: 0.2rem 0 0.2rem 1rem;
  color: var(--ink);
  font-size: 1.2rem;
  margin: 1.2rem 0;
}
.quote cite {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-style: normal;
  color: var(--dim);
}

.claim { position: relative; overflow: hidden; }
.claim .stamp {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  font-size: 0.78rem;
  transform: rotate(8deg);
}
.claim h3 { padding-right: 7.5rem; }
.claim .said, .claim .found {
  margin-top: 0.85rem;
  font-size: 0.98rem;
}
.claim .label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  display: block;
  margin-bottom: 0.2rem;
}
.claim .found { color: var(--ink); }
.claim .links {
  margin-top: 0.85rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--dim);
}
.claim .links a { color: var(--phos); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--panel);
}
th, td {
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
td.verdict { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
td.verdict.deny { color: var(--deny); }
td.verdict.half { color: var(--half); }
td.verdict.true { color: var(--true); }

.page-head { padding: 2.6rem 0 1.4rem; }
.crumbs {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--dim);
  margin: 0 0 0.8rem;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--phos); }

.prose { max-width: 44rem; }
.prose h2 { margin-top: 2.2rem; }
.prose p { color: var(--muted); }
.prose p strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { color: var(--muted); padding-left: 1.2rem; }
.prose li { margin: 0.35rem 0; }
.prose li::marker { color: var(--gold); }

.dmesg {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--dim);
  background: #050705;
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2.2rem;
  margin-top: 1rem;
}
.dmesg p { margin: 0.15rem 0; }
.dmesg a { color: var(--muted); text-decoration: none; }
.dmesg a:hover { color: var(--phos); }
.dmesg .ok { color: var(--phos-dim); }
.dmesg .warn { color: var(--gold); }
.dmesg .err { color: var(--deny); }

.source h3 {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  margin: 0 0 0.4rem;
  color: var(--phos);
}
.source a { word-break: break-word; }

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.2rem;
  align-items: start;
}

.note {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--dim);
  border: 1px dashed var(--line-2);
  padding: 0.8rem 0.95rem;
  border-radius: 10px;
  background: rgba(232, 184, 74, 0.04);
}

@media (max-width: 980px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .rooms, .split { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track, .brand .cursor { animation: none; }
}
@media (max-width: 760px) {
  html.js .nav-toggle { display: inline-block; }
  html.js nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: rgba(8, 11, 7, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 0.9rem;
  }
  html.js nav.open { display: block; }
  nav ul { flex-direction: column; }
  .stats, .grid-3, .grid-2, .rooms, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 2rem; }
  .claim h3 { padding-right: 0; padding-top: 1.8rem; }
  .claim .stamp { right: auto; left: 1.1rem; top: 0.85rem; transform: rotate(-6deg); }
  .stamp-lg { font-size: 1.2rem; }
}
