:root { --bg:#fbf9f4; --fg:#22262a; --muted:#6b7177; --line:#e4dfd3; --accent:#1f4e5f; --code:#f1ede3; }
@media (prefers-color-scheme: dark) {
  :root { --bg:#15181b; --fg:#dcdfe2; --muted:#8b9299; --line:#2b3035; --accent:#7fc0d4; --code:#1f2327; }
}
* { box-sizing: border-box; }
html { font-size: 17px; }
body { margin:0 auto; max-width:44rem; padding:0 1.25rem 3rem; background:var(--bg); color:var(--fg);
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Segoe UI", sans-serif;
  line-height:1.8; }
a { color:var(--accent); text-decoration-thickness:1px; text-underline-offset:3px; }
header.site { display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:.5rem;
  padding:2rem 0 1rem; border-bottom:1px solid var(--line); margin-bottom:2rem; }
header.site .brand { font-family: Georgia, "Songti SC", "Noto Serif CJK SC", serif; font-size:1.35rem; color:var(--fg); text-decoration:none; }
header.site nav a { margin-left:1.1rem; color:var(--muted); text-decoration:none; font-size:.92rem; }
header.site nav a:hover { color:var(--accent); }
.intro { color:var(--muted); margin-bottom:1.5rem; }
h1 { font-family: Georgia, "Songti SC", "Noto Serif CJK SC", serif; font-size:1.7rem; line-height:1.35; margin:0 0 .4rem; }
h2 { font-size:1.2rem; margin:2.2rem 0 .6rem; }
.meta, time { color:var(--muted); font-size:.88rem; font-variant-numeric:tabular-nums; }
ul.posts { list-style:none; padding:0; margin:0; }
ul.posts li { padding:1rem 0; border-bottom:1px solid var(--line); }
ul.posts li a { display:block; font-size:1.12rem; font-weight:600; text-decoration:none; color:var(--fg); }
ul.posts li a:hover { color:var(--accent); }
ul.posts li p { margin:.25rem 0 0; color:var(--muted); font-size:.93rem; }
article table { border-collapse:collapse; width:100%; display:block; overflow-x:auto; font-size:.9rem; margin:1.2rem 0; }
article th, article td { border-bottom:1px solid var(--line); padding:.45rem .7rem; text-align:left; white-space:nowrap; }
article th { color:var(--muted); font-weight:600; }
code { background:var(--code); padding:.1em .35em; border-radius:4px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size:.88em; }
pre { background:var(--code) !important; padding:.9rem 1rem; border-radius:6px; overflow-x:auto; line-height:1.55; }
pre code { background:none; padding:0; }
blockquote { margin:1rem 0; padding:.1rem 1rem; border-left:3px solid var(--line); color:var(--muted); }
.pager { display:flex; justify-content:space-between; gap:1rem; margin-top:3rem; padding-top:1rem; border-top:1px solid var(--line); font-size:.92rem; }
.pager .next { margin-left:auto; text-align:right; }
footer.site { margin-top:3rem; padding-top:1rem; border-top:1px solid var(--line); color:var(--muted); font-size:.82rem; }
