:root {
  --bg: #f7f5f0;
  --ink: #1c1b19;
  --muted: #5d5a53;
  --rule: #dedad0;
  --accent: #a8401c;
  --serif: "Iowan Old Style", Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #151513;
    --ink: #ecebe6;
    --muted: #a29f97;
    --rule: #2e2d29;
    --accent: #e07a52;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #151513;
  --ink: #ecebe6;
  --muted: #a29f97;
  --rule: #2e2d29;
  --accent: #e07a52;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

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

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

main { flex: 1; }

.wrap {
  max-width: 52rem;
  margin: 0 auto;
  padding: 0 16px;
}

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* Header */
.site-header { padding: 28px 0; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font: 600 1.15rem/1 var(--serif);
  letter-spacing: 0.01em;
}
.brand svg { width: 28px; height: 28px; color: var(--accent); flex: none; }

/* Home */
.hero { padding: 56px 0 48px; border-bottom: 1px solid var(--rule); }
.hero h1 {
  font: 600 clamp(2rem, 5.2vw, 3.1rem)/1.12 var(--serif);
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  max-width: 18ch;
}
.lead { font-size: 1.2rem; color: var(--muted); margin: 0; max-width: 36rem; }

.row {
  display: grid;
  gap: 8px;
  padding: 36px 0;
  border-bottom: 1px solid var(--rule);
}
.row:last-child { border-bottom: 0; }
.row h2 {
  font: 600 0.8rem/1.6 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0;
}
.row p { margin: 0 0 12px; }
.row p:last-child { margin-bottom: 0; }
.row ul { margin: 0; padding-left: 1.1rem; }
.row li { margin-bottom: 8px; }
.row li:last-child { margin-bottom: 0; }

@media (min-width: 720px) {
  .row { grid-template-columns: 11rem 1fr; gap: 32px; }
  .row h2 { padding-top: 3px; }
}

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

/* Policy pages */
.doc { padding: 40px 0 64px; max-width: 40rem; }
.doc h1 { font: 600 clamp(1.9rem, 4.5vw, 2.5rem)/1.15 var(--serif); margin: 0 0 8px; }
.doc .updated { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font: 600 1.25rem/1.3 var(--serif); margin: 36px 0 10px; }
.doc p, .doc li { margin: 0 0 12px; }
.doc ul { padding-left: 1.1rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 24px 0 32px; color: var(--muted); font-size: 0.92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
