:root {
  --bg: #f7f6f3;
  --fg: #1b1b1a;
  --muted: #6b6a66;
  --rule: #d9d6cf;
  --accent: #2f4f8f;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131415;
    --fg: #e8e6e1;
    --muted: #9a9892;
    --rule: #2c2e30;
    --accent: #8fb0ef;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0 auto;
  max-width: 40rem;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: clamp(3rem, 12vh, 8rem) 1.25rem 2rem;
  background: var(--bg);
  color: var(--fg);
  font: 1.0625rem/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 8vw, 3.25rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.suffix {
  font-weight: 400;
  color: var(--muted);
}

.lede {
  margin: 1rem 0 0;
  font-size: 1.1875rem;
  color: var(--muted);
}

main {
  flex: 1;
  margin-top: clamp(2.5rem, 8vh, 4.5rem);
}

section {
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
}

h2 {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

section p {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

footer {
  margin-top: 3rem;
  color: var(--muted);
}

footer p {
  margin: 0;
}
