:root {
  color-scheme: light dark;
  --paper: light-dark(#fbfbf8, #111312);
  --ink: light-dark(#111312, #f1f3ef);
  --muted: light-dark(#5d625d, #aeb4ad);
  --rule: light-dark(#949a93, #555b55);
  --accent: light-dark(#2756d8, #88a5ff);
  --accent-strong: light-dark(#183da9, #aac0ff);
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover { text-decoration-thickness: 2px; }

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-180%);
}

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

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  border-left: 8px solid var(--accent);
  padding-left: clamp(22px, 4vw, 56px);
  padding-right: clamp(14px, 3vw, 40px);
}

.masthead,
footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.masthead { border-bottom: 2px solid var(--ink); }
.masthead strong { font-weight: 600; }

main { padding: clamp(48px, 8vw, 96px) 0 clamp(62px, 9vw, 110px); }

.intro,
.record-row {
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
}

.intro { padding-bottom: clamp(64px, 9vw, 112px); }

.section-rail {
  color: var(--accent);
  font-size: .84rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.section-rail span,
.section-rail h2 { display: block; }

.section-rail h2 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .04em;
}

.eyebrow,
.evidence-label {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

h1 {
  max-width: 850px;
  margin: 0 0 34px;
  font-size: clamp(2.3rem, 6vw, 5rem);
  font-weight: 500;
  letter-spacing: -.065em;
  line-height: .98;
}

.lead {
  max-width: 720px;
  margin: 0;
  font-size: clamp(1.02rem, 2vw, 1.28rem);
}

.record-row {
  padding: clamp(28px, 4vw, 46px) 0 clamp(46px, 7vw, 78px);
  border-top: 1px solid var(--rule);
}

.copy,
.evidence-record { max-width: 760px; }
p { margin: 0 0 20px; }

.documented-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 19px 0 21px;
  border-top: 4px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  text-transform: uppercase;
}

.documented-total span {
  font-size: .78rem;
  letter-spacing: .08em;
}

.documented-total strong {
  font-size: clamp(1.65rem, 4vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 24px;
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

th,
td {
  padding: 15px 12px;
  border-bottom: 1px solid var(--rule);
  text-align: right;
  vertical-align: top;
}

th:first-child,
td:first-child {
  padding-left: 0;
  text-align: left;
}

th:last-child,
td:last-child { padding-right: 0; }

thead th {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}

tbody th { font-weight: 400; }

tfoot th,
tfoot td {
  border-top: 2px solid var(--ink);
  border-bottom: 0;
  font-weight: 600;
}

.fine-print {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: .76rem;
}

.evidence-record {
  padding-left: 22px;
  border-left: 4px solid var(--accent);
}

.evidence-record h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 600;
}

.evidence-record .fine-print { max-width: 680px; }

footer {
  align-items: flex-end;
  border-top: 2px solid var(--ink);
}

@media (max-width: 680px) {
  html { font-size: 16px; }

  .page-shell {
    width: min(100% - 24px, 1180px);
    border-left-width: 5px;
    padding-left: 16px;
    padding-right: 4px;
  }

  .masthead,
  footer {
    flex-direction: column;
    gap: 5px;
  }

  .intro,
  .record-row {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .section-rail {
    display: flex;
    gap: 14px;
  }

  .section-rail h2 { margin: 0; }

  .documented-total {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  h1 br { display: none; }
}

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