:root {
  --ink: #15211d;
  --muted: #5d6b65;
  --paper: #f7f4ed;
  --card: #fffdf8;
  --line: #d8d8cb;
  --forest: #173f35;
  --mint: #b7e4cf;
  --signal: #e76845;
  --max: 1180px;
}

* { box-sizing: border-box; }

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

body {
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 5%, rgba(183, 228, 207, .42), transparent 25rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

a { color: #176b56; overflow-wrap: anywhere; text-underline-offset: .18em; }
a:hover { color: var(--signal); }
a:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }

.skip-link {
  position: fixed;
  z-index: 10;
  top: .75rem;
  left: .75rem;
  padding: .65rem 1rem;
  color: white;
  background: var(--forest);
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }

.topbar {
  border-bottom: 1px solid rgba(21, 33, 29, .14);
  background: rgba(247, 244, 237, .86);
  backdrop-filter: blur(12px);
}

.topbar__inner,
.hero__inner,
.layout,
.footer__inner {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.topbar__inner {
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  color: var(--ink);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-decoration: none;
  text-transform: uppercase;
}

.topbar__label {
  color: var(--muted);
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  overflow: hidden;
  color: white;
  background: var(--forest);
}

.hero::after {
  content: "";
  position: absolute;
  width: 27rem;
  height: 27rem;
  right: -9rem;
  bottom: -16rem;
  border: 1px solid rgba(183, 228, 207, .35);
  border-radius: 50%;
  box-shadow: 0 0 0 4rem rgba(183, 228, 207, .06), 0 0 0 8rem rgba(183, 228, 207, .04);
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(3rem, 9vw, 7rem);
}

.eyebrow {
  margin: 0 0 1.2rem;
  color: var(--mint);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: Iowan Old Style, Baskerville, "Times New Roman", serif;
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .98;
}

.hero__description {
  max-width: 760px;
  margin: 1.5rem 0 0;
  color: #dbe9e3;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 2rem;
}

.pill,
.download {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: .45rem .8rem;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  color: #eff8f4;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-decoration: none;
}

.download { background: var(--mint); color: var(--forest); border-color: var(--mint); }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 15rem;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
  padding-block: clamp(2.5rem, 7vw, 6rem);
}

.report { min-width: 0; }

.report h2,
.report h3 {
  color: var(--forest);
  scroll-margin-top: 2rem;
  font-family: Iowan Old Style, Baskerville, "Times New Roman", serif;
}

.report h2 {
  margin: 4.5rem 0 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.1;
}

.report h2:first-child { margin-top: 0; }
.report h3 { margin: 2.25rem 0 .6rem; font-size: 1.45rem; }
.report p { max-width: 72ch; }
.report strong { font-weight: 750; }

.report blockquote {
  max-width: 72ch;
  margin: 2rem 0;
  padding: 1.25rem 1.4rem;
  border: 0;
  border-left: .35rem solid var(--signal);
  border-radius: 0 .7rem .7rem 0;
  background: var(--card);
  box-shadow: 0 10px 32px rgba(23, 63, 53, .07);
}

.report table {
  display: block;
  width: 100%;
  margin: 1.75rem 0;
  overflow-x: auto;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: .7rem;
  background: var(--card);
  font-size: .91rem;
  line-height: 1.45;
}

.report th,
.report td {
  min-width: 8.5rem;
  padding: .8rem .9rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.report th {
  color: white;
  background: var(--forest);
  font-size: .75rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.report tr:last-child td { border-bottom: 0; }
.report ol, .report ul { max-width: 70ch; padding-left: 1.3rem; }
.report li { margin-block: .5rem; padding-left: .3rem; }
.report code { padding: .1rem .3rem; border-radius: .25rem; background: #e8e8de; }

.toc-shell {
  position: sticky;
  top: 1.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: rgba(255, 253, 248, .82);
  box-shadow: 0 16px 40px rgba(23, 63, 53, .06);
}

.toc-shell summary {
  cursor: pointer;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.toc-shell ul { margin: .8rem 0 0; padding: 0; list-style: none; }
.toc-shell li { margin: .48rem 0; }
.toc-shell li li { margin-left: .75rem; font-size: .84rem; }
.toc-shell a { color: var(--ink); font-size: .86rem; line-height: 1.3; text-decoration: none; }
.toc-shell a:hover { color: var(--signal); }

.footer {
  color: #d6e5de;
  background: #102f27;
}

.footer__inner { padding-block: 2.2rem; }
.footer p { max-width: 76ch; margin: 0; font-size: .82rem; }

@media (max-width: 820px) {
  body { font-size: 16px; }
  .layout { display: flex; flex-direction: column-reverse; gap: 1.5rem; }
  .toc-shell { position: static; width: 100%; }
  .hero::after { opacity: .55; }
  .report h2 { margin-top: 3.25rem; }
}

@media (max-width: 520px) {
  .topbar__label { display: none; }
  .topbar__inner, .hero__inner, .layout, .footer__inner { width: min(calc(100% - 1.25rem), var(--max)); }
  .hero__inner { padding-block: 3rem 3.5rem; }
  .hero h1 { font-size: clamp(2rem, 11vw, 3rem); overflow-wrap: anywhere; }
  .layout { overflow: hidden; }
  .report { width: 100%; }
  .report table { max-width: calc(100vw - 1.25rem); }
  .report th, .report td { min-width: 7.5rem; padding: .68rem .7rem; }
}

@media print {
  body { background: white; font-size: 10pt; }
  .topbar, .toc-shell, .download { display: none; }
  .hero { color: var(--ink); background: white; }
  .hero__description, .eyebrow { color: var(--ink); }
  .hero__inner, .layout { width: 100%; padding: 0; }
  .layout { display: block; }
  .report h2 { break-after: avoid; }
  .report table, .report blockquote { break-inside: avoid; }
}
