:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --ink: #1f1b16;
  --muted: #6b6258;
  --rule: #e6ded3;
  --accent: #b4532a;
  --accent-ink: #ffffff;
  --measure: 42rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171411;
    --surface: #211d19;
    --ink: #f1ebe3;
    --muted: #a89d90;
    --rule: #342e28;
    --accent: #e0875c;
    --accent-ink: #171411;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 20px; }

header.site {
  border-bottom: 1px solid var(--rule);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap;
}
.wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700; font-size: 1.35rem; letter-spacing: 0.08em;
  color: var(--ink); text-decoration: none;
}
nav a { color: var(--muted); text-decoration: none; margin-left: 18px; font-size: 0.95rem; }
nav a:first-child { margin-left: 0; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }

main { padding: 48px 0 64px; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.25; }
h1 { font-size: 2.2rem; margin: 0 0 12px; }
h2 { font-size: 1.35rem; margin: 40px 0 10px; }
h3 { font-size: 1.1rem; margin: 28px 0 6px; }
p, li { max-width: var(--measure); }
.lede { font-size: 1.2rem; color: var(--muted); margin-top: 0; }
.meta { color: var(--muted); font-size: 0.95rem; }

.card {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 14px;
  padding: 24px; margin: 32px 0;
}
.card h2 { margin-top: 0; }
.badge {
  display: inline-block; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--rule); border-radius: 999px; padding: 2px 10px;
}
.button {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  padding: 10px 18px; border-radius: 10px; text-decoration: none; font-weight: 600;
}
.story {
  font-family: Georgia, "Times New Roman", serif; font-style: italic;
  border-left: 3px solid var(--accent); padding-left: 16px; color: var(--muted);
}

table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 0.95rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }

footer.site { border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.9rem; }
footer.site .wrap { padding-top: 24px; padding-bottom: 32px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
footer.site a { color: var(--muted); }
.badge + h2 { margin-top: 12px; }
