:root {
  color-scheme: light dark;
  --bg: #fbf8f1;
  --fg: #2a2520;
  --muted: #5c5348;
  --accent: #8a4b12;
  --rule: #ddd3c2;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #18140f;
    --fg: #f0e8da;
    --muted: #b9ad9a;
    --accent: #e6b36a;
    --rule: #3a3227;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

header,
main,
footer {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

header {
  border-bottom: 1px solid var(--rule);
}

header strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
}

nav {
  margin-top: 0.5rem;
}

nav a {
  margin-right: 1.25rem;
}

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.25;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.375rem;
}

.updated,
footer {
  color: var(--muted);
  font-size: 0.95rem;
}

footer {
  border-top: 1px solid var(--rule);
  margin-top: 2rem;
}
