:root {
  --bg: #fdfcf9;
  --fg: #222;
  --muted: #6b6b6b;
  --line: #e4e1da;
  --link: #1a5fb4;
  --visited: #6a3d9a;
  --quote: #f3f1ec;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #18191b;
    --fg: #e6e4df;
    --muted: #9a9890;
    --line: #34363a;
    --link: #8ab4f8;
    --visited: #c3a6f0;
    --quote: #222427;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 18px/1.65 Georgia, "Times New Roman", serif;
}
header.site, main, footer.site { max-width: 42rem; margin: 0 auto; padding: 0 1rem; }
header.site {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem;
  padding-top: 1.25rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: .9rem;
}
header.site .brand { font-weight: 700; font-size: 1.15rem; color: var(--fg); text-decoration: none; }
header.site .tagline { color: var(--muted); }
header.site nav { margin-left: auto; display: flex; gap: 1rem; }
footer.site {
  margin-top: 3rem; padding-top: 1rem; padding-bottom: 2rem; border-top: 1px solid var(--line);
  color: var(--muted); font: .85rem/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--link); }
a:visited { color: var(--visited); }
h1, h2, h3, h4 { line-height: 1.25; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
h1 { font-size: 1.8rem; margin: 2rem 0 .5rem; }
h2 { font-size: 1.3rem; margin: 2rem 0 .5rem; }
h3 { font-size: 1.1rem; }
.meta, time { color: var(--muted); font: .85rem/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
.lead { font-size: 1.05rem; }
.years a { margin-right: .6rem; white-space: nowrap; }
ul.posts { list-style: none; padding: 0; }
ul.posts li { padding: .3rem 0; border-bottom: 1px solid var(--line); }
ul.posts time { display: inline-block; min-width: 9.5rem; }
.cat { margin-left: .5rem; }
.content img { max-width: 100%; height: auto; }
.content table { border-collapse: collapse; display: block; overflow-x: auto; max-width: 100%; }
.content td, .content th { border: 1px solid var(--line); padding: .25rem .5rem; vertical-align: top; }
.content pre, .content code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85em; }
.content pre { overflow-x: auto; background: var(--quote); padding: .75rem; }
blockquote { margin: 1rem 0; padding: .5rem 1rem; background: var(--quote); border-left: 3px solid var(--line); }
.center { text-align: center; }
.red { color: #c0392b; }
.img-missing { display: inline-block; color: var(--muted); font: italic .85rem/1.4 system-ui, sans-serif; border: 1px dashed var(--line); padding: .25rem .5rem; }
.comments ol { padding-left: 1.25rem; }
.comments li { margin-bottom: 1.25rem; }
.comments li p { margin: .3rem 0; }
.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .9rem; }
.pager a[rel=next] { text-align: right; }
@media (max-width: 30rem) {
  body { font-size: 17px; }
  ul.posts time { display: block; min-width: 0; }
  header.site nav { margin-left: 0; }
}
