:root {
  --bg: #faf9f7;
  --bg-elevated: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --border: #e6e2db;
  --accent: #1f4b3a;
  --accent-soft: #e8f0ec;
  --link: #1f4b3a;
  --max: 680px;
  --font: "Iowan Old Style", "Palatino Linotype", Palatino, "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --font-sans: "Inter", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121412;
    --bg-elevated: #1a1c1a;
    --text: #e8e6e1;
    --text-muted: #9a968c;
    --border: #2c302c;
    --accent: #8fbfa8;
    --accent-soft: #1e2a24;
    --link: #8fbfa8;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  opacity: 0.85;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
}

.site-header {
  padding: 1.75rem 0 1.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.brand {
  display: block;
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 0.85rem;
}

.brand:hover {
  opacity: 1;
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

.nav a[aria-current="page"] {
  font-weight: 600;
}

main {
  padding-bottom: 4rem;
}

h1,
h2,
h3 {
  font-family: var(--font);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 1.85rem;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 1.75rem;
}

.meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 2rem;
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-list li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}

.post-list a {
  color: var(--text);
  text-decoration: none;
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 600;
}

.post-list a:hover {
  color: var(--accent);
}

.post-list .meta {
  margin: 0.35rem 0 0;
}

.prose p {
  margin: 0 0 1.1rem;
}

.prose ul {
  padding-left: 1.25rem;
  margin: 0 0 1.1rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--text-muted);
}

.hero-note {
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
  margin: 1.5rem 0 2rem;
}

.section-card {
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
  margin: 0 0 2rem;
}

.section-card > a {
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.section-card > a:hover {
  color: var(--accent);
}

.section-card .post-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
