:root {
  --bg: #f6f1e9;
  --surface: #fffaf3;
  --text: #2b2622;
  --muted: #6d625a;
  --accent: #a2552c;
  --line: #e4d9cc;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17140f;
    --surface: #211c16;
    --text: #efe6da;
    --muted: #b3a597;
    --accent: #e39a6b;
    --line: #3a3128;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 Georgia, "Iowan Old Style", "Palatino Linotype", serif;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

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

header.site {
  border-bottom: 1px solid var(--line);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
}
header.site .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: center; padding-top: 14px; padding-bottom: 14px; }
header.site .name { font-weight: 600; color: var(--text); text-decoration: none; margin-right: auto; }
header.site nav { display: flex; gap: 1.1rem; }
header.site nav a { color: var(--muted); text-decoration: none; }
header.site nav a:hover, header.site nav a[aria-current] { color: var(--text); }

.hero { margin: 0; }
.hero img { display: block; width: 100%; height: clamp(220px, 46vw, 440px); object-fit: cover; }

main { padding: 2.25rem 0 3rem; }
h1 { font-size: clamp(1.9rem, 5vw, 2.5rem); line-height: 1.2; margin: 0 0 0.4rem; font-weight: normal; }
h2 { font-size: 1.25rem; margin: 2.2rem 0 0.5rem; }
.lede { font-size: 1.15rem; color: var(--muted); margin-top: 0; }
.updated { color: var(--muted); font-size: 0.95rem; }
ul { padding-left: 1.2rem; }
li { margin: 0.3rem 0; }
.button {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 6px;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 600;
}
.note { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.2rem; }

footer.site {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
}
footer.site .wrap { padding-top: 18px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
footer.site a { color: var(--muted); }
