:root {
  color-scheme: light;
  --bg: #e8e5dc;
  --paper: #f8f5ec;
  --panel: #eeebe2;
  --ink: #1d2625;
  --muted: #596561;
  --line: #c9c2b1;
  --accent: #0b6b63;
  --accent-2: #a33d32;
  --evidence: #9ddc71;
  --soft: #dfe8dc;
  --dark: #121a1b;
  --grid: rgba(18, 26, 27, 0.055);
  --case-shadow: 0 18px 48px rgba(18, 26, 27, 0.12);
  --radius: 8px;
  --max: 1120px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(180deg, var(--grid) 1px, transparent 1px),
    linear-gradient(180deg, #eeeae0 0%, var(--bg) 42%, #dedfd7 100%);
  background-size: 44px 44px, 44px 44px, auto;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 8px 12px;
  background: var(--dark);
  color: #fff;
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid rgba(18, 26, 27, 0.18);
  background: rgba(248, 245, 236, 0.94);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.52) inset;
}

.header-inner,
.section,
.footer-inner {
  width: min(var(--max), calc(100vw - 32px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.brand {
  display: grid;
  gap: 2px;
  text-decoration: none;
}

.brand::before {
  width: 42px;
  height: 3px;
  margin-bottom: 2px;
  background: linear-gradient(90deg, var(--accent), var(--evidence));
  content: "";
}

.brand strong {
  font-size: 19px;
  letter-spacing: 0;
}

.brand span {
  color: var(--muted);
  font-size: 13px;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.top-nav a {
  min-width: 0;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #2d3837;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.top-nav a:hover,
.top-nav a:focus-visible,
.top-nav a[aria-current="page"] {
  border-color: rgba(11, 107, 99, 0.3);
  background: rgba(11, 107, 99, 0.09);
  color: var(--accent);
}

main {
  display: grid;
  gap: 36px;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(11, 107, 99, 0.12), transparent 28%),
    repeating-linear-gradient(0deg, transparent 0 17px, rgba(18, 26, 27, 0.04) 18px),
    linear-gradient(180deg, #f6f2e8 0%, #e4e7de 100%);
  border-bottom: 1px solid var(--line);
}

.hero::after {
  position: absolute;
  right: max(16px, calc((100vw - var(--max)) / 2));
  bottom: 28px;
  width: 142px;
  height: 142px;
  border: 1px solid rgba(163, 61, 50, 0.32);
  background:
    linear-gradient(90deg, transparent 48%, rgba(163, 61, 50, 0.28) 49% 51%, transparent 52%),
    linear-gradient(180deg, transparent 48%, rgba(163, 61, 50, 0.28) 49% 51%, transparent 52%);
  content: "";
  opacity: 0.55;
  pointer-events: none;
}

.hero .section {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 34px;
  padding: 56px 0 42px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "CASE FILE / ";
  color: var(--accent-2);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(40px, 7vw, 74px);
}

h2 {
  font-size: clamp(26px, 4vw, 42px);
}

h3 {
  font-size: 21px;
}

p {
  margin: 0;
}

.hero-copy {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 760px;
  color: #3d4a47;
  font-size: 18px;
}

.status-panel {
  align-self: start;
  display: grid;
  min-width: 0;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.14)),
    var(--paper);
  box-shadow: var(--case-shadow);
}

.status-panel::before {
  width: fit-content;
  padding: 2px 8px;
  border: 1px solid rgba(157, 220, 113, 0.55);
  background: rgba(157, 220, 113, 0.17);
  color: #355b22;
  content: "EVIDENCE STATUS";
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.status-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.status-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.status-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.status-row strong {
  text-align: right;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: linear-gradient(180deg, #137b72, var(--accent));
  color: #fff;
}

.section {
  padding: 12px 0;
}

.section-head {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin-bottom: 20px;
}

.section-head p:last-child {
  color: var(--muted);
}

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

.card,
.fact-table,
.notice {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.12)),
    var(--paper);
  box-shadow: 0 12px 32px rgba(18, 26, 27, 0.07);
}

.card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-left: 4px solid rgba(11, 107, 99, 0.72);
  text-decoration: none;
}

.card p,
.notice p,
.fact-table td {
  color: var(--muted);
}

.label {
  width: fit-content;
  padding: 3px 8px;
  border: 1px solid rgba(11, 107, 99, 0.18);
  border-radius: 4px;
  background: rgba(157, 220, 113, 0.22);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.label.reported {
  border-color: rgba(163, 61, 50, 0.18);
  background: #f2ddd5;
  color: var(--accent-2);
}

.label.unknown {
  border-color: rgba(117, 97, 52, 0.2);
  background: #ebe3d0;
  color: #6b5833;
}

.stack {
  display: grid;
  gap: 14px;
}

.fact-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

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

.fact-table tr:last-child th,
.fact-table tr:last-child td {
  border-bottom: 0;
}

.fact-table th {
  width: 210px;
  background: #e7e1d2;
}

.notice {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.source-list {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

.site-footer {
  margin-top: 36px;
  border-top: 1px solid var(--line);
  background: #eee9dc;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 820px) {
  .header-inner,
  .section,
  .footer-inner {
    width: auto;
    max-width: none;
    margin-right: 16px;
    margin-left: 16px;
  }

  .header-inner,
  .footer-inner,
  .hero .section {
    grid-template-columns: 1fr;
  }

  .header-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    justify-content: stretch;
  }

  .top-nav a {
    justify-content: center;
    text-align: center;
  }

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

  h1 {
    width: 100%;
    max-width: 100%;
    font-size: 27px;
    overflow-wrap: anywhere;
  }

  .hero-copy,
  .hero-copy > p:not(.eyebrow) {
    width: 100%;
    max-width: 320px;
  }

  .actions,
  .status-panel,
  .grid,
  .notice,
  .fact-table {
    max-width: 320px;
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 16px;
  }

  .actions {
    align-items: stretch;
  }

  .button {
    flex: 1 1 100%;
  }

  .status-row {
    display: grid;
    gap: 4px;
  }

  .status-row strong {
    text-align: left;
    overflow-wrap: anywhere;
  }

  .fact-table th,
  .fact-table td {
    display: block;
    width: 100%;
  }
}
