:root {
  --bg: #f6f1ea;
  --surface: #fffdf9;
  --text: #2b2420;
  --muted: #6f625a;
  --accent: #8a5a3c;
  --rule: #e4d9cc;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1815;
    --surface: #24201c;
    --text: #efe7de;
    --muted: #b3a597;
    --accent: #d9a27c;
    --rule: #3a332d;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--sans);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

.site-header, .site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 16px;
}

.brand {
  font: 600 22px var(--serif);
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
}

nav a, .site-footer a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 20px;
  font-size: 15px;
}
nav a:hover, .site-footer a:hover { color: var(--accent); }

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 14px;
}

.hero {
  max-width: 960px;
  margin: 0 auto;
  padding: 12vh 16px 10vh;
  text-align: center;
}

.hero h1 {
  font: 500 clamp(44px, 9vw, 88px)/1.05 var(--serif);
  letter-spacing: 0.04em;
  margin: 0 0 20px;
}

.hero p {
  font-size: clamp(18px, 2.6vw, 22px);
  color: var(--muted);
  max-width: 34ch;
  margin: 0 auto 32px;
}

.tag {
  display: inline-block;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 14px;
  color: var(--muted);
  background: var(--surface);
}

.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

.doc h1 { font: 500 40px/1.15 var(--serif); margin: 16px 0 4px; }
.doc h2 { font: 600 21px/1.3 var(--serif); margin: 36px 0 8px; }
.doc .meta { color: var(--muted); margin-top: 0; }
.doc code { font-size: 0.9em; background: var(--surface); padding: 1px 5px; border-radius: 4px; }
.doc li { margin-bottom: 6px; }
