:root {
  --bg: #eef2ef;
  --paper: #f7faf7;
  --ink: #1a2e22;
  --body: #334d3f;
  --muted: #5c7365;
  --line: #c5d4c9;
  --accent: #2d6a4f;
  --accent-soft: #d8eee3;
  --code-bg: #e4ebe5;
  --code-fg: #1f3d2d;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(ellipse at top left, #e2ebe4 0%, transparent 50%),
    var(--bg);
  color: var(--body);
  line-height: 1.8;
  font-size: 16px;
  min-height: 100vh;
}
.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 2.5rem 1.4rem 3rem;
}
.mast {
  border-left: 4px solid var(--accent);
  padding-left: 1.1rem;
  margin-bottom: 2.5rem;
}
.mast .brand {
  font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.08em;
}
.mast .tag {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.mast nav {
  margin-top: 0.9rem;
  font-size: 0.9rem;
}
.mast nav a {
  color: var(--accent);
  text-decoration: none;
  margin-right: 1.1rem;
  font-weight: 500;
}
.mast nav a:hover { text-decoration: underline; }

.lead {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1rem 1.15rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.entry {
  padding: 1.35rem 0;
  border-bottom: 1px dashed var(--line);
}
.entry:last-of-type { border-bottom: none; }
.entry .kind {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.15rem 0.5rem;
  margin-bottom: 0.45rem;
}
.entry .date {
  font-size: 0.78rem;
  color: var(--muted);
  margin-left: 0.5rem;
}
.entry h2 {
  font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", serif;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.45;
  margin: 0.2rem 0 0.4rem;
}
.entry h2 a {
  color: var(--ink);
  text-decoration: none;
}
.entry h2 a:hover { color: var(--accent); }
.entry p {
  font-size: 0.93rem;
  color: var(--muted);
}

article.post {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.75rem 1.4rem 2rem;
}
article.post h1 {
  font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 0.4rem;
}
article.post .meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.6rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
article.post h2 {
  font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", serif;
  font-size: 1.15rem;
  color: var(--ink);
  margin: 1.8rem 0 0.7rem;
}
article.post p { margin: 0.9rem 0; }
article.post ul, article.post ol { margin: 0.9rem 0 0.9rem 1.3rem; }
article.post li { margin: 0.28rem 0; }
article.post a { color: var(--accent); }

code {
  font-family: ui-monospace, Consolas, "Sarasa Mono SC", monospace;
  font-size: 0.86em;
  background: var(--code-bg);
  color: var(--code-fg);
  padding: 0.1em 0.35em;
}
pre {
  background: #1f3d2d;
  color: #d8eee3;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  margin: 1.1rem 0;
  font-size: 0.84rem;
  line-height: 1.6;
}
pre code { background: none; color: inherit; padding: 0; }

.back {
  display: inline-block;
  margin-top: 1.8rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}
.back:hover { text-decoration: underline; }

footer.site {
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}
footer.site a {
  color: var(--muted);
  text-decoration: none;
}
footer.site a:hover { color: var(--accent); }
