:root {
  --paper: #f5f2eb;
  --paper-bright: #fbfaf6;
  --ink: #172326;
  --ink-soft: #364746;
  --muted: #687471;
  --rule: #c7c5bd;
  --rust: #a84936;
  --rust-dark: #7d3228;
  --teal: #1d5559;
  --teal-soft: #dce7e2;
  --max: 1180px;
  --reading: 760px;
  color-scheme: light;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

::selection { color: var(--paper-bright); background: var(--teal); }

a { color: inherit; }

.wrap {
  width: min(var(--max), calc(100% - 64px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--paper-bright);
  background: var(--teal);
  transform: translateY(-180%);
}

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

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid var(--rule);
  background: rgba(245, 242, 235, 0.96);
  backdrop-filter: blur(14px);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 28px;
}

.wordmark,
.footer-credit {
  font-family: "Arial Narrow", Inter, sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark span,
.footer-credit span { color: var(--rust); }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
  font-size: 0.78rem;
}

.site-nav a,
.footer-library { text-underline-offset: 4px; }

.site-nav a:hover,
.site-nav a:focus-visible,
.footer-library:hover,
.footer-library:focus-visible { color: var(--rust); }

h1,
h2,
p { margin-top: 0; }

h1,
h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.055em;
}

.eyebrow,
.section-kicker,
.note-label,
.byline,
th,
.source-list > li > span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 28px;
  color: var(--teal);
}

.eyebrow span { padding-inline: 7px; color: var(--rust); }

.story-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  align-items: end;
  gap: clamp(42px, 8vw, 120px);
  padding-top: clamp(72px, 10vw, 134px);
  padding-bottom: clamp(58px, 8vw, 108px);
  border-bottom: 1px solid var(--rule);
}

.intro-main { min-width: 0; }

h1 {
  max-width: 980px;
  margin-bottom: 34px;
  font-size: clamp(3.2rem, 7.1vw, 7.2rem);
  line-height: 0.91;
}

h1 span { color: var(--rust); }

.dek {
  max-width: 720px;
  margin-bottom: 32px;
  color: var(--ink-soft);
  font-size: clamp(1.12rem, 1.8vw, 1.42rem);
  line-height: 1.48;
}

.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding-top: 16px;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  letter-spacing: 0.04em;
  text-transform: none;
}

.intro-note {
  margin-bottom: 7px;
  padding: 4px 0 3px 22px;
  border-left: 2px solid var(--rust);
}

.note-label {
  margin-bottom: 17px;
  color: var(--rust);
}

.note-number {
  margin-bottom: 10px;
  color: var(--rust);
  font: 400 clamp(3.2rem, 5vw, 5rem) "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  letter-spacing: -0.07em;
  line-height: 0.85;
}

