:root {
  --paper: #f7f3ec;
  --ink: #2b2620;
  --muted: #6f665a;
  --rule: #ddd4c6;
  --accent: #8a4b2a;
  --card: #fffdf9;
  --max: 44rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1c1a17;
    --ink: #ebe4d8;
    --muted: #a89e8f;
    --rule: #3a352e;
    --accent: #d9956b;
    --card: #24211d;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.7 Georgia, "Iowan Old Style", "Palatino Linotype", "Noto Serif", serif;
}
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
header.site {
  border-bottom: 1px solid var(--rule);
  padding: 1.5rem 0 1rem;
}
header.site .wrap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem; }
.brand { font-size: 1.35rem; font-weight: bold; color: var(--ink); text-decoration: none; letter-spacing: 0.01em; }
.brand span { color: var(--accent); }
nav a { margin-right: 1.1rem; color: var(--muted); text-decoration: none; font: 0.95rem/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; }
nav a:last-child { margin-right: 0; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }
main { padding: 2.5rem 0 3rem; }
h1 { font-size: 2rem; line-height: 1.25; margin: 0 0 0.75rem; }
h2 { font-size: 1.35rem; margin: 2.2rem 0 0.6rem; }
h3 { font-size: 1.1rem; margin: 1.6rem 0 0.4rem; }
p, ul, ol { margin: 0 0 1.1rem; }
.lede { font-size: 1.2rem; color: var(--muted); }
.meta { color: var(--muted); font: 0.9rem/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; margin-bottom: 1.6rem; }
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { padding: 1.1rem 0; border-top: 1px solid var(--rule); }
.post-list li:last-child { border-bottom: 1px solid var(--rule); }
.post-list a { font-size: 1.15rem; font-weight: bold; text-decoration: none; }
.post-list p { margin: 0.3rem 0 0; color: var(--muted); }
.post-list time { display: block; color: var(--muted); font: 0.85rem system-ui, -apple-system, "Segoe UI", sans-serif; }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: 6px; padding: 1.1rem 1.25rem; margin: 1.5rem 0; }
.card p:last-child { margin-bottom: 0; }
table { width: 100%; border-collapse: collapse; margin: 0 0 1.4rem; font-size: 0.97rem; }
th, td { text-align: left; padding: 0.5rem 0.6rem 0.5rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 0.85rem; color: var(--muted); font-weight: 600; }
blockquote { margin: 1.4rem 0; padding: 0.2rem 0 0.2rem 1rem; border-left: 3px solid var(--accent); color: var(--muted); font-style: italic; }
footer.site { border-top: 1px solid var(--rule); padding: 1.5rem 0 2.5rem; color: var(--muted); font: 0.88rem/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; }
footer.site p { margin: 0 0 0.3rem; }
@media (max-width: 480px) {
  h1 { font-size: 1.65rem; }
  body { font-size: 1rem; }
}
