:root {
  --bg: #fdfcfa;
  --text: #2b2b2b;
  --muted: #777;
  --accent: #b5442c;
  --rule: #e6e2dc;
  --code-bg: #f3f0eb;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1a19;
    --text: #e4e1dc;
    --muted: #9a958e;
    --accent: #e8866f;
    --rule: #34312e;
    --code-bg: #262422;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0 auto;
  max-width: 42rem;
  padding: 0 1rem;
  background: var(--bg);
  color: var(--text);
  font: 1.125rem/1.7 "PT Serif", Georgia, serif;
}
h1, h2, h3, h4, nav, .meta, .site-footer { font-family: "Open Sans", system-ui, sans-serif; }
h1, h2, h3 { line-height: 1.3; }
a { color: var(--accent); }
img, iframe { max-width: 100%; height: auto; }
iframe { aspect-ratio: 16 / 9; height: auto; width: 100%; }

.site-header {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem;
  padding: 2rem 0 1rem; border-bottom: 1px solid var(--rule); margin-bottom: 2rem;
}
.site-title { font: 700 1.5rem "Open Sans", system-ui, sans-serif; color: var(--text); text-decoration: none; }
nav a { margin-left: 1rem; color: var(--muted); text-decoration: none; font-size: .9rem; }
nav a:hover { color: var(--accent); }

.meta { color: var(--muted); font-size: .85rem; margin-top: -.5rem; }
.meta a { color: var(--muted); }
.summary { margin-bottom: 2.5rem; }
.summary h2 { margin-bottom: .5rem; }
.summary h2 a { color: var(--text); text-decoration: none; }
.summary h2 a:hover { color: var(--accent); }
.pager { display: flex; justify-content: space-between; margin: 2rem 0; }
.pager a { margin: 0; }
.list { padding-left: 1.2rem; }
.list time { color: var(--muted); font-size: .85rem; }

code { background: var(--code-bg); padding: .1em .3em; border-radius: 3px; font-size: .88em; }
pre { background: var(--code-bg); padding: 1rem; overflow-x: auto; border-radius: 4px; line-height: 1.45; }
pre code { padding: 0; background: none; }
blockquote { margin-left: 0; padding-left: 1rem; border-left: 3px solid var(--rule); color: var(--muted); }

.site-footer { border-top: 1px solid var(--rule); margin-top: 3rem; padding: 1.5rem 0 3rem; color: var(--muted); font-size: .85rem; }
