:root {
  --navy: #10263d;
  --blue: #0b5e8e;
  --teal: #168c8c;
  --ink: #203040;
  --muted: #5e7184;
  --pale: #eef4f7;
  --line: #d3dee5;
  --white: #ffffff;
  --gold: #d6a84b;
  --measure: 74ch;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: var(--blue);
  text-underline-offset: 0.16em;
}

a:hover,
a:focus-visible {
  color: var(--teal);
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  color: var(--white);
  background: var(--navy);
  border-bottom: 4px solid var(--gold);
}

.masthead,
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 66px;
}

.brand {
  color: var(--white);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.edition {
  color: #d9e8f1;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  color: var(--white);
  background:
    linear-gradient(125deg, rgba(16, 38, 61, 0.98), rgba(11, 94, 142, 0.94)),
    var(--navy);
  border-bottom: 1px solid #294c69;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.75fr);
  gap: clamp(36px, 7vw, 92px);
  align-items: center;
  padding-block: clamp(68px, 9vw, 118px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #80e0df;
}

h1,
h2,
h3,
h4 {
  margin-block: 0 0.55em;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.14;
  text-wrap: balance;
}

h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 6vw, 5.35rem);
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  letter-spacing: -0.025em;
}

h3 {
  margin-top: 2.3em;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
}

h4 {
  font-size: 1.15rem;
}

.dek {
  max-width: 720px;
  margin: 24px 0 14px;
  color: #e7f1f7;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.5;
}

.byline {
  color: #b9d1df;
  font-size: 0.95rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.button.primary {
  color: var(--navy);
  background: var(--gold);
}

.button.primary:hover,
.button.primary:focus-visible {
  color: var(--navy);
  background: #e5bb64;
}

.button.secondary {
  color: var(--white);
  background: transparent;
  border-color: #9fc0d2;
}

.button.secondary:hover,
.button.secondary:focus-visible {
  color: var(--navy);
  background: var(--white);
}

.hero-note {
  padding: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

.hero-note p {
  margin: 0 0 24px;
  color: #e7f1f7;
  line-height: 1.45;
}

.hero-note .small {
  margin-bottom: 0;
  color: #b9d1df;
  font-size: 0.78rem;
}

.big-number {
  display: block;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 7vw, 5.6rem);
  font-weight: 700;
  line-height: 1;
}

.big-number.smaller {
  font-size: clamp(2.4rem, 5vw, 3.9rem);
}

.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}

.section-nav a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

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

.prose > p,
.prose > ul,
.prose > ol,
.prose > blockquote,
.prose > h2,
.prose > h3,
.prose > .eyebrow,
.prose > .callout,
.prose > .references,
.prose > .license {
  max-width: var(--measure);
}

.prose p {
  margin-block: 0 1.25em;
}

.prose li {
  margin-block: 0.55em;
}

.band {
  background: var(--pale);
  border-block: 1px solid var(--line);
}

.callout {
  margin-top: 34px;
  padding: 24px 26px;
  background: #f4f9fb;
  border-left: 5px solid var(--teal);
}

.method-grid,
.ig-grid,
.finding-grid,
.sheet-grid {
  display: grid;
  gap: 16px;
  margin-block: 34px;
}

.method-grid {
  grid-template-columns: repeat(4, 1fr);
}

