:root {
  color-scheme: light;
  --paper: #f8f5ed;
  --surface: #fffdf7;
  --ink: #262820;
  --muted: #5e6256;
  --green: #24483e;
  --green-light: #e6eee6;
  --red: #9b3c2b;
  --line: #dedbd0;
  --serif: Georgia, 'Songti SC', 'Noto Serif CJK SC', SimSun, serif;
  font: 16px/1.6 system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.12; font-weight: 500; }
.wrap { width: min(100% - 48px, 1200px); margin-inline: auto; }
.skip { position: absolute; top: -100px; left: 12px; z-index: 2; background: var(--surface); padding: 8px 14px; }
.skip:focus { top: 12px; }

.topbar { border-bottom: 1px solid var(--line); background: var(--surface); }
.topbar-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font: 600 1.25rem var(--serif); text-decoration: none; }
.seal { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: var(--red); color: var(--surface); font-size: 1.35rem; }
.topbar nav { display: flex; gap: clamp(12px, 3vw, 32px); }
.topbar nav a { text-decoration: none; padding-block: 8px; font-size: .9rem; color: var(--muted); }
.topbar nav a[aria-current], .topbar nav a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 6px; }

.hero, .article-hero { background: #ede8d9; border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(30px, 5vw, 78px); align-items: center; padding-block: clamp(48px, 7vw, 100px); }
.eyebrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: .76rem; font-weight: 700; letter-spacing: .11em; color: var(--green); }
.eyebrow [lang] { font-family: var(--serif); letter-spacing: .13em; color: var(--red); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
h1 { font-size: clamp(2.9rem, 6.4vw, 6.15rem); letter-spacing: -.06em; color: var(--green); margin-block: 18px; }
.lede { font-size: clamp(1rem, 1.7vw, 1.2rem); max-width: 40rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 10px 16px; border: 1px solid var(--green); border-radius: 5px; background: var(--green); color: #fff; font-size: .9rem; font-weight: 650; text-decoration: none; }
.button:hover { background: #16352c; }
.button.secondary { background: transparent; color: var(--green); }
.button.secondary:hover { background: var(--green-light); }
.hero-feature { padding: 8px; border: 1px solid #cfc8b8; background: var(--surface); box-shadow: 0 12px 28px #26282019; }
.hero-feature img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; background: #d8c8a9; }
.hero-feature figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; padding: 12px 8px 4px; }
.hero-feature figcaption > span { font-size: .7rem; font-weight: 700; letter-spacing: .13em; color: var(--muted); }
.hero-feature figcaption a { font: 600 1rem var(--serif); color: var(--green); text-decoration: none; }

.directory { padding-block: 54px 80px; }
.section-intro h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin: 9px 0; }
.section-intro > p:last-child { color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pills a { display: block; border: 1px solid var(--line); border-radius: 99px; padding: 7px 13px; background: var(--surface); color: var(--green); text-decoration: none; font-size: .86rem; }
.pills a:hover { background: var(--green-light); border-color: var(--green); }
.group { margin-top: 44px; scroll-margin-top: 18px; }
.group-heading { display: flex; align-items: baseline; gap: 10px 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding: 20px 0 18px; }
.group-index { color: var(--red); font-size: .8rem; font-weight: 750; letter-spacing: .1em; }
.group-heading h2 { font-size: clamp(1.55rem, 2.7vw, 2.25rem); }
.group-zh { color: var(--muted); font: .9rem var(--serif); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.card:focus-within { border-color: var(--green); }
.card-image { display: block; background: #e6ddc8; }
.card-image:focus-visible { outline-offset: -4px; }
.card-image img { width: 100%; aspect-ratio: 2.08 / 1; object-fit: cover; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 18px; }
.card-zh { color: var(--red); font: .85rem/1.5 var(--serif); }
.card h3 { font-size: 1.45rem; margin-block: 5px 9px; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.summary { font-size: .91rem; color: var(--muted); margin-bottom: 18px; }
.card-links { display: flex; flex-wrap: wrap; gap: 10px 17px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: .84rem; font-weight: 650; color: var(--green); }
.card-links a { text-decoration: none; }
.card-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

.article-hero { padding-block: clamp(42px, 7vw, 84px); }
.article-hero h1 { max-width: 14ch; }
.reading-layout { display: grid; grid-template-columns: minmax(200px, 270px) minmax(0, 1fr); gap: clamp(26px, 5vw, 76px); align-items: start; padding-block: 44px 80px; }
.contents { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow: auto; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.contents h2 { font-size: 1.3rem; }
.contents ol { margin: 10px 0 0; padding-left: 24px; font-size: .88rem; }
.contents li + li { margin-top: 4px; }
.contents a { text-decoration: none; color: var(--green); }
.contents a:hover { text-decoration: underline; }
.guide { max-width: 72ch; padding: 28px 0 34px; scroll-margin-top: 20px; border-bottom: 1px solid var(--line); }
.guide:first-child { padding-top: 0; }
.guide h2 { font-size: clamp(1.65rem, 4vw, 2.55rem); margin-block: 9px 14px; color: var(--green); }
.guide-lede { color: var(--muted); font-size: 1.08rem; }
.guide section { margin-top: 18px; }
.guide h3 { font-size: 1.3rem; margin-bottom: 6px; }
.guide section p + p { margin-top: 8px; }
.guide-link { display: inline-block; margin-top: 18px; color: var(--green); text-underline-offset: 4px; font-weight: 650; }
.guide-link + .guide-link { margin-left: 18px; }
footer { background: var(--green); color: #fff; padding-block: 16px; }
.footer-inner { justify-content: flex-start; min-height: 54px; }
.footer-inner div { margin-right: auto; }
.footer-inner span { display: block; color: #d4e1d7; font-size: .78rem; }
.footer-inner a { font-size: .88rem; text-underline-offset: 4px; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-feature { max-width: 660px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reading-layout { grid-template-columns: 1fr; gap: 32px; }
  .contents { position: static; max-height: none; }
  .contents ol { columns: 2; column-gap: 40px; }
  .contents li { break-inside: avoid; }
}

@media (max-width: 520px) {
  .wrap { width: calc(100% - 30px); }
  .topbar-inner { gap: 10px; min-height: 64px; }
  .brand { font-size: 1.02rem; gap: 7px; }
  .seal { width: 30px; height: 30px; font-size: 1rem; }
  .topbar nav { gap: 10px; }
  .topbar nav a { font-size: .8rem; }
  .grid { grid-template-columns: 1fr; }
  .directory { padding-block: 38px 54px; }
  .guide-link + .guide-link { display: block; margin-left: 0; }
}
