:root {
  --paper: #fbfaf7;
  --ink: #2c2c2a;
  --muted: #6b6a64;
  --line: #e6e3da;
  --accent: #185fa5;
  --accent-soft: #e6f1fb;
  --max: 720px;
}

* { box-sizing: border-box; }

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

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 18px;
}
.brand:hover { text-decoration: none; }
.brand-mark { font-size: 22px; line-height: 1; }
.site-nav {
  display: flex;
  gap: 22px;
  font-size: 15px;
}
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--accent); text-decoration: none; }

/* ---------- hero ---------- */
.hero {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.hero-mark { font-size: 40px; display: block; margin-bottom: 16px; line-height: 1; }
.hero-desc {
  margin: 0;
  font-size: 19px;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- post cards ---------- */
.post-list { padding-top: 16px; }
.post-card {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.post-card-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
  letter-spacing: .02em;
}
.post-card-cat { margin-left: 6px; }
.post-card-title {
  margin: 0 0 12px;
  font-size: 25px;
  line-height: 1.4;
  font-weight: 600;
}
.post-card-title a { color: var(--ink); }
.post-card-title a:hover { color: var(--accent); text-decoration: none; }
.post-card-summary {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-more {
  font-size: 14px;
  color: var(--accent);
}

/* ---------- article ---------- */
.post { padding: 56px 0 32px; }
.post-head { margin-bottom: 40px; }
.post-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}
.post-cat { margin-left: 6px; }
.post-title {
  margin: 0;
  font-size: 34px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -.01em;
}
.post-body { font-size: 17px; }
.post-body h2 {
  margin: 44px 0 16px;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.4;
}
.post-body h3 {
  margin: 32px 0 14px;
  font-size: 19px;
  font-weight: 600;
}
.post-body p { margin: 0 0 22px; }
.post-body strong { font-weight: 600; }
.post-body blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-style: normal;
}
.post-body blockquote p { margin: 0; }
.post-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}
.post-body em { color: var(--muted); }
.post-body code {
  background: var(--accent-soft);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .9em;
}
.post-body a { text-decoration: underline; text-underline-offset: 3px; }

.post-tags {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.tags-label { color: var(--muted); margin-right: 12px; }
.tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 14px;
  margin: 0 6px 6px 0;
}
.tag:hover { text-decoration: none; background: #d3e7f9; }

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.post-nav-next { margin-left: auto; text-align: right; }

/* ---------- page head / archive / terms ---------- */
.page-head { padding: 56px 0 24px; }
.page-title { margin: 0; font-size: 32px; font-weight: 700; }
.page-desc { color: var(--muted); margin: 10px 0 0; }

.archive-group { margin-bottom: 36px; }
.archive-year {
  font-size: 20px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.archive-list { list-style: none; padding: 0; margin: 12px 0 0; }
.archive-list li { padding: 7px 0; }
.archive-list time {
  display: inline-block;
  width: 52px;
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.term-cloud { margin: 24px 0 40px; }
.term-chip {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 7px 14px;
  border-radius: 18px;
  margin: 0 8px 10px 0;
}
.term-chip:hover { text-decoration: none; background: #d3e7f9; }
.term-count { color: var(--muted); font-size: 12px; margin-left: 4px; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 72px;
  padding: 36px 0 56px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer p { margin: 0 0 6px; }
.footer-sub { color: #9a9992; }

/* ---------- responsive ---------- */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .header-inner { flex-wrap: wrap; padding: 14px 0; gap: 12px; }
  .site-nav { gap: 16px; font-size: 14px; width: 100%; }
  .hero { padding: 44px 0 32px; }
  .hero-desc { font-size: 17px; }
  .post-title { font-size: 27px; }
  .post-card-title { font-size: 21px; }
  .post { padding: 40px 0 24px; }
  .post-body h2 { font-size: 20px; }
}
