:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --ink: #141413;
  --muted: #57554f;
  --subtle: #8c8980;
  --border: #e3e0d7;
  --accent: #141413;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, "Songti SC", "Noto Serif SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1012;
    --surface: #16181c;
    --ink: #efeee9;
    --muted: #a4a29a;
    --subtle: #6d6b64;
    --border: #25282e;
    --accent: #efeee9;
  }
}

* { box-sizing: border-box; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.75;
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.18s ease, opacity 0.18s ease;
}
a:hover {
  border-bottom-color: var(--ink);
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 28px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 36px 0 24px;
  border-bottom: 1px solid var(--border);
}

.brand {
  border: none;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.brand-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.brand-sub {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--subtle);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--subtle);
}
.lang-switch a {
  border: none;
  padding: 3px 8px;
  border-radius: 3px;
  color: var(--muted);
}
.lang-switch a.active {
  background: var(--ink);
  color: var(--bg);
}

main {
  flex: 1;
  padding: 72px 0 80px;
}

.grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
}

.rail {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--subtle);
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 8px;
}
.rail-label {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--subtle);
  margin-bottom: 6px;
  display: block;
}
.rail-value {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.5;
}
.rail-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.rail-links a {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--muted);
}
.rail-links a:hover { color: var(--ink); }

.editorial h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin: 0 0 32px;
}
html[lang="zh-CN"] .editorial h1 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.6vw, 2.45rem);
  line-height: 1.32;
  letter-spacing: -0.01em;
}

.editorial p.lead {
  font-size: 1.08rem;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 600px;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 44px 0;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--subtle);
  margin: 0 0 20px;
}

.focus-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 22px;
}
.focus-item strong {
  display: block;
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 4px;
}
.focus-item span {
  display: block;
  color: var(--muted);
  font-size: 0.94rem;
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.post-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.post-item:first-child { border-top: 1px solid var(--border); }
.post-title {
  font-family: var(--serif);
  font-size: 1.08rem;
  border: none;
}
.post-date {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--subtle);
  white-space: nowrap;
}

.quiet-note {
  font-size: 0.92rem;
  color: var(--subtle);
  margin: 0;
}

.article-body {
  max-width: 640px;
}
.article-body .prose {
  font-family: var(--serif);
  font-size: 1.06rem;
  line-height: 1.88;
}
html[lang="zh-CN"] .article-body .prose {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.92;
}
.article-body .prose p { margin: 0 0 1.4em; }

footer.foot {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--subtle);
}
.foot-links {
  display: flex;
  gap: 16px;
}
.foot-links a { border: none; color: var(--muted); }
.foot-links a:hover { color: var(--ink); }

@media (max-width: 760px) {
  main { padding: 44px 0 56px; }
  .grid { grid-template-columns: 1fr; gap: 36px; }
  .rail {
    order: 2;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}
