:root {
  --bg: #f7f5f0;
  --ink: #1b1a17;
  --muted: #6b675e;
  --line: #dcd7cb;
  --accent: #2f5d50;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #141412; --ink: #ece9e1; --muted: #a09b8f; --line: #2e2c27; --accent: #8fc0ae; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main { flex: 1; width: 100%; max-width: 40rem; margin: 0 auto; padding: 18vh 1.5rem 4rem; }
main.doc { padding-top: 5rem; }
h1 {
  margin: 0 0 1rem;
  font: 400 clamp(2.4rem, 7vw, 3.6rem)/1.05 Georgia, "Times New Roman", serif;
  letter-spacing: -0.02em;
}
main.doc h1 { font-size: clamp(2rem, 5vw, 2.6rem); }
h2 { margin: 2.5rem 0 0.5rem; font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.2rem; max-width: 30rem; }
.muted { color: var(--muted); }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
.rule { width: 3rem; height: 1px; background: var(--line); border: 0; margin: 2rem 0; }
footer {
  max-width: 40rem; width: 100%; margin: 0 auto; padding: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.9rem; color: var(--muted);
}
footer a { color: inherit; }
