/* Minimal, readable typography with automatic light/dark theme */
:root {
  --bg: #fbfaf7;
  --fg: #1f2328;
  --muted: #5d636b;
  --accent: #2357a8;
  --rule: #e3e0d8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171a;
    --fg: #e6e4df;
    --muted: #9aa0a6;
    --accent: #8ab4f8;
    --rule: #2c3036;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.65 Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
}

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

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

h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 0.5rem; }
h2 { font-size: 1.15rem; margin: 2rem 0 0.5rem; }

.lead { color: var(--muted); font-size: 1.15rem; margin-top: 0; }
.meta { color: var(--muted); font-size: 0.9rem; margin-top: 2.5rem; }

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

ul { padding-left: 1.2rem; }
li { margin-bottom: 0.6rem; }

footer {
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
  padding-bottom: 3rem;
  font-size: 0.95rem;
}
