:root {
  --bg: #fbfaf7; --fg: #16181d; --muted: #5c6370;
  --rule: #dcd8cf; --accent: #1c3f5e; --card: #fff;
}
@media (prefers-color-scheme: dark) {
  :root { --bg:#101216; --fg:#e9e6e0; --muted:#9aa1ad;
          --rule:#282c34; --accent:#8fb8d8; --card:#171a1f; }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.6 Georgia, "Iowan Old Style", serif;
}
.wrap { max-width: 54rem; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
header.site { border-bottom: 1px solid var(--rule); margin-bottom: 2.5rem; }
header.site a.brand {
  display: flex; align-items: center; gap: .6rem;
  padding: 1.1rem 0 1rem;
  font-size: 1.4rem; letter-spacing: .02em; font-weight: 700;
  color: var(--fg); text-decoration: none;
}
header.site a.brand img { width: 40px; height: 40px; display: block; }
h1 { font-size: 1.9rem; line-height: 1.25; margin: 0 0 .4rem; }
h2 { font-size: 1.2rem; margin: 2.5rem 0 .75rem; }
.meta { color: var(--muted); font-size: .9rem; margin: 0 0 2rem; }
a { color: var(--accent); }
figure { margin: 0 0 2.5rem; }
figure img {
  display: block; width: 100%; height: auto; border-radius: 3px;
  border: 1px solid var(--rule); background: var(--card);
}
figcaption { margin-top: .85rem; font-size: 1.02rem; }
figcaption .ref { color: var(--muted); font-size: .85rem;
  display: block; margin-top: .4rem; font-family: system-ui, sans-serif; }
ul.index { list-style: none; padding: 0; }
ul.index li { border-bottom: 1px solid var(--rule); }
ul.index a { display: flex; gap: 1rem; align-items: baseline;
  padding: .85rem 0; text-decoration: none; }
ul.index a:hover { text-decoration: underline; }
ul.index .n { color: var(--muted); font-size: .85rem; min-width: 2.2rem;
  font-family: system-ui, sans-serif; }
nav.pager { display: flex; justify-content: space-between; gap: 1rem;
  border-top: 1px solid var(--rule); padding-top: 1.25rem;
  font-family: system-ui, sans-serif; font-size: .9rem; }
details.gen { margin-top: 2rem; font-family: system-ui, sans-serif;
  font-size: .82rem; color: var(--muted); }
details.gen pre { overflow-x: auto; background: var(--card);
  border: 1px solid var(--rule); padding: .8rem; border-radius: 3px; }
footer.site { margin-top: 4rem; padding-top: 1.25rem;
  border-top: 1px solid var(--rule); color: var(--muted);
  font-size: .82rem; font-family: system-ui, sans-serif; }
footer.site p { margin: .35rem 0; }
