/* System fonts only: the site loads nothing from third parties. */
:root {
  --bg: #fbfaf7;
  --text: #1d1f22;
  --muted: #5b6068;
  --accent: #1f5f8b;
  --rule: #e2dfd8;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171a;
    --text: #ecebe8;
    --muted: #a3a7ad;
    --accent: #8cc3ea;
    --rule: #2c3036;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

main,
footer {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 16px;
}

main {
  padding-top: 18vh;
}

h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.1;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 2.5rem 0 0.5rem;
}

.lede {
  font-size: 1.25rem;
  color: var(--muted);
  margin: 0;
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

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

footer {
  margin-top: 4rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.875rem;
}
