:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #6b6b6b;
  --link: #0645ad;
  --border: #e2e2e2;
  --code-bg: #f4f4f4;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171a;
    --fg: #d9d9d9;
    --muted: #8a8a8a;
    --link: #8ab4f8;
    --border: #2c2f33;
    --code-bg: #1f2225;
  }
}
* { box-sizing: border-box; }
html { font-size: 17px; }
body {
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  max-width: 42rem;
  background: var(--bg);
  color: var(--fg);
  font-family: Charter, "Bitstream Charter", Georgia, Cambria, "Times New Roman", serif;
  line-height: 1.65;
}
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2.5rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
.site-title { font-weight: 700; color: var(--fg); text-decoration: none; }
.site-header nav a { color: var(--muted); text-decoration: none; margin-left: 1rem; }
.site-header nav a:hover, .site-title:hover { color: var(--link); }
.site-intro { color: var(--muted); }
a { color: var(--link); }
h1 { font-size: 1.6rem; line-height: 1.3; margin: 0 0 0.4rem; }
h2 { font-size: 1.25rem; margin-top: 2.2rem; }
.post-meta { color: var(--muted); font-size: 0.9rem; margin-top: 0; }
.post-list { list-style: none; padding: 0; }
.post-list li { margin: 0.6rem 0; }
.post-list time { color: var(--muted); font-size: 0.85rem; margin-right: 0.75rem; font-variant-numeric: tabular-nums; }
code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85em;
  background: var(--code-bg);
  padding: 0.1em 0.3em;
  border-radius: 3px;
}
pre { background: var(--code-bg); padding: 0.9rem 1rem; overflow-x: auto; border-radius: 6px; }
pre code { background: none; padding: 0; }
blockquote { margin: 1rem 0; padding-left: 1rem; border-left: 3px solid var(--border); color: var(--muted); }
img { max-width: 100%; }
hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
.site-footer { margin-top: 3.5rem; padding-top: 1rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; }
