:root {
  --bg: #f7f3ea;
  --paper: #fffdf8;
  --text: #20251f;
  --muted: #6b7268;
  --accent: #176b5b;
  --accent-soft: #e2eee9;
  --line: #ded8cb;
  --code-bg: #eee9de;
  --shadow: 0 12px 40px rgba(44, 52, 45, .06);
}
html[data-theme="dark"] {
  --bg: #171a18;
  --paper: #1f2421;
  --text: #e7e9e3;
  --muted: #a4ada3;
  --accent: #76b9a6;
  --accent-soft: #233a33;
  --line: #343d37;
  --code-bg: #292f2b;
  --shadow: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.wrap { width: min(780px, calc(100% - 40px)); margin: 0 auto; }
.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 10;
}
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-family: "Noto Serif SC", serif; font-size: 18px;
}
.brand-name { font-family: "Noto Serif SC", "Songti SC", Georgia, serif; font-weight: 700; letter-spacing: .08em; }
.site-nav { display: flex; gap: 20px; margin-left: auto; }
.site-nav a { color: var(--muted); font-size: 14px; }
.site-nav a.active, .site-nav a:hover { color: var(--text); text-decoration: none; }
.theme-toggle {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 15px;
}
.hero { padding: 86px 0 64px; }
.eyebrow { color: var(--accent); font-size: 12px; letter-spacing: .18em; font-weight: 700; margin: 0 0 14px; }
.hero h1, .page-head h1, .post-header h1, .not-found h1 {
  font-family: "Noto Serif SC", "Songti SC", Georgia, serif; line-height: 1.35; margin: 0;
}
.hero h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 600; letter-spacing: -.03em; }
.hero-copy { max-width: 590px; color: var(--muted); margin: 22px 0 0; }
.section-block { padding: 10px 0 64px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.section-head h2 { font-size: 16px; letter-spacing: .08em; margin: 0; }
.section-head a { font-size: 13px; color: var(--muted); }
.post-card { padding: 30px 0; border-bottom: 1px solid var(--line); }
.post-card h2 { margin: 10px 0 8px; font-family: "Noto Serif SC", "Songti SC", Georgia, serif; font-size: 23px; font-weight: 600; line-height: 1.45; }
.post-card h2 a { color: var(--text); }
.post-card h2 a:hover { color: var(--accent); text-decoration: none; }
.post-card p { color: var(--muted); margin: 0; font-size: 15px; }
.post-meta { color: var(--muted); font-size: 13px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.tag { color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 2px 9px; font-size: 11px; letter-spacing: .02em; }
.page-head { padding: 68px 0 42px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: 36px; font-weight: 600; }
.page-head p:last-child { color: var(--muted); margin-bottom: 0; }
.archive-wrap { padding: 28px 0 72px; }
.archive-year { padding: 22px 0; border-bottom: 1px solid var(--line); }
.archive-year h2 { font-family: "Noto Serif SC", serif; font-size: 20px; color: var(--muted); margin: 0 0 16px; }
.archive-list { list-style: none; padding: 0; margin: 0; }
.archive-list li { display: flex; gap: 22px; padding: 8px 0; }
.archive-list time { color: var(--muted); font-size: 13px; min-width: 58px; font-variant-numeric: tabular-nums; }
.archive-list a { color: var(--text); }
.post { padding: 64px 0 80px; }
.post-header { border-bottom: 1px solid var(--line); padding-bottom: 30px; margin-bottom: 38px; }
.post-header h1 { font-size: clamp(30px, 4.7vw, 42px); font-weight: 600; letter-spacing: -.025em; margin-bottom: 18px; }
.prose { max-width: 720px; }
.prose h2 { font-family: "Noto Serif SC", "Songti SC", Georgia, serif; font-size: 25px; margin: 2.1em 0 .7em; font-weight: 600; }
.prose h3 { font-size: 19px; margin: 1.7em 0 .6em; }
.prose p { margin: 1em 0; }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose blockquote { border-left: 3px solid var(--accent); color: var(--muted); margin: 1.5em 0; padding: .1em 1em; }
.prose code { background: var(--code-bg); border-radius: 5px; padding: .12em .4em; font-size: .9em; }
.prose pre { background: var(--code-bg); border-radius: 10px; padding: 18px 20px; overflow-x: auto; line-height: 1.55; }
.prose pre code { background: transparent; padding: 0; font-size: 13px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.post-nav { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 24px; font-size: 14px; }
.about-prose { padding: 48px 0 80px; }
.not-found { padding: 120px 0 160px; text-align: center; }
.not-found h1 { font-size: 40px; font-weight: 600; margin-bottom: 16px; }
.not-found p { color: var(--muted); margin-bottom: 26px; }
.button { display: inline-block; border: 1px solid var(--accent); color: var(--accent); border-radius: 999px; padding: 8px 20px; font-size: 14px; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; padding: 26px 0; flex-wrap: wrap; }
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--muted); }
@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-inner { gap: 14px; }
  .brand-name { font-size: 14px; }
  .site-nav { gap: 12px; }
  .site-nav a { font-size: 13px; }
  .hero { padding: 58px 0 46px; }
  .hero h1 { font-size: 34px; }
  .post-card h2 { font-size: 21px; }
  .post { padding: 44px 0 62px; }
  .post-header h1 { font-size: 31px; }
  .footer-inner { display: block; }
  .footer-inner p + p { margin-top: 8px; }
}
