:root {
  --bg: #fafafa;
  --fg: #222;
  --muted: #666;
  --link: #0366d6;
  --border: #e5e5e5;
  --max: 760px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #15171a; --fg: #e8e8e8; --muted: #9aa0a6; --link: #6ea8ff; --border: #2a2e34; }
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Sans", "Yu Gothic UI", sans-serif;
  line-height: 1.7; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.site-header, .site-footer, main { max-width: var(--max); margin: 0 auto; padding: 1rem; }
.site-header { display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border); }
.site-title { font-weight: 700; font-size: 1.25rem; }
.site-header nav a { margin-left: 1rem; color: var(--muted); }
.site-footer { border-top: 1px solid var(--border); margin-top: 4rem; color: var(--muted); font-size: 0.85rem; }
article h1 { font-size: 1.8rem; line-height: 1.3; margin: 0.5rem 0; }
article .meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 2rem; }
article pre { background: #0d1117; color: #e6edf3; padding: 1rem; overflow-x: auto; border-radius: 6px; }
article code { background: rgba(127,127,127,0.15); padding: 0.1em 0.35em; border-radius: 3px; font-size: 0.9em; }
article pre code { background: transparent; padding: 0; }
article blockquote { border-left: 3px solid var(--border); margin: 1em 0; padding: 0.2em 1em; color: var(--muted); }
.post-list { list-style: none; padding: 0; }
.post-list li { padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.post-list .date { color: var(--muted); font-size: 0.85rem; }
.pager { display: flex; justify-content: space-between; margin: 2rem 0; }
.tag, .category { display: inline-block; background: rgba(127,127,127,0.15);
  padding: 0.1em 0.6em; border-radius: 999px; font-size: 0.8em; margin-right: 0.4em; }
