:root {
  color-scheme: light;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --ink: #17221c;
  --muted: #617067;
  --line: #dfe5df;
  --brand: #1e6244;
  --brand-soft: #e8f2ec;
  --accent: #b86831;
  --max: 860px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-serif, "Noto Serif SC", "Songti SC", Georgia, serif;
  font-size: 18px;
  line-height: 1.9;
}
a { color: var(--brand); text-underline-offset: .2em; }
a:hover { color: var(--accent); }
.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 30;
  padding: .55rem .8rem;
  background: var(--ink);
  color: #fff;
}
.skip-link:focus { top: .8rem; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 246, .94);
  backdrop-filter: blur(14px);
}
.header-inner {
  width: min(1180px, calc(100% - 2rem));
  min-height: 62px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.brand {
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.nav {
  display: flex;
  gap: .9rem;
  overflow-x: auto;
  scrollbar-width: thin;
  padding: .6rem 0;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .88rem;
}
.nav a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--brand); }
.layout {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, var(--max)) 220px;
  justify-content: center;
  gap: 3.5rem;
}
.article { min-width: 0; padding: 4.2rem 0 5rem; }
.eyebrow {
  margin: 0 0 .7rem;
  color: var(--brand);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1, h2, h3 {
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  line-height: 1.34;
  letter-spacing: -.02em;
  text-wrap: balance;
}
h1 { margin: 0; font-size: clamp(2.25rem, 6vw, 4.5rem); }
h2 { margin: 0 0 1rem; font-size: clamp(1.65rem, 4vw, 2.35rem); }
h3 { margin: 2rem 0 .55rem; font-size: 1.25rem; }
.summary { max-width: 42rem; margin: 1.25rem 0; color: var(--muted); font-size: 1.08rem; }
.meta {
  display: flex;
  gap: .65rem 1.2rem;
  flex-wrap: wrap;
  margin: 1.2rem 0 1.8rem;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .82rem;
}
.answer {
  margin: 1.4rem 0;
  padding: 1.1rem 1.25rem;
  border-left: 4px solid var(--brand);
  background: var(--brand-soft);
  font-weight: 700;
}
.section {
  scroll-margin-top: 86px;
  padding: 3.8rem 0;
  border-top: 1px solid var(--line);
}
.section:first-child { border-top: 0; padding-top: 0; }
.section p { margin: .9rem 0; }
.section ul, .section ol { padding-left: 1.5rem; }
.section li { margin: .5rem 0; }
.subsection { margin-top: 2rem; }
.inline-index {
  margin: 1.5rem 0;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.inline-index h3 { margin-top: 0; }
.source-panel {
  margin-top: 3rem;
  padding: 1.4rem;
  border-radius: 14px;
  background: #f1eee5;
}
.source-panel h2 { font-size: 1.45rem; }
.source-panel li { margin-bottom: .7rem; }
.source-note { display: block; color: var(--muted); font-size: .9rem; }
.side-toc {
  position: sticky;
  top: 92px;
  align-self: start;
  margin-top: 4.2rem;
  padding-left: 1.2rem;
  border-left: 1px solid var(--line);
  font-family: ui-sans-serif, system-ui, sans-serif;
}
.side-toc strong { display: block; margin-bottom: .6rem; font-size: .86rem; }
.side-toc a { display: block; padding: .34rem 0; color: var(--muted); font-size: .82rem; text-decoration: none; }
.side-toc a:hover { color: var(--brand); }
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1rem 3rem;
  color: var(--muted);
  text-align: center;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .82rem;
}
.site-footer p { margin: .25rem 0; }

@media (max-width: 900px) {
  .layout { display: block; width: min(var(--max), calc(100% - 2rem)); }
  .side-toc { display: none; }
  .article { padding-top: 3rem; }
}

@media (max-width: 640px) {
  body { font-size: 17px; line-height: 1.82; }
  .header-inner { display: block; padding-top: .65rem; }
  .brand { display: block; }
  .nav { gap: .8rem; padding-bottom: .7rem; }
  h1 { font-size: 2.2rem; }
  .section { padding: 3rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

