:root {
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --accent: #2563eb;
  --bg: #fdfdfc;
  --line: #e7e5e0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e8e6e3;
    --muted: #9a968f;
    --accent: #7aa2f7;
    --bg: #16161a;
    --line: #2a2a30;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  max-width: 44rem;
  padding: 3rem 1.25rem;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.75 -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
}

/* ---------- 导航 ---------- */
nav {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}
.brand {
  margin-right: auto;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .9375rem;
}
nav a:hover { color: var(--accent); }

/* ---------- 正文 ---------- */
h1 { font-size: 2rem; margin: 0 0 .5rem; letter-spacing: -.02em; }
.tagline { color: var(--muted); margin: 0 0 3rem; }

h2 {
  font-size: 1rem;
  letter-spacing: .08em;
  color: var(--muted);
  margin: 2.5rem 0 .75rem;
}

a { color: var(--accent); }
ul { padding-left: 1.2rem; }
li { margin: .25rem 0; }

/* ---------- 文章列表 ---------- */
.post-list { list-style: none; padding: 0; }
.post-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--line);
}
.post-list a { text-decoration: none; }
.post-list a:hover { text-decoration: underline; }
.post-list time {
  color: var(--muted);
  font-size: .875rem;
  white-space: nowrap;
}

/* ---------- 文章页 ---------- */
.post-meta { color: var(--muted); font-size: .9375rem; margin: 0 0 2.5rem; }
article h2 { margin-top: 2rem; }

/* ---------- 页脚 ---------- */
footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .875rem;
}
