:root {
  --bg: #ffffff;
  --fg: #222222;
  --muted: #666666;
  --accent: #2563eb;
  --border: #e5e5e5;
  --code-bg: #f5f5f5;
  --max-width: 760px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.65;
}
.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.site-header { border-bottom: 1px solid var(--border); padding: 2rem 0 1rem; margin-bottom: 2rem; }
.site-title { font-size: 1.6rem; font-weight: 700; color: var(--fg); }
.site-tagline { color: var(--muted); margin: 0.25rem 0 1rem; font-size: 0.95rem; }
.site-header nav a { margin-right: 1.25rem; font-weight: 500; color: var(--fg); }
.site-header nav a.active { color: var(--accent); }
.post-list-item { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.post-list-item h2 { margin: 0 0 0.25rem; font-size: 1.3rem; }
.post-meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 0.5rem; }
article h1 { font-size: 1.8rem; margin-bottom: 0.25rem; }
pre {
  background: var(--code-bg);
  padding: 1rem;
  overflow-x: auto;
  border-radius: 6px;
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre;
}
code {
  background: var(--code-bg);
  padding: 0.15em 0.35em;
  border-radius: 4px;
  font-size: 0.9em;
}
pre code { background: none; padding: 0; }
img { max-width: 100%; height: auto; border-radius: 4px; }
iframe { max-width: 100%; }
.site-footer { border-top: 1px solid var(--border); margin-top: 3rem; padding: 1.5rem 0; color: var(--muted); font-size: 0.85rem; }
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181d;
    --fg: #e6e6e6;
    --muted: #9a9a9a;
    --accent: #6ea8fe;
    --border: #2a2d34;
    --code-bg: #1e2127;
  }
}
