:root {
  --bg: #fbfaf7;
  --text: #1f1f1d;
  --muted: #6b6a65;
  --faint: #97958e;
  --line: #e6e4dc;
  --accent: #0f6e56;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 680px; margin: 0 auto; padding: 0 22px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

header.site { padding: 40px 0 0; }
header.site .inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.logo { font-size: 17px; font-weight: 600; letter-spacing: 0.5px; color: var(--text); }
.logo:hover { text-decoration: none; color: var(--text); }
nav a { font-size: 14px; color: var(--muted); margin-left: 20px; }
nav a:hover { color: var(--accent); text-decoration: none; }
nav a.on { color: var(--text); }

.lede { padding: 44px 0 40px; }
.lede h1 { font-size: 26px; font-weight: 600; line-height: 1.5; letter-spacing: 0.3px; }
.lede p { margin-top: 12px; color: var(--muted); font-size: 15px; }

.list { padding-bottom: 24px; }

article.item { padding: 26px 0; border-bottom: 1px solid var(--line); }
article.item:last-child { border-bottom: none; }
.item .meta {
  font-size: 13px;
  color: var(--faint);
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
}
.item .meta .tag {
  color: var(--accent);
  background: #eaf3ef;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 12px;
}
.item h2 { font-size: 19px; font-weight: 600; line-height: 1.55; letter-spacing: 0.2px; }
.item h2 a { color: var(--text); }
.item h2 a:hover { color: var(--accent); text-decoration: none; }
.item .excerpt { margin-top: 8px; font-size: 14.5px; color: var(--muted); }

.post { padding: 40px 0 20px; }
.post .meta { font-size: 13px; color: var(--faint); margin-bottom: 10px; }
.post h1 {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.2px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.post h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 34px 0 12px;
  letter-spacing: 0.2px;
}
.post p { margin-bottom: 16px; }
.post ul, .post ol { margin: 0 0 16px 22px; }
.post li { margin-bottom: 8px; }
.post blockquote {
  border-left: 3px solid #cfdcd6;
  padding: 2px 0 2px 18px;
  margin: 20px 0;
  color: var(--muted);
}
.post code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 14px;
  background: #f0eee7;
  padding: 1px 5px;
  border-radius: 3px;
}
.post table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }
.post th, .post td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.post th { background: #f4f2ec; font-weight: 500; }

.back { display: inline-block; margin: 32px 0 0; font-size: 14px; }

footer.site {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  padding: 22px 0 46px;
  font-size: 12.5px;
  color: var(--faint);
  line-height: 2;
}
footer.site a { color: var(--faint); }
footer.site a:hover { color: var(--muted); }

@media (max-width: 560px) {
  .lede { padding: 34px 0 30px; }
  .lede h1 { font-size: 22px; }
  .post h1 { font-size: 22px; }
  .item h2 { font-size: 17.5px; }
}
