:root {
  --bg: #fdfdfb;
  --fg: #1f2328;
  --muted: #59636e;
  --link: #0658c1;
  --border: #d8dee4;
  --code-bg: #f5f6f8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121417;
    --fg: #d2d8de;
    --muted: #8a949e;
    --link: #6cb0ff;
    --border: #2c333b;
    --code-bg: #1b1f24;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--fg);
  background: var(--bg);
}
main { max-width: 700px; margin: 0 auto; padding: 2.2rem 1.25rem 3.5rem; }
.site-header { margin-bottom: 2.2rem; }
.site-title { font-size: 1.35rem; font-weight: 700; color: var(--fg); }
.site-title:hover { text-decoration: none; }
.site-desc { color: var(--muted); margin: .35rem 0 0; font-size: .92rem; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.45rem; line-height: 1.5; margin: 0 0 .4rem; }
h2 { font-size: 1.12rem; margin: 1.9rem 0 .5rem; }
p { margin: .9rem 0; }
ol, ul { padding-left: 1.4rem; }
li { margin: .4rem 0; }
.meta { color: var(--muted); font-size: .85rem; margin: 0 0 1.4rem; }
ul.post-list { list-style: none; padding: 0; margin: 0; }
ul.post-list li {
  padding: .65rem 0;
  border-bottom: 1px dashed var(--border);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}
ul.post-list a { font-weight: 600; }
.post-date { color: var(--muted); font-size: .85rem; white-space: nowrap; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em;
  background: var(--code-bg);
  padding: .15em .4em;
  border-radius: 4px;
}
pre {
  background: var(--code-bg);
  padding: .9rem 1rem;
  border-radius: 6px;
  overflow-x: auto;
  line-height: 1.6;
}
pre code { background: none; padding: 0; font-size: .85rem; }
blockquote {
  margin: 1rem 0;
  padding: .1rem 1rem;
  border-left: 3px solid var(--border);
  color: var(--muted);
}
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding-top: 1.2rem;
  font-size: .82rem;
  color: var(--muted);
}
.site-footer p { margin: .35rem 0; }
@media (max-width: 480px) {
  ul.post-list li { flex-direction: column; gap: .1rem; }
}
