:root {
  --bg: #fbfaf7;
  --fg: #22201c;
  --muted: #6f6a61;
  --line: #e4e0d8;
  --accent: #2f6f5e;
  --code-bg: #f1eee7;
  --code-fg: #2b2925;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16150f;
    --fg: #e8e4da;
    --muted: #9a9384;
    --line: #2c2a23;
    --accent: #7fb8a3;
    --code-bg: #23211b;
    --code-fg: #ddd8cc;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 0 22px; }
header.site { padding: 40px 0 22px; }
header.site .row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
header.site a.brand { color: var(--fg); text-decoration: none; font-size: 1.15rem; letter-spacing: .02em; font-weight: 600; }
nav a { color: var(--muted); text-decoration: none; margin-left: 18px; font-size: .92rem; }
nav a:hover { color: var(--accent); }
hr.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
main { padding: 34px 0 60px; }
h1 { font-size: 1.5rem; line-height: 1.4; margin: 0 0 .4em; font-weight: 600; }
h2 { font-size: 1.12rem; margin: 2em 0 .6em; font-weight: 600; }
p { margin: 0 0 1.1em; }
.lead { color: var(--muted); font-size: 1.02rem; }
ul.posts { list-style: none; padding: 0; margin: 2em 0 0; }
ul.posts li { padding: 14px 0; border-top: 1px solid var(--line); display: flex; gap: 16px; align-items: baseline; }
ul.posts li:last-child { border-bottom: 1px solid var(--line); }
ul.posts time { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
ul.posts a { color: var(--fg); text-decoration: none; }
ul.posts a:hover { color: var(--accent); }
article time { color: var(--muted); font-size: .85rem; }
article pre {
  background: var(--code-bg); color: var(--code-fg); padding: 14px 16px; overflow-x: auto;
  border-radius: 6px; font-size: .86rem; line-height: 1.6;
}
article code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
article p code, article li code { background: var(--code-bg); padding: .1em .35em; border-radius: 4px; }
article blockquote { margin: 1.4em 0; padding: 0 0 0 16px; border-left: 2px solid var(--line); color: var(--muted); }
article ul { padding-left: 1.2em; }
article .back { margin-top: 2.4em; font-size: .9rem; }
a { color: var(--accent); }
footer.site { padding: 26px 0 46px; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); }
