:root {
  --paper: #f5f5f2;
  --ink: #171714;
  --muted: #5d625d;
  --line: #d8d6ce;
  --panel: #ffffff;
  --phosphor: #2fbf61;
  --oxide: #a9422b;
  --bus: #255c7a;
  --gold: #c09a3e;
  --shadow: rgba(23, 23, 20, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  line-height: 1.55;
}

a {
  color: var(--bus);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--oxide);
}

.site-header {
  align-items: center;
  background: rgba(245, 245, 242, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  padding: 14px clamp(18px, 4vw, 48px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 10;
}

.brand {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: flex-end;
}

.nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.nav a[aria-current="page"],
.nav a:hover {
  color: var(--ink);
}

.hero {
  align-items: flex-end;
  background:
    linear-gradient(90deg, rgba(9, 10, 8, 0.86), rgba(9, 10, 8, 0.38)),
    url("../evidence/2026-08-02-evidence-terminal-page-5.jpg") center / cover;
  color: #ffffff;
  display: flex;
  min-height: min(760px, 74vh);
  padding: clamp(86px, 13vh, 150px) clamp(18px, 5vw, 72px) clamp(56px, 8vh, 88px);
}

.hero-inner {
  max-width: 920px;
}

.kicker {
  color: var(--phosphor);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.05;
  margin: 0;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 9vw, 8.5rem);
  font-weight: 700;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.8vw, 4.3rem);
  margin-bottom: 24px;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  max-width: 760px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  align-items: center;
  border: 1px solid currentColor;
  color: inherit;
  display: inline-flex;
  font-weight: 700;
  min-height: 44px;
  padding: 10px 16px;
  text-decoration: none;
}

.button.primary {
  background: var(--phosphor);
  border-color: var(--phosphor);
  color: #081109;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
}

.band {
  border-top: 1px solid var(--line);
  padding: clamp(42px, 7vw, 84px) clamp(18px, 5vw, 72px);
}

.band.dark {
  background: #151613;
  color: #f5f5f2;
}

.band.dark a {
  color: #9ce6ac;
}

.content {
  margin: 0 auto;
  max-width: 1120px;
}

.narrow {
  max-width: 820px;
}

.lede {
  color: var(--muted);
  font-size: 1.14rem;
  margin: 0 0 28px;
}

.dark .lede {
  color: #c9cec5;
}

.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

.gallery {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  margin-top: 26px;
}

.gallery.compact {
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}

.section-head {
  margin-bottom: 16px;
}

.tile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px var(--shadow);
  padding: 22px;
}

.dark .tile {
  background: #20211d;
  border-color: #3a3d35;
  box-shadow: none;
}

.tile p,
.fact-list p {
  margin: 0;
}

.tile p + p,
.fact-list p + p {
  margin-top: 10px;
}

.fact-list {
  display: grid;
  gap: 14px;
}

.evidence-stats {
  border: 1px solid var(--line);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  margin: 26px 0;
}

.evidence-stats span {
  background: #fbfbf8;
  border-right: 1px solid var(--line);
  color: var(--ink);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.95rem;
  padding: 13px 16px;
}

.evidence-stats span:last-child {
  border-right: 0;
}

.evidence-stats strong {
  color: var(--muted);
  display: block;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fact {
  border-left: 4px solid var(--oxide);
  padding-left: 16px;
}

.fact strong {
  display: block;
}

.split {
  display: grid;
  gap: clamp(28px, 5vw, 54px);
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
}

.evidence-img {
  border: 1px solid var(--line);
  display: block;
  height: auto;
  max-width: 100%;
}

.caption {
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.82rem;
  margin-top: 8px;
  overflow-wrap: anywhere;
}

.dark .caption {
  color: #bac1b8;
}

.boundary-note {
  background: #fff8e3;
  border: 1px solid #dbc777;
  color: #3f3512;
  margin: 24px 0 0;
  padding: 16px 18px;
}

pre {
  background: #11130f;
  color: #d7f8dc;
  overflow-x: auto;
  padding: 18px;
}

code {
  font-family: Consolas, "Courier New", monospace;
  overflow-wrap: anywhere;
}

.status-table {
  border-collapse: collapse;
  width: 100%;
}

.status-table th,
.status-table td {
  border-bottom: 1px solid var(--line);
  padding: 14px 10px;
  text-align: left;
  vertical-align: top;
}

.status-table th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.mark {
  color: var(--oxide);
  font-family: Consolas, "Courier New", monospace;
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 24px clamp(18px, 5vw, 72px);
}

.site-footer .content {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  justify-content: space-between;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 68vh;
  }

  .split {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
