:root {
  --bg: #fdfdfb;
  --fg: #22242a;
  --muted: #6b7280;
  --accent: #2563eb;
  --line: #e5e7eb;
  --card: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --fg: #e5e7eb;
    --muted: #9ca3af;
    --accent: #7aa2f7;
    --line: #26292f;
    --card: #1a1d23;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.75;
  font-size: 16px;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }
header.site {
  border-bottom: 1px solid var(--line);
  padding: 28px 0 18px;
  margin-bottom: 32px;
}
header.site .name {
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
}
header.site .tag { color: var(--muted); font-size: 14px; margin-top: 2px; }
nav.main { margin-top: 12px; font-size: 15px; }
nav.main a { color: var(--muted); text-decoration: none; margin-right: 18px; }
nav.main a:hover { color: var(--accent); }
h1 { font-size: 26px; line-height: 1.4; margin: 0 0 8px; }
h2 { font-size: 20px; margin: 32px 0 10px; }
.meta { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.post-list a.title {
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
}
.post-list a.title:hover { color: var(--accent); }
.post-list .date { color: var(--muted); font-size: 13px; margin-right: 10px; }
.post-list .excerpt { color: var(--muted); font-size: 14px; margin-top: 4px; }
article p { margin: 14px 0; }
article img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 14px 0 6px;
}
.credit { color: var(--muted); font-size: 12px; margin-bottom: 10px; }
article ul { padding-left: 22px; }
code {
  background: rgba(127, 127, 127, 0.14);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
pre {
  background: rgba(127, 127, 127, 0.12);
  padding: 14px 16px;
  border-radius: 8px;
  overflow-x: auto;
}
pre code { background: none; padding: 0; }
footer.site {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding: 20px 0 36px;
  color: var(--muted);
  font-size: 13px;
}
.intro {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 28px;
}
.intro p { margin: 6px 0; }