.note-number span {
  color: var(--ink);
  font: 700 0.68rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro-note p:last-child {
  max-width: 26ch;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.91rem;
  line-height: 1.5;
}

.story { padding-top: clamp(52px, 7vw, 96px); }

.reading-column {
  width: min(100%, var(--reading));
  margin-inline: auto;
}

.story-section {
  padding: clamp(64px, 8vw, 112px) 0;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 88px;
}

.story-section.opening {
  padding-top: 0;
  border-top: 0;
}

.section-kicker {
  margin-bottom: 17px;
  color: var(--teal);
}

.story-section h2,
.sources-intro h2 {
  max-width: 14ch;
  margin-bottom: 24px;
  font-size: clamp(2.55rem, 5vw, 4.8rem);
  line-height: 0.94;
}

.story-section p {
  max-width: 68ch;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 1.06rem;
}

.story-section p + p { margin-top: 1.35em; }

.story-section p.lead {
  color: var(--ink);
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  line-height: 1.48;
}

code {
  color: var(--teal);
  font: 0.86em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}

.source-ref {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.source-ref:hover,
.source-ref:focus-visible { color: var(--rust); }

sup {
  margin-left: 2px;
  color: var(--rust);
  font: 700 0.68em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  vertical-align: super;
}

.key-fact {
  margin: 3px 0 0;
  padding: 25px 0 22px;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}

.key-fact-line {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1.6fr) auto;
  align-items: baseline;
  gap: 18px;
}

.key-fact-line > span:first-child,
.key-fact-line > span:last-child {
  color: var(--muted);
  font: 700 0.67rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.key-fact-line strong {
  color: var(--rust);
  font: 700 clamp(1.5rem, 4vw, 3.35rem) ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: -0.08em;
  line-height: 1;
  white-space: nowrap;
}

figcaption {
  max-width: 72ch;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.5;
}

.evidence-figure { margin: 34px 0 0; }

.table-wrap {
  overflow-x: auto;
  border-top: 2px solid var(--ink);
}

.procurement-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.87rem;
}

.procurement-table caption {
  padding: 0 0 12px;
  color: var(--muted);
  text-align: left;
  font-size: 0.82rem;
}

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

th {
  padding-top: 16px;
  color: var(--muted);
  font-size: 0.61rem;
  letter-spacing: 0.08em;
}

td:first-child,
td:nth-child(2),
.amount,
.status {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

td:first-child { color: var(--muted); white-space: nowrap; }

td:nth-child(2) a {
  color: var(--teal);
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

td:nth-child(2) a:hover,
td:nth-child(2) a:focus-visible { color: var(--rust); }

.amount {
  color: var(--ink);
  font-weight: 750;
  white-space: nowrap;
}

.status {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.status.refused { color: var(--rust); }
.status.accepted { color: var(--teal); }

blockquote {
  margin: 44px 0 42px;
  padding: 23px 0 24px 28px;
  border-bottom: 1px solid var(--rule);
  border-left: 5px solid var(--rust);
}

blockquote p {
  max-width: 15ch !important;
  margin: 0 !important;
  color: var(--rust) !important;
  font: 400 clamp(2.05rem, 4.8vw, 4rem) "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif !important;
  letter-spacing: -0.055em;
  line-height: 0.97 !important;
}

blockquote cite {
  display: block;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.79rem;
  font-style: normal;
}

blockquote cite a {
  color: var(--teal);
  text-underline-offset: 3px;
}

.limits-list {
  margin: 39px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.limits-list li {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  gap: 22px;
  padding: 19px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.limits-list strong {
  color: var(--rust);
  font: 700 0.66rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.closing-note {
  margin-top: 31px !important;
  color: var(--muted) !important;
  font-size: 0.92rem !important;
}

.sources-section {
  margin-top: clamp(22px, 4vw, 48px);
  padding: clamp(62px, 9vw, 116px) 0 104px;
  border-top: 4px solid var(--ink);
  background: var(--paper-bright);
  scroll-margin-top: 88px;
}

.sources-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: clamp(42px, 8vw, 120px);
}

.sources-intro h2 { max-width: 11ch; }

.sources-intro > p:last-child {
  max-width: 47ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

.source-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.source-list li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 13px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}

.source-list > li > span { color: var(--rust); }

.source-list a {
  display: grid;
  gap: 4px;
  text-decoration: none;
}

.source-list a strong {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.source-list a small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.source-list a:hover strong,
.source-list a:focus-visible strong { color: var(--rust); }

.source-note {
  grid-column: 2;
  max-width: 650px;
  margin: 19px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.site-footer {
  padding: 28px 0 34px;
  color: var(--paper-bright);
  background: var(--teal);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: start;
  gap: 24px;
}

.footer-grid p {
  margin: 0;
  color: var(--teal-soft);
  font-size: 0.76rem;
  line-height: 1.5;
}

.footer-library {
  justify-self: end;
  color: var(--paper-bright);
  font-size: 0.78rem;
}

.site-nav a:focus-visible,
.wordmark:focus-visible,
.footer-credit:focus-visible,
.footer-library:focus-visible,
.source-list a:focus-visible,
.source-ref:focus-visible,
td:nth-child(2) a:focus-visible { outline: 3px solid var(--rust); outline-offset: 4px; }

@media (max-width: 900px) {
  .wrap { width: min(720px, calc(100% - 48px)); }

  .story-intro {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .intro-note { max-width: 420px; }

  .sources-layout { grid-template-columns: 1fr; }
  .sources-intro h2 { max-width: 14ch; }
  .source-note { grid-column: auto; }
}

@media (max-width: 580px) {
  .wrap { width: min(100% - 40px, 520px); }

  .site-header-inner {
    align-items: flex-start;
    min-height: 64px;
    padding-block: 15px;
  }

  .site-nav {
    justify-content: flex-start;
    gap: 8px 14px;
    font-size: 0.69rem;
  }

  .story-intro {
    gap: 35px;
    padding-top: 60px;
    padding-bottom: 52px;
  }

  .eyebrow { margin-bottom: 24px; line-height: 1.55; }

  h1 {
    margin-bottom: 27px;
    font-size: clamp(3.05rem, 14.6vw, 4.7rem);
    line-height: 0.92;
  }

  .dek { font-size: 1.08rem; }

  .byline { display: grid; gap: 6px; line-height: 1.45; }

  .intro-note { padding-left: 17px; }

  .note-number { font-size: 3.65rem; }

  .story { padding-top: 43px; }

  .story-section { padding: 62px 0; }

  .story-section h2,
  .sources-intro h2 {
    max-width: none;
    font-size: clamp(2.45rem, 12.8vw, 4rem);
  }

  .story-section p { font-size: 1rem; }
  .story-section p.lead { font-size: 1.17rem; }

  .key-fact { padding-top: 21px; }

  .key-fact-line {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .key-fact-line strong {
    white-space: normal;
    font-size: clamp(1.55rem, 8.2vw, 2.7rem);
  }

  .evidence-figure { margin-top: 28px; }

  .table-wrap { overflow: visible; }

  .procurement-table {
    display: block;
    min-width: 0;
  }

  .procurement-table caption {
    display: block;
    width: 100%;
  }

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

  .procurement-table tbody,
  .procurement-table tr,
  .procurement-table td { display: block; }

  .procurement-table tbody tr {
    padding: 13px 0 15px;
    border-bottom: 1px solid var(--rule);
  }

  .procurement-table tbody tr:first-child td { border-top: 0; }

  .procurement-table td {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
    padding: 5px 0;
    border: 0;
    font-size: 0.88rem;
    white-space: normal;
  }

  .procurement-table td::before {
    color: var(--muted);
    content: attr(data-label);
    font: 700 0.6rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .procurement-table td:first-child { color: var(--ink-soft); }

  blockquote { margin: 36px 0; padding-left: 19px; }
  blockquote p { font-size: 2.55rem !important; }

  .limits-list li {
    display: block;
    padding: 17px 0;
  }

  .limits-list strong {
    display: block;
    margin-bottom: 7px;
  }

  .sources-section { padding-bottom: 76px; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-library { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