.method-grid div,
.ig-grid div,
.finding-grid section,
.sheet-grid div {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.method-grid span,
.ig-grid span {
  display: block;
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1;
}

.method-grid p,
.ig-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.table-wrap {
  overflow-x: auto;
  margin-block: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.92rem;
}

caption {
  padding: 16px 18px;
  color: var(--navy);
  background: var(--pale);
  font-weight: 800;
  text-align: left;
}

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

th {
  color: var(--white);
  background: var(--teal);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.finding-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.finding-grid section {
  background: var(--pale);
  border-top: 4px solid var(--teal);
}

.finding-grid p {
  margin: 0;
  font-size: 0.94rem;
}

.control-list ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 34px;
  padding-left: 32px;
}

.control-list li {
  padding: 13px 0 15px 4px;
  border-bottom: 1px solid var(--line);
}

.control-list strong,
.control-list span {
  display: block;
}

.control-list span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.ig-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ig-grid h4 {
  margin: 10px 0 0;
}

blockquote {
  margin-inline: 0;
  padding: 22px 26px;
  color: var(--navy);
  background: #f4f9fb;
  border-left: 5px solid var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}

code {
  overflow-wrap: anywhere;
  padding: 0.12em 0.32em;
  color: #173b58;
  background: #e6eef3;
  border-radius: 3px;
  font-size: 0.88em;
}

.sheet-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sheet-grid strong,
.sheet-grid span {
  display: block;
}

.sheet-grid span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
  gap: 36px;
  align-items: center;
  margin-top: 44px;
  padding: 32px;
  color: var(--white);
  background: var(--navy);
  border-radius: 8px;
}

.download-panel h3 {
  margin-top: 0;
  color: var(--white);
}

.download-panel p {
  margin-bottom: 0;
  color: #d9e8f1;
}

.actions.stacked {
  flex-direction: column;
  margin: 0;
}

.references {
  padding-left: 24px;
}

.license {
  margin-top: 34px;
  padding-top: 22px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
}

footer {
  color: #d9e8f1;
  background: var(--navy);
  border-top: 4px solid var(--gold);
}

.footer-grid {
  min-height: 110px;
}

.footer-grid strong,
.footer-grid span {
  display: block;
}

.footer-grid span {
  margin-top: 3px;
  color: #9fc0d2;
  font-size: 0.86rem;
}

.footer-grid a {
  color: var(--white);
  font-weight: 700;
}

@media (max-width: 840px) {
  .hero-grid,
  .download-panel {
    grid-template-columns: 1fr;
  }

  .hero-note {
    max-width: 520px;
  }

  .method-grid,
  .ig-grid,
  .sheet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .control-list ol,
  .finding-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .shell {
    width: min(100% - 28px, 1120px);
  }

  .masthead {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-height: 82px;
  }

  .hero-grid {
    padding-block: 54px;
  }

  h1 {
    font-size: 2.65rem;
  }

  .method-grid,
  .ig-grid,
  .sheet-grid {
    grid-template-columns: 1fr;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .section-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 14px;
  }

  .download-panel {
    padding: 24px;
  }
}

@media print {
  body {
    font-size: 10.5pt;
  }

  .site-header,
  .section-nav,
  footer,
  .hero .actions,
  .download-panel .actions {
    display: none;
  }

  .hero {
    color: var(--ink);
    background: var(--white);
    border: 0;
  }

  .hero-grid {
    display: block;
    padding-block: 24mm 12mm;
  }

  h1 {
    color: var(--navy);
    font-size: 34pt;
  }

  .dek,
  .byline,
  .hero-note p,
  .hero-note .small {
    color: var(--ink);
  }

  .hero-note {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr;
    gap: 8mm;
    margin-top: 12mm;
    padding: 6mm;
    border: 1px solid var(--line);
    box-shadow: none;
  }

  .hero-note .small {
    grid-column: 1 / -1;
  }

  #abstract {
    break-before: page;
  }

  .big-number,
  .big-number.smaller {
    color: var(--navy);
    font-size: 26pt;
  }

  .prose {
    padding-block: 10mm;
  }

  .band {
    background: var(--white);
  }

  .finding-grid,
  .method-grid,
  .ig-grid,
  .sheet-grid,
  .control-list ol {
    break-inside: avoid;
  }

  .download-panel {
    color: var(--ink);
    background: var(--pale);
    break-inside: avoid;
  }

  .download-panel h3,
  .download-panel p {
    color: var(--ink);
  }

  a {
    color: var(--ink);
    text-decoration: none;
  }

  h2,
  h3 {
    break-after: avoid;
  }

  table,
  blockquote,
  .callout {
    break-inside: avoid;
  }
}
