:root {
  --bg: #fbfaf7;
  --fg: #22252a;
  --muted: #6b6f76;
  --line: #e3e0d8;
  --accent: #4b6a8a;
  --code-bg: #f0eee8;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17191c;
    --fg: #e6e4df;
    --muted: #9a9ea5;
    --line: #2e3136;
    --accent: #8fb0d1;
    --code-bg: #23262a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 18px/1.65 Georgia, "Iowan Old Style", "Times New Roman", serif;
}
header.site, main, footer.site { max-width: 42rem; margin: 0 auto; padding: 0 16px; }
header.site {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem;
  padding-top: 1.25rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
.brand { font-weight: 700; font-size: 1.15rem; color: var(--fg); text-decoration: none; }
nav { display: flex; gap: 1rem; font-size: .95rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a[aria-current="page"], nav a:hover { color: var(--fg); }
main { padding-top: 1.5rem; padding-bottom: 3rem; }
h1, h2, h3, h4 { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.3; }
h1 { font-size: 1.9rem; margin: .5rem 0 .25rem; }
h2 { font-size: 1.35rem; margin-top: 2rem; }
a { color: var(--accent); }
time { color: var(--muted); font-size: .9rem; font-family: system-ui, sans-serif; }
article > header { margin-bottom: 1.5rem; }
.intro { font-size: 1.1rem; }
ul.posts { list-style: none; padding: 0; }
ul.posts li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
ul.posts li > a { font-family: system-ui, sans-serif; font-weight: 600; font-size: 1.15rem; text-decoration: none; }
ul.posts li time { display: block; }
ul.posts li p { margin: .25rem 0 0; color: var(--muted); }
blockquote { margin: 1.25rem 0; padding: .25rem 1rem; border-left: 3px solid var(--line); color: var(--muted); }
code { background: var(--code-bg); padding: .1em .3em; border-radius: 3px; font-size: .9em; }
pre { background: var(--code-bg); padding: 1rem; overflow-x: auto; border-radius: 4px; }
pre code { background: none; padding: 0; }
figure { margin: 1.5rem 0; }
figure img { max-width: 100%; height: auto; display: block; margin: 0 auto; }
figcaption { color: var(--muted); font-size: .85rem; text-align: center; margin-top: .4rem; }
.table { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { border-bottom: 1px solid var(--line); padding: .4rem .6rem; text-align: left; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
footer.site { border-top: 1px solid var(--line); padding-top: 1rem; padding-bottom: 2rem; color: var(--muted); font-size: .85rem; }
