:root {
  --bg: #FBFAF7;
  --ink: #1A1A1A;
  --muted: #6B665E;
  --rule: #E4E0D8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151514;
    --ink: #ECE9E3;
    --muted: #A09A90;
    --rule: #2E2D2A;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 18px;
  line-height: 1.65;
}
html[lang="zh-Hans"] body {
  font-family: "Source Serif 4", "Noto Serif SC", "Songti SC", serif;
  line-height: 1.8;
}
main {
  max-width: 640px;
  margin: 0 auto;
  padding: 64px 24px 48px;
}
a { color: inherit; text-decoration-color: var(--muted); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }

/* Header */
header { margin-bottom: 56px; }
.topline { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.wordmark {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.14em;
  text-decoration: none;
  line-height: 1.2;
}
.lang { font-size: 14px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.lang:hover { color: var(--ink); }
nav { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }
nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--muted); }

/* Content */
h1 { margin: 0 0 24px; font-size: 30px; font-weight: 600; line-height: 1.3; }
section { margin-bottom: 48px; }
h2 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
h2 a { text-decoration: none; }
h2 a:hover { color: var(--ink); }
p { margin: 0 0 14px; }
.empty { color: var(--muted); }

ul.list { list-style: none; margin: 0; padding: 0; }
ul.list li { padding: 10px 0; border-top: 1px solid var(--rule); }
ul.list li:last-child { border-bottom: 1px solid var(--rule); }
.item-title { font-weight: 600; }
.item-note { display: block; color: var(--muted); font-size: 16px; }

/* Footer */
footer {
  margin-top: 72px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 14px;
  color: var(--muted);
}
footer .links { display: flex; gap: 18px; }
