:root {
  --bg: #f7f3ea;
  --surface: #ffffff;
  --text: #1c1915;
  --muted: #5d5547;
  --line: #ddd5c5;
  --accent: #9a6a00;
  --link: #8a5a00;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141210;
    --surface: #1e1b17;
    --text: #f4efe6;
    --muted: #a79c8b;
    --line: #38332b;
    --accent: #e3a93a;
    --link: #e3a93a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main, header.site, footer {
  max-width: 44rem;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
header.site {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
header.site .brand { font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
header.site nav a { margin-left: 16px; }
a { color: var(--link); }
h1 { font-size: 1.9rem; line-height: 1.2; margin: 1.6rem 0 0.4rem; }
h2 { font-size: 1.25rem; margin: 2rem 0 0.4rem; }
p, li { max-width: 40rem; }
.lead { font-size: 1.15rem; color: var(--muted); margin-top: 0; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 18px 14px;
  margin: 1.2rem 0;
}
.meta { color: var(--muted); font-size: 0.9rem; }
footer { padding-top: 24px; padding-bottom: 40px; color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--line); margin-top: 3rem; }
ul { padding-left: 1.2rem; }
