:root {
  --bg: #fafafa; --fg: #101114; --fg2: #34363d; --muted: #6b6d76;
  --acc: #3654ea; --border: #e4e4e7; --code: #f2f2f4;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0c; --fg: #f1f1f4; --fg2: #d3d4db; --muted: #a4a5b0;
    --acc: #7f97ff; --border: #24242b; --code: #16161a;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
header.site, footer.site {
  max-width: 720px; margin: 0 auto; padding: 20px 24px; font-size: 13px; color: var(--muted);
}
footer.site { border-top: 1px solid var(--border); margin-top: 48px; }
header.site a, footer.site a { color: var(--muted); text-decoration: none; }
main { max-width: 720px; margin: 0 auto; padding: 8px 24px 40px; }
article h1, main > h1 {
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.2rem); line-height: 1.15;
  letter-spacing: -.02em; margin: .2em 0 .1em;
}
h2 { font-size: 1.3rem; letter-spacing: -.01em; margin: 1.8em 0 .4em; }
h3 { font-size: 1.1rem; margin: 1.4em 0 .3em; }
p, li { color: var(--fg2); }
a { color: var(--acc); }
.meta { color: var(--muted); font-size: 13px; }
code {
  background: var(--code); padding: .1em .35em; border-radius: 4px; font-size: .9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
pre { background: var(--code); padding: 14px 16px; border-radius: 8px; overflow-x: auto; border: 1px solid var(--border); }
pre code { background: none; padding: 0; }
blockquote { border-left: 3px solid var(--border); margin: 1em 0; padding: .2em 0 .2em 1em; color: var(--muted); }
hr { border: none; border-top: 1px solid var(--border); margin: 2em 0; }
ul.posts { list-style: none; padding: 0; }
ul.posts li { padding: 14px 0; border-bottom: 1px solid var(--border); }
ul.posts li a { font-weight: 600; font-size: 1.1rem; }
ul.posts li p { margin: .3em 0 0; font-size: 14px; color: var(--muted); }
img { max-width: 100%; height: auto; border-radius: 8px; }
