:root {
  color-scheme: light dark;
  --bg: #f5f7f4;
  --surface: #e8eee9;
  --text: #1c2622;
  --muted: #65716c;
  --line: #cfd8d2;
  --accent: #286b58;
  --accent-strong: #183f35;
  --on-accent: #f5fbf8;
  --radius: 14px;
  --shell: min(1180px, calc(100vw - 48px));
  --sans: "Aptos", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { display: block; width: 100%; height: auto; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 9px 14px;
  border-radius: 8px;
  background: var(--accent-strong);
  color: var(--on-accent);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  backdrop-filter: blur(16px);
}
.nav-wrap { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { font-family: var(--serif); font-size: 21px; font-weight: 700; letter-spacing: .08em; text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { color: var(--muted); font-size: 15px; text-decoration: none; transition: color .2s ease; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav .active { color: var(--accent); }
.menu-button { display: none; }

.hero {
  min-height: calc(100dvh - 72px);
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  align-items: center;
  gap: clamp(40px, 7vw, 100px);
  padding-block: 52px 64px;
}
.hero-copy { padding-bottom: 4vh; }
.kicker { margin: 0 0 16px; color: var(--accent); font-size: 14px; font-weight: 700; letter-spacing: .12em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.25; text-wrap: balance; }
h1 { margin: 0; font-size: clamp(44px, 6vw, 76px); letter-spacing: -.045em; }
.hero-intro { max-width: 28ch; margin: 26px 0 18px; color: var(--muted); font-size: 18px; }
.hero-media { margin: 0; }
.hero-media img { aspect-ratio: 4 / 5; height: min(69vh, 720px); object-fit: cover; border-radius: var(--radius); }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--accent-strong); font-weight: 700; text-decoration: none; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span, .text-link:focus-visible span { transform: translateX(4px); }

.section { padding-block: clamp(90px, 12vw, 150px); }
.section-heading { max-width: 620px; margin-bottom: 52px; }
.section-heading h2, .about h2 { margin: 0; font-size: clamp(34px, 4.5vw, 56px); letter-spacing: -.035em; }
.section-heading > p:last-child { max-width: 42ch; color: var(--muted); }
.story-grid { display: grid; grid-template-columns: 1.45fr .75fr; gap: clamp(44px, 7vw, 96px); }
.story-image { display: block; overflow: hidden; border-radius: var(--radius); }
.story-image img { aspect-ratio: 16 / 10; object-fit: cover; transition: transform .45s cubic-bezier(.16, 1, .3, 1); }
.story-image:hover img { transform: scale(1.018); }
.story-copy { max-width: 650px; padding-top: 26px; }
.meta { margin: 0 0 10px; color: var(--muted); font-size: 13px; letter-spacing: .04em; }
.story-copy h3, .compact-story h3 { margin: 0 0 12px; font-size: clamp(25px, 3vw, 38px); }
.story-copy h3 a, .compact-story h3 a { text-decoration: none; }
.story-copy > p:not(.meta), .compact-story > p:not(.meta) { color: var(--muted); }
.compact-story { padding: 8px 0 44px; }
.compact-story + .compact-story { padding-top: 44px; border-top: 1px solid var(--line); }
.compact-story h3 { font-size: 27px; }

.topics-section { background: var(--surface); }
.topic-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 10vw; align-items: end; }
.topic-layout .section-heading { margin: 0; }
.topic-index div { display: flex; align-items: baseline; justify-content: space-between; gap: 28px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.topic-index span { font-family: var(--serif); font-size: clamp(24px, 3vw, 34px); font-weight: 700; }
.topic-index strong { color: var(--accent); font-size: 14px; }

.about { display: grid; grid-template-columns: .75fr 1fr; gap: clamp(48px, 10vw, 130px); align-items: center; }
.about-image img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.about-copy { max-width: 620px; }
.about-copy p:not(.kicker) { color: var(--muted); }
.about-copy h2 { margin-bottom: 28px; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 110px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 14px; }
.footer-inner a { text-decoration: none; }

.article-main { width: min(760px, calc(100vw - 48px)); margin: 0 auto; padding: 88px 0 120px; }
.article-header { margin-bottom: 48px; }
.article-header h1 { margin: 10px 0 24px; font-size: clamp(42px, 7vw, 68px); }
.article-deck { color: var(--muted); font-size: 20px; }
.article-hero { width: min(1060px, calc(100vw - 48px)); margin: 0 auto; }
.article-hero img { max-height: 680px; object-fit: cover; border-radius: var(--radius); }
.prose { padding-top: 64px; font-family: var(--serif); font-size: 18px; line-height: 2; }
.prose h2 { margin: 2.2em 0 .75em; font-size: 31px; }
.prose p { margin: 0 0 1.5em; }
.prose blockquote { margin: 2.5em 0; padding-left: 24px; border-left: 3px solid var(--accent); color: var(--muted); font-size: 21px; }
.article-back { margin-top: 60px; padding-top: 28px; border-top: 1px solid var(--line); }
.not-found { min-height: calc(100dvh - 182px); display: grid; place-items: center; text-align: center; }
.not-found h1 { font-size: clamp(52px, 12vw, 120px); }
.not-found p { color: var(--muted); }

.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.16, 1, .3, 1); }
  .js .reveal.visible { opacity: 1; transform: translateY(0); }
  .js .reveal-delay { transition-delay: .12s; }
}
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 70%, white); outline-offset: 4px; }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111815;
    --surface: #18231f;
    --text: #edf3ef;
    --muted: #a7b5ae;
    --line: #33423b;
    --accent: #72bca2;
    --accent-strong: #9cd1bd;
    --on-accent: #102019;
  }
}

@media (max-width: 760px) {
  :root { --shell: calc(100vw - 32px); }
  body { font-size: 16px; }
  .nav-wrap { min-height: 64px; }
  .menu-button { display: block; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--text); padding: 8px 11px; font: inherit; font-size: 14px; }
  .site-nav { display: none; position: absolute; top: 64px; left: 16px; right: 16px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 11px 12px; }
  .hero { grid-template-columns: 1fr; gap: 30px; min-height: auto; padding-block: 52px 80px; }
  .hero-copy { padding: 0; }
  h1 { font-size: clamp(40px, 12vw, 58px); }
  .hero-media img { height: auto; aspect-ratio: 4 / 3; }
  .section { padding-block: 82px; }
  .section-heading { margin-bottom: 34px; }
  .story-grid, .topic-layout, .about { grid-template-columns: 1fr; gap: 52px; }
  .story-list { padding-top: 6px; }
  .compact-story { padding-bottom: 36px; }
  .compact-story + .compact-story { padding-top: 36px; }
  .topic-index span { font-size: 25px; }
  .about-image { width: 78%; }
  .footer-inner { min-height: 130px; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px; }
  .footer-inner p { margin: 0; }
  .article-main { padding-top: 60px; }
  .article-hero { width: 100%; }
  .article-hero img { border-radius: 0; }
  .prose { padding-top: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
