:root {
  --paper: #f4efe6;
  --paper-deep: #ebe1d2;
  --ink: #203334;
  --muted: #65716e;
  --teal: #2f6a69;
  --teal-dark: #1f4f50;
  --orange: #c86f49;
  --gold: #d5a354;
  --line: rgba(32, 51, 52, 0.15);
  --white: #fffdf8;
}

@theme inline {
  --color-background: var(--paper);
  --color-foreground: var(--ink);
  --font-sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(circle at 12% 8%, rgba(200,111,73,.08), transparent 25rem), radial-gradient(circle at 90% 22%, rgba(47,106,105,.08), transparent 28rem), var(--paper);
  color: var(--ink);
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.75;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: rgba(200,111,73,.24); }

.site-shell { min-height: 100vh; overflow: hidden; }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(244,239,230,.9); backdrop-filter: blur(16px); }
.header-inner, .content-wrap, .footer-inner { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.header-inner { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.04em; white-space: nowrap; }
.brand-mark { position: relative; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--teal); border-radius: 50% 45% 52% 42%; color: var(--teal); font-family: Georgia, serif; font-size: 23px; transform: rotate(-7deg); }
.brand-mark::after { position: absolute; right: -5px; bottom: 2px; width: 8px; height: 8px; border-right: 1px solid var(--orange); border-bottom: 1px solid var(--orange); content: ''; transform: rotate(25deg); }
.brand-copy small { display: block; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .14em; line-height: 1.2; }
.brand-copy span { display: block; font-family: Georgia, 'Songti SC', serif; font-size: 19px; line-height: 1.3; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { border-radius: 999px; color: var(--muted); font-size: 13px; padding: 8px 12px; transition: background 160ms ease, color 160ms ease; }
.site-nav a:hover, .site-nav a:focus-visible { background: rgba(47,106,105,.1); color: var(--teal-dark); outline: none; }
.header-cta, .button-primary { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: var(--teal); color: white; cursor: pointer; font-size: 13px; font-weight: 700; padding: 11px 18px; transition: background 160ms ease, transform 160ms ease; }
.header-cta:hover, .button-primary:hover, .header-cta:focus-visible, .button-primary:focus-visible { background: var(--teal-dark); outline: 3px solid rgba(47,106,105,.23); outline-offset: 2px; transform: translateY(-1px); }
.button-secondary { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 13px; font-weight: 700; padding: 10px 17px; transition: border 160ms ease, background 160ms ease; }
.button-secondary:hover, .button-secondary:focus-visible { border-color: rgba(47,106,105,.38); background: rgba(255,253,248,.7); outline: none; }

.hero { position: relative; padding: 86px 0 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(320px,.95fr); align-items: center; gap: 72px; }
.eyebrow, .section-kicker { color: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero h1, .page-intro h1 { max-width: 760px; margin: 18px 0 20px; font-family: Georgia, 'Songti SC', 'SimSun', serif; font-size: clamp(42px,6vw,76px); font-weight: 500; letter-spacing: -.075em; line-height: 1.08; }
.hero h1 em { position: relative; color: var(--teal); font-style: normal; white-space: nowrap; }
.hero h1 em::after { position: absolute; bottom: -8px; left: 2%; width: 96%; height: 7px; border-top: 2px solid var(--orange); border-radius: 50%; content: ''; transform: rotate(-2deg); }
.hero-lede, .page-intro p { max-width: 600px; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { display: flex; gap: 10px; margin-top: 28px; color: var(--muted); font-size: 12px; }
.hero-note::before { width: 22px; height: 1px; margin-top: 12px; background: var(--orange); content: ''; flex: 0 0 auto; }
.story-card { position: relative; min-height: 390px; padding: 40px; border: 1px solid rgba(47,106,105,.18); border-radius: 48% 12% 42% 15%; background: var(--teal); box-shadow: 18px 20px 0 rgba(213,163,84,.35); color: white; transform: rotate(2deg); }
.story-card::before, .story-card::after { position: absolute; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; content: ''; }
.story-card::before { top: 22px; right: 26px; width: 76px; height: 76px; }
.story-card::after { right: 48px; bottom: 40px; width: 18px; height: 18px; background: var(--gold); border: 0; }
.story-card > * { transform: rotate(-2deg); }
.story-card .card-mark { display: block; color: #f6cf8d; font-family: Georgia, serif; font-size: 72px; line-height: .7; }
.story-card h2 { max-width: 340px; margin: 34px 0 18px; font-family: Georgia, 'Songti SC', serif; font-size: 29px; font-weight: 500; line-height: 1.35; }
.story-card p { max-width: 330px; color: rgba(255,255,255,.78); font-size: 14px; }
.story-card .card-caption { position: absolute; bottom: 37px; left: 40px; color: rgba(255,255,255,.64); font-size: 11px; letter-spacing: .1em; }

.section { padding: 76px 0; }
.section-tinted { position: relative; background: rgba(235,225,210,.52); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-heading h2, .page-intro h2 { margin: 10px 0 0; font-family: Georgia, 'Songti SC', serif; font-size: clamp(30px,4vw,48px); font-weight: 500; letter-spacing: -.06em; line-height: 1.2; }
.section-heading p { max-width: 410px; margin: 0; color: var(--muted); font-size: 14px; }
.path-grid, .concept-grid, .resource-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.path-card, .concept-card, .resource-card, .content-card { border: 1px solid var(--line); border-radius: 22px; background: rgba(255,253,248,.72); padding: 25px; }
.path-card { min-height: 220px; transition: border 160ms ease, transform 160ms ease, box-shadow 160ms ease; }
.path-card:hover { border-color: rgba(47,106,105,.38); box-shadow: 0 12px 28px rgba(32,51,52,.07); transform: translateY(-3px); }
.number-stamp { display: inline-grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; background: rgba(200,111,73,.12); color: var(--orange); font-family: Georgia, serif; font-size: 16px; }
.path-card h3, .concept-card h3, .resource-card h3, .content-card h3 { margin: 20px 0 8px; font-size: 17px; letter-spacing: -.03em; }
.path-card p, .concept-card p, .resource-card p, .content-card p { margin: 0; color: var(--muted); font-size: 14px; }
.card-link { display: inline-flex; margin-top: 18px; color: var(--teal); font-size: 13px; font-weight: 800; }
.card-link::after { margin-left: 8px; content: '↗'; }
.home-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote-card { padding: 34px; border-radius: 24px; background: var(--orange); color: white; }
.quote-card blockquote { margin: 0; font-family: Georgia, 'Songti SC', serif; font-size: 26px; line-height: 1.5; }
.quote-card cite { display: block; margin-top: 22px; color: rgba(255,255,255,.75); font-size: 12px; font-style: normal; }
.boundary-card { padding: 34px; border: 1px dashed rgba(47,106,105,.35); border-radius: 24px; background: rgba(255,253,248,.55); }
.boundary-card h3 { margin: 0 0 10px; font-size: 17px; }
.boundary-card p { margin: 0; color: var(--muted); font-size: 14px; }

.footer { border-top: 1px solid var(--line); padding: 32px 0 46px; }
.footer-inner { display: flex; align-items: start; justify-content: space-between; gap: 30px; }
.footer p { max-width: 420px; margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: end; gap: 10px 18px; color: var(--muted); font-size: 12px; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--teal); outline: none; }

.page-intro { padding: 72px 0 42px; }
.page-intro h1 { max-width: 740px; font-size: clamp(42px,6vw,68px); }
.page-intro .intro-tag { display: inline-flex; border-radius: 999px; background: rgba(47,106,105,.1); color: var(--teal-dark); font-size: 12px; font-weight: 800; padding: 6px 11px; }
.article-layout { display: grid; grid-template-columns: minmax(0,1fr) 280px; align-items: start; gap: 30px; padding-bottom: 88px; }
.article-main { display: grid; gap: 16px; }
.content-card h2 { margin: 0 0 14px; font-family: Georgia, 'Songti SC', serif; font-size: 28px; font-weight: 500; line-height: 1.3; }
.content-card h4 { margin: 22px 0 6px; color: var(--teal-dark); font-size: 15px; }
.content-card ul, .content-card ol { margin: 12px 0 0; padding-left: 22px; color: var(--muted); font-size: 14px; }
.content-card li + li { margin-top: 8px; }
.aside-card { position: sticky; top: 100px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,253,248,.6); padding: 22px; }
.aside-card h3 { margin: 0 0 12px; font-size: 15px; }
.aside-card p, .aside-card li { color: var(--muted); font-size: 13px; }
.aside-card ul { margin: 0; padding-left: 18px; }
.checklist { display: grid; gap: 9px; margin-top: 16px; }
.check-item { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); cursor: pointer; font-size: 13px; }
.check-item input { accent-color: var(--teal); margin-top: 5px; }
.check-progress { color: var(--teal); font-size: 12px; font-weight: 800; }
.practice-grid, .case-grid, .glossary-grid { display: grid; gap: 16px; }
.practice-step { display: grid; grid-template-columns: 58px 1fr; gap: 18px; padding: 25px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,253,248,.72); }
.practice-step .step-index { display: grid; width: 47px; height: 47px; place-items: center; border-radius: 16px 50% 16px 50%; background: var(--teal); color: white; font-family: Georgia, serif; font-size: 21px; }
.practice-step h3 { margin: 0 0 6px; font-size: 18px; }
.practice-step p { margin: 0; color: var(--muted); font-size: 14px; }
.question-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.question-chip { display: inline-flex; border-radius: 999px; background: rgba(200,111,73,.1); color: #8c4d34; font-size: 12px; padding: 6px 10px; }
.case-card { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,253,248,.72); }
.case-card-header { padding: 25px 25px 20px; background: rgba(47,106,105,.09); }
.case-card-header h2 { margin: 10px 0 6px; font-family: Georgia, 'Songti SC', serif; font-size: 26px; font-weight: 500; }
.case-card-header p, .case-card-body p { margin: 0; color: var(--muted); font-size: 14px; }
.case-card-body { padding: 25px; }
.case-card-body h3 { margin: 0 0 9px; font-size: 15px; }
.case-card-body details { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 17px; }
.case-card-body summary { color: var(--teal); cursor: pointer; font-size: 13px; font-weight: 800; }
.case-card-body details p { margin-top: 12px; }
.search-box { width: 100%; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,253,248,.8); color: var(--ink); padding: 13px 18px; outline: none; }
.search-box:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(47,106,105,.12); }
.search-result-count { margin: 12px 0 18px; color: var(--muted); font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.glossary-card { border: 1px solid var(--line); border-radius: 18px; background: rgba(255,253,248,.7); padding: 22px; }
.glossary-card h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 0 0 8px; font-size: 17px; }
.glossary-card h2 span { color: var(--orange); font-family: Georgia, serif; font-size: 13px; font-weight: 500; }
.glossary-card p { margin: 0; color: var(--muted); font-size: 14px; }
.source-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.source-list a { display: block; border-bottom: 1px solid var(--line); padding: 12px 0; color: var(--teal); font-size: 14px; font-weight: 800; }
.source-list a:hover, .source-list a:focus-visible { color: var(--orange); outline: none; }
.source-list span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 400; }
.notice { border-left: 3px solid var(--orange); background: rgba(200,111,73,.08); color: #704532; padding: 15px 18px; font-size: 13px; }

@media (max-width: 860px) {
  .site-nav a { padding: 7px 8px; font-size: 12px; }
  .header-cta { display: none; }
  .hero-grid, .article-layout { grid-template-columns: 1fr; }
  .hero-grid { gap: 48px; }
  .aside-card { position: static; }
  .path-grid, .concept-grid, .resource-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
  .header-inner, .content-wrap, .footer-inner { width: min(100% - 28px, 1160px); }
  .header-inner { min-height: 70px; }
  .brand-copy span { font-size: 17px; }
  .brand-copy small { display: none; }
  .site-nav { max-width: 55vw; gap: 1px; overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { flex: 0 0 auto; padding: 7px 8px; font-size: 11px; }
  .hero { padding: 58px 0 54px; }
  .hero h1, .page-intro h1 { font-size: 43px; }
  .hero-lede, .page-intro p { font-size: 15px; }
  .story-card { min-height: 320px; padding: 30px; border-radius: 38% 12% 35% 14%; }
  .story-card h2 { margin-top: 28px; font-size: 24px; }
  .section, .page-intro { padding: 54px 0; }
  .section-heading, .footer-inner { align-items: start; flex-direction: column; }
  .path-grid, .concept-grid, .resource-grid, .home-bottom { grid-template-columns: 1fr; }
  .practice-step { grid-template-columns: 1fr; }
  .footer-links { justify-content: start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
