@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/DMSans-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/DMSans-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --brand: #254A7B;
  --bg: #FFFFFF;
  --text: #2D3142;
  --muted: #4F5D75;
  --outline: #BFC0C0;
  --selection: #C8D8EE;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #7FA8E0;
    --bg: #0A0A0A;
    --text: #FFFFFF;
    --muted: #C0C0C0;
    --outline: #4F4F4F;
    --selection: #1F3654;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 2.5rem 1rem 3rem;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.home {
  display: inline-block;
  margin-bottom: 2rem;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
}

h1 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.875rem, 6vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--brand);
}

h2 {
  margin: 2.25rem 0 0.5rem;
  font-size: 1.375rem;
  line-height: 1.3;
}

h3 {
  margin: 1.5rem 0 0.25rem;
  font-size: 1.0625rem;
}

p, ul { margin: 0 0 1rem; }

ul { padding-left: 1.25rem; }

li { margin-bottom: 0.375rem; }

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

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

::selection { background: var(--selection); }

.updated {
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--outline);
  font-size: 0.875rem;
  color: var(--muted);
}

footer a {
  position: relative;
  margin-right: 1rem;
}

/* Grow the tap area to 44px without moving the text or the focus ring. */
footer a::after {
  content: '';
  position: absolute;
  inset: -0.875rem -0.25rem;
}
