:root {
  --bg: #fbfaf7;
  --fg: #222222;
  --muted: #777777;
  --accent: #2456c8;
  --border: #e8e4d9;
  --code-bg: #f1efe8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161513;
    --fg: #e8e6e1;
    --muted: #9a978e;
    --accent: #7aa2ff;
    --border: #2e2c28;
    --code-bg: #22211e;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.75;
  font-size: 1.05rem;
}
.site-header {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--border);
}
.site-title { font-weight: 700; font-size: 1.25rem; color: var(--fg); text-decoration: none; }
.site-header nav a { margin-left: 1.25rem; color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--accent); }
main { max-width: 44rem; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
main h1 { line-height: 1.3; }
a { color: var(--accent); }
.post-list { list-style: none; padding: 0; }
.post-list li { padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
.post-list .date { color: var(--muted); font-size: 0.9rem; margin-right: 0.75rem; font-variant-numeric: tabular-nums; }
.post-list a { text-decoration: none; color: var(--fg); font-weight: 600; }
.post-list a:hover { color: var(--accent); }
article .date { color: var(--muted); margin-top: -0.75rem; }
article img { max-width: 100%; height: auto; border-radius: 6px; }
pre { background: var(--code-bg); padding: 1rem; overflow-x: auto; border-radius: 6px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }
p code, li code { background: var(--code-bg); padding: 0.15em 0.4em; border-radius: 4px; }
table { border-collapse: collapse; width: 100%; margin: 1.5rem 0; }
th, td { border: 1px solid var(--border); padding: 0.5rem 0.75rem; text-align: left; }
blockquote { border-left: 3px solid var(--border); margin-left: 0; padding-left: 1rem; color: var(--muted); }
footer { max-width: 44rem; margin: 0 auto; padding: 1.5rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; }
