:root {
  color-scheme: light;
  --bg: #f6f4ef;
  --card: #fffdf8;
  --text: #1f1b16;
  --muted: #6b6258;
  --line: #e4ddd2;
  --accent: #8a4b2f;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Source Han Serif SC", "Songti SC", Georgia, serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

a { color: inherit; }
.wrap { width: min(880px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
.site-header .wrap,
.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.15rem;
}
.logo img {
  width: 32px;
  height: 32px;
  display: block;
}
nav { display: flex; gap: 16px; }
nav a { text-decoration: none; color: var(--muted); }
nav a.active, nav a:hover { color: var(--accent); }

.site-main { padding: 32px 0 64px; }
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.hero { margin-bottom: 36px; }
.hero h1, section h1, .article h1 { line-height: 1.25; margin: 0 0 12px; }
.lead, .hero p { color: var(--muted); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.section-head a { color: var(--accent); text-decoration: none; font-size: 0.9rem; }

.entry-list { list-style: none; padding: 0; margin: 0; }
.entry-list li { border-bottom: 1px solid var(--line); }
.entry-list a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  text-decoration: none;
}
.entry-list time { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }

.empty, .empty-page { color: var(--muted); }
.empty-page { padding: 48px 0; }
.empty-page a { color: var(--accent); }

.pager { display: flex; gap: 16px; align-items: center; margin-top: 24px; }
.pager a { color: var(--accent); text-decoration: none; }

.article time, .crumb { color: var(--muted); font-size: 0.85rem; }
.crumb { margin: 0 0 8px; }
.crumb a { color: var(--accent); text-decoration: none; }

.cms-html { margin-top: 24px; }
.cms-html h2, .cms-html h3 { line-height: 1.35; }
.cms-html p { margin: 0.9em 0; }
.cms-html ul, .cms-html ol { padding-left: 1.4em; }
.cms-html img { max-width: 100%; height: auto; }
.cms-html table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.cms-html a { color: var(--accent); }
