:root {
  --text: #1c1f1d;
  --muted: #555c58;
  --background: #fbfaf7;
  --rule: #e2e0da;
  --accent: #2f6b4f;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #ecebe6;
    --muted: #a9aea9;
    --background: #151716;
    --rule: #2c2f2d;
    --accent: #7cc4a0;
  }
}

* {
  box-sizing: border-box;
}

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

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

header {
  padding-top: 2rem;
}

header a {
  color: var(--text);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
}

main {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.2rem;
  margin: 2.25rem 0 0.5rem;
}

a {
  color: var(--accent);
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
}

.updated {
  color: var(--muted);
}

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

footer nav a {
  margin-right: 1rem;
}
