:root {
  --bg: #fafaf8;
  --fg: #1f2328;
  --muted: #666c75;
  --border: #e5e5e0;
  --accent: #2c5282;
  --card: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141619;
    --fg: #e6e8eb;
    --muted: #98a0aa;
    --border: #262a30;
    --accent: #7aa2f7;
    --card: #1b1e23;
  }
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans SC", "PingFang SC", "Segoe UI", sans-serif;
  line-height: 1.75;
}
.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}
header.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: .75rem 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.25rem;
}
.site-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: .02em;
}
nav.site-nav {
  display: flex;
  gap: 1.15rem;
  font-size: .95rem;
}
nav.site-nav a {
  color: var(--muted);
  text-decoration: none;
}
nav.site-nav a:hover, nav.site-nav a.active {
  color: var(--fg);
}
.intro {
  color: var(--muted);
  margin: 0 0 2rem;
  font-size: .95rem;
}
.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.post-item {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--border);
}
.post-item:first-child { padding-top: 0; }
.post-item:last-child { border-bottom: none; }
.post-item h2 {
  margin: 0 0 .35rem;
  font-size: 1.15rem;
  font-weight: 600;
}
.post-item h2 a {
  color: var(--fg);
  text-decoration: none;
}
.post-item h2 a:hover { color: var(--accent); }
.meta {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: .45rem;
}
.excerpt {
  margin: 0;
  color: var(--fg);
  opacity: .88;
  font-size: .96rem;
}
article.entry h1 {
  font-size: 1.5rem;
  line-height: 1.35;
  margin: 0 0 .5rem;
}
article.entry .meta { margin-bottom: 1.75rem; }
article.entry p { margin: 0 0 1.2rem; }
article.entry blockquote {
  margin: 1.25rem 0;
  padding: .25rem 1rem;
  border-left: 3px solid var(--border);
  color: var(--muted);
}
.archive-year {
  font-size: 1.1rem;
  margin: 1.75rem 0 .65rem;
  color: var(--muted);
}
.archive-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.archive-list li {
  display: flex;
  gap: 1rem;
  padding: .4rem 0;
}
.archive-list time {
  color: var(--muted);
  font-size: .9rem;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.archive-list a {
  color: var(--fg);
  text-decoration: none;
}
.archive-list a:hover { color: var(--accent); }
.back-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--accent);
  text-decoration: none;
  font-size: .95rem;
}
footer.site-footer {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: .85rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
footer.site-footer a { color: var(--muted); }
