:root {
  color-scheme: light;
  --paper: #f4f2ec;
  --surface: #fbfaf7;
  --ink: #171713;
  --muted: #62625b;
  --line: #d8d5cc;
  --accent: #274fbe;
  --accent-soft: #e8edfb;
  --focus: #1d6ce5;
  --max-width: 720px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

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

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

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 8px 12px;
  color: white;
  background: var(--ink);
  transform: translateY(-160%);
}

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

.masthead {
  border-bottom: 1px solid var(--line);
}

.masthead__inner,
.page,
.footer__inner {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 24px;
}

.brand {
  color: var(--ink);
  font-size: 16px;
  font-weight: 760;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
  font-weight: 650;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a[aria-current="page"] {
  color: var(--ink);
}

.page {
  padding-block: clamp(64px, 10vw, 112px) 96px;
}

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

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(42px, 8vw, 72px);
  font-weight: 720;
}

.lede {
  max-width: 640px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(19px, 3vw, 23px);
  line-height: 1.5;
  letter-spacing: -0.015em;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 14px;
}

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

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 17px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: white;
  background: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.action--secondary {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.rule {
  margin-block: 64px;
  border: 0;
  border-top: 1px solid var(--line);
}

.toc,
.notice {
  margin-block: 42px;
  padding: 22px 24px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
}

.toc strong,
.notice strong {
  display: block;
  margin-bottom: 7px;
}

.toc ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 20px;
  margin: 8px 0 0;
  padding-left: 20px;
}

section {
  scroll-margin-top: 32px;
}

section + section {
  margin-top: 58px;
  padding-top: 2px;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(27px, 5vw, 35px);
  font-weight: 700;
}

h3 {
  margin: 30px 0 8px;
  font-size: 19px;
  font-weight: 720;
  letter-spacing: -0.015em;
}

p,
ul {
  margin-block: 0 18px;
}

li + li {
  margin-top: 7px;
}

.facts {
  margin: 28px 0 0;
  border-top: 1px solid var(--line);
}

.facts > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding-block: 17px;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  color: var(--muted);
  font-size: 14px;
  font-weight: 680;
}

.facts dd {
  margin: 0;
}

.footer {
  border-top: 1px solid var(--line);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 30px 42px;
  color: var(--muted);
  font-size: 13px;
}

.footer p {
  margin: 0;
}

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

  .masthead__inner,
  .page,
  .footer__inner {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .masthead__inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding-block: 13px;
  }

  .nav {
    gap: 17px;
  }

  .page {
    padding-block: 48px 72px;
  }

  .toc ul,
  .facts > div {
    grid-template-columns: 1fr;
  }

  .facts > div {
    gap: 4px;
  }

  .footer__inner {
    flex-direction: column;
  }
}

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

