:root {
  color-scheme: light;
  --paper: #faf8f2;
  --white: #fffef9;
  --ink: #202d26;
  --muted: #4e5b52;
  --forest: #173c36;
  --deep: #112e2a;
  --cream: #f4e9d2;
  --rust: #965032;
  --rule: #d8d4c6;
  --serif: Georgia, "Times New Roman", "Noto Serif CJK SC", "Songti SC", serif;
  --sans: system-ui, -apple-system, "Segoe UI", "Noto Sans CJK SC", "PingFang SC", sans-serif;
}
* { box-sizing: border-box; }
html { min-width: 0; scroll-padding-top: .85rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1.0625rem/1.65 var(--sans); }
:lang(zh) body { line-height: 1.8; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: #23574b; text-underline-offset: .22em; text-decoration-thickness: .08em; }
a:hover { color: var(--rust); }
a:focus-visible, button:focus-visible { outline: 3px solid #ab552f; outline-offset: 4px; }
button { font: inherit; }
[hidden] { display: none !important; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { color: var(--forest); font-family: var(--serif); line-height: 1.13; font-weight: 600; margin: 0 0 .72em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 5.5vw, 5rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.85rem, 3vw, 2.75rem); letter-spacing: -.023em; }
h3 { font-size: clamp(1.21rem, 2vw, 1.55rem); }
:lang(zh) h1, :lang(zh) h2 { letter-spacing: -.015em; line-height: 1.22; }
ul, ol { padding-inline-start: 1.45rem; }
li + li { margin-block-start: .5rem; }
figcaption { font-size: .83rem; line-height: 1.5; color: var(--muted); margin-top: .65rem; }
.wrap { width: min(100% - 4rem, 76rem); margin-inline: auto; }
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.compact { padding-block: 2.25rem; }
.skip-link { position: absolute; top: .5rem; left: .65rem; z-index: 5; padding: .6rem .9rem; background: var(--white); transform: translateY(-170%); }
.skip-link:focus { transform: none; }

.site-header { background: var(--white); }
.utility { min-height: 3.4rem; border-top: .24rem solid var(--forest); border-bottom: 1px solid var(--rule); }
.utility-inner, .header-inner, .footer-content { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.utility-inner { min-height: 3.4rem; }
.network-link { color: var(--forest); font-size: .85rem; font-weight: 650; }
.gcf-link { display: inline-flex; align-items: center; min-height: 44px; gap: .65rem; line-height: 1.25; color: var(--forest); text-decoration: none; }
.gcf-link img { width: 8.9rem; height: auto; }
.gcf-link span { padding-left: .65rem; border-left: 1px solid var(--rule); font-size: .83rem; font-weight: 700; }
.language-switch { display: flex; flex-shrink: 0; align-items: center; gap: .3rem; }
.language-switch a { min-height: 44px; min-width: 44px; display: inline-grid; place-items: center; padding: .32rem .64rem; text-decoration: none; font-size: .875rem; font-weight: 650; border-radius: .2rem; }
.language-switch [aria-current] { background: var(--forest); color: var(--white); }
.header-inner { min-height: 5.1rem; }
.brand { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .8rem; }
.brand-link { display: inline-flex; align-items: center; gap: .65rem; }
.brand-emblem { flex: none; width: clamp(2.6rem, 5vw, 3.25rem); height: auto; border-radius: 50%; }
.wordmark { color: var(--forest); font-family: var(--serif); font-size: clamp(1.65rem, 3vw, 2.15rem); font-weight: 700; letter-spacing: -.045em; line-height: 1.12; text-decoration: none; }
.brand-site { color: var(--rust); font-size: .86rem; line-height: 1.25; font-weight: 650; white-space: nowrap; }
.main-nav { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem clamp(.55rem, 2vw, 1.45rem); }
.main-nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; color: var(--forest); font-size: .94rem; font-weight: 650; text-decoration: none; }
.main-nav a:hover { text-decoration: underline; }
.main-nav a[aria-current]::after { position: absolute; content: ""; height: .14rem; background: var(--rust); left: 0; right: 0; bottom: .28rem; }

.home-hero { color: #f6f0e4; background: var(--deep); border-bottom: .25rem solid #c8986a; }
.home-grid { padding-block: clamp(2.3rem, 5.7vw, 5.35rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 5.7vw, 5.45rem); }
.home-hero h1 { color: var(--white); margin-bottom: .41em; }
.hero-copy > p { color: #f0ece2; }
.home-hero figcaption, .home-hero figcaption a { color: #f1ded0; }
.home-hero a:focus-visible { outline-color: #f9dcae; }
.delegation img { width: 100%; background: #d7c5a4; box-shadow: 0 .6rem 2rem #07181567; }
.actions, .inline-links { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.actions { margin-top: 1.35rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .64rem .98rem; border: 1px solid transparent; border-radius: .21rem; font-size: .92rem; font-weight: 700; line-height: 1.35; text-decoration: none; cursor: pointer; }
.button-light { color: #17352b; background: #f7dfb8; }
.button-light:hover { color: #17352b; background: #f3cf9f; }
.button-outline { color: var(--white); border-color: #c7c8ba; }
.button-outline:hover { color: #182e27; background: var(--white); }
.button-dark { color: #fffdf6; background: var(--forest); }
.button-dark:hover { background: #295748; color: #fffdf6; }
.button-border { color: var(--forest); border-color: #7e8c7f; background: transparent; }
.button-border:hover { background: #eef0e6; color: var(--forest); }

.sequence { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem 1.45rem; }
.sequence li { border-top: 2px solid #a97555; margin: 0; padding-top: .95rem; }
.sequence-date, .article-number { display: block; color: #854126; font-weight: 800; font-size: .9rem; line-height: 1.35; letter-spacing: .035em; margin-bottom: .6rem; }
.sequence h3 { margin-bottom: .48rem; }
.sequence h3 a { color: inherit; }
.sequence p { color: var(--muted); font-size: .99rem; }
.home-tribute, .civilization-statement { max-width: 58rem; }
.home-tribute { border-bottom: 1px solid var(--rule); padding-block: clamp(1.6rem, 4vw, 2.8rem); }
.tribute-quote { border-inline-start: .2rem solid #b37951; padding-inline-start: clamp(1rem, 3vw, 1.6rem); margin-bottom: .8rem; }
.tribute-quote blockquote { font: 1.4 clamp(1.12rem, 1.7vw, 1.4rem) var(--serif); margin: 0; max-width: 50ch; color: var(--forest); }
.civilization-heading { display: flex; align-items: center; gap: clamp(.85rem, 3vw, 1.45rem); margin-bottom: 1.2rem; }
.civilization-heading h2 { margin: 0; }
.civilization-heading img { flex-shrink: 0; width: clamp(3.2rem, 8vw, 4.9rem); border-radius: 50%; }
.civilization-statement > p { max-width: 73ch; }
.legacy-principles { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem 1.8rem; margin: 1.5rem 0; }
.legacy-principles > div { border-top: 1px solid var(--rule); padding-top: .7rem; }
.legacy-principles dt, .statement-byline { font-weight: 750; color: var(--forest); }
.legacy-principles dd { margin: .3rem 0 0; }
.governance-feature { margin-block: 1.5rem 2.25rem; padding: clamp(1.25rem, 4vw, 2.2rem); background: var(--forest); color: #fcf6e7; }
.governance-feature h3 { color: var(--white); font-size: clamp(1.55rem, 3.5vw, 2.25rem); }
.governance-feature p { max-width: 68ch; }
.governance-feature a:focus-visible { outline-color: #f9dcae; }
.partnership-banner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 1rem clamp(1rem, 3vw, 1.9rem); margin-top: clamp(1.5rem, 4vw, 2.5rem); padding: clamp(1rem, 3vw, 1.6rem); border: 1px solid var(--rule); background: var(--white); }
.partnership-banner img { width: 100%; }
.partnership-banner .feature-role { margin-bottom: .45rem; }
.partnership-banner h3 { font-size: clamp(1.45rem, 3vw, 2rem); }

.page-content { padding-block: clamp(2.1rem, 5vw, 4rem) clamp(2.5rem, 7vw, 5.25rem); }
.page-heading { border-bottom: 1px solid var(--rule); padding-bottom: clamp(1.05rem, 3vw, 2rem); margin-bottom: clamp(1.1rem, 3.5vw, 2.55rem); }
.page-heading h1 { max-width: 20ch; color: var(--forest); margin-bottom: .45em; }
.page-heading p { color: var(--muted); max-width: 66ch; font-size: clamp(1.06rem, 1.65vw, 1.25rem); }
.governance-page { max-width: 62rem; }
.governance-page .governance-subtitle { color: var(--forest); font-weight: 700; }
.governance-page > .section p { max-width: 74ch; }
.governance-exercise { margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.history-grid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(15rem, 1fr); gap: 2.25rem clamp(1.5rem, 5vw, 4rem); align-items: start; }
.history-aside { display: grid; gap: 2rem; }
.document-figure { max-width: 19rem; margin-inline: auto; text-align: center; }
.document-figure img { width: 100%; max-height: 27rem; object-fit: contain; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 6.55rem minmax(0,1fr); gap: .75rem; padding: 1.2rem 0; margin: 0; border-top: 1px solid var(--rule); }
.timeline .sequence-date { margin-top: .32rem; }
.timeline p { margin-bottom: .46rem; }
.mission-engraving { margin-top: 1rem; }
.mission-engraving img { width: 100%; }
.reading-link { font-size: .91rem; font-weight: 650; }
.note-panel { background: #f1ecdc; border-left: .21rem solid #a56e4b; padding: clamp(1.05rem, 2.5vw, 1.65rem); }
.note-panel h2 { font-size: clamp(1.4rem, 2.7vw, 2rem); }
.article-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.article { background: var(--white); padding: 1.35rem; }
.related { margin-top: 1.6rem; }

.principle-list { margin: 0; padding: 0; list-style: none; counter-reset: principles; }
.principle-list li { position: relative; display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); gap: .75rem 2rem; border-top: 1px solid var(--rule); margin: 0; padding: 1.45rem 0 1.45rem 3.2rem; counter-increment: principles; }
.principle-list li::before { content: counter(principles, decimal-leading-zero); color: #88472a; font-size: .95rem; font-weight: 800; position: absolute; left: 0; top: 1.44rem; }
.principle-list .example { align-self: center; margin: 0; padding: .75rem .95rem; background: #eeeadd; }
.example span { display: block; color: #793e28; font-size: .84rem; font-weight: 800; margin-bottom: .28rem; }
.first-panel { color: #fcf6e7; background: var(--forest); padding: clamp(1.25rem, 4vw, 2.4rem); }
.first-panel h2 { color: var(--white); }
.first-panel dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .9rem 1.4rem; margin-bottom: 0; }
.first-panel dl > div { border-top: 1px solid #9aab94; padding-top: .65rem; }
.first-panel dt { color: #f7d9ad; font-weight: 700; }
.first-panel dd, .worksheet dd { margin: .32rem 0 0; }

.print-actions { margin: 0 0 1.6rem; }
.learning-page { max-width: 61rem; }
.resource-planner-frame { display: block; width: 100%; height: 48rem; border: 1px solid var(--rule); }
.lesson-steps { list-style: none; padding: 0; margin: 0; }
.lesson-steps li { border-top: 1px solid var(--rule); padding: 1.13rem 0; margin: 0; display: grid; grid-template-columns: 5rem minmax(0,1fr); gap: 1rem; }
.lesson-time { color: #7e4029; font-weight: 750; font-size: .91rem; }
.worksheet dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .9rem 1rem; }
.worksheet dl > div { padding: 1rem; background: var(--white); border: 1px solid var(--rule); }
.worksheet dt { font-weight: 750; color: var(--forest); }
.worksheet textarea { display: block; width: 100%; padding: .6rem; border: 1px solid #858d81; font: inherit; color: var(--ink); background: var(--white); resize: vertical; }
.worksheet textarea:focus-visible { outline: 2px solid #ab552f; outline-offset: 2px; }
.worksheet-hint { color: var(--muted); }
.worksheet-print { display: none; }

.source-language { color: var(--muted); }
.source-group { padding-block: 1.25rem; }
.source-group > ul { padding: 0; margin: 0; list-style: none; }
.source-group li { border-top: 1px solid var(--rule); padding-top: .8rem; margin-top: .8rem; }
.source-group li h3 { margin: 0 0 .32rem; }
.corrections { margin-top: 1.55rem; }

.feature-section { border-bottom: 1px solid var(--rule); }
.feature-grid, .person-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 1.6rem clamp(1.75rem, 5vw, 4rem); align-items: center; }
.feature-grid img, .person-grid img { width: 100%; }
.feature-grid h2 { max-width: 23ch; }
.person-bio { align-items: start; grid-template-columns: minmax(0,1fr) minmax(12rem, 19rem); }
.person-bio figure img { max-width: 100%; }
.person-bio figure img.square { width: min(100%,225px); }
.china-links { display: flex; flex-wrap: wrap; gap: .6rem 1.05rem; padding-bottom: 1.15rem; border-bottom: 1px solid var(--rule); }
.essay { padding-block: 1.85rem; border-bottom: 1px solid var(--rule); }
.essay > p, .essay blockquote { max-width: 74ch; }
.feature-role { color: #824d35; font-weight: 750; font-size: .92rem; }
.essay blockquote { margin: 1.1rem 0; border-left: 3px solid #b37951; padding: .5rem 1rem; font-family: var(--serif); font-size: 1.3rem; }
.essay blockquote footer { color: var(--muted); font: .87rem/1.5 var(--sans); margin-top: .5rem; }
.founding-quotes { max-width: 54rem; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin-block: 1.45rem; }
.founding-quotes blockquote { margin: 0; padding: .9rem 1rem; background: var(--white); }
.essay-sources { display: flex; flex-wrap: wrap; gap: .55rem 1rem; padding: 0; margin: 1rem 0 0; list-style: none; font-size: .92rem; }
.essay-sources li { margin: 0; }
.contact-log { border-top: 1px solid var(--rule); padding-top: 1.35rem; }
.reading-path { margin-top: 1.75rem; }

.site-footer { border-top: 1px solid var(--rule); padding: 2.1rem 0; background: #eeeee3; }
.footer-content { align-items: start; }
.footer-content p { margin-top: .5rem; color: var(--muted); font-size: .94rem; }
.footer-content nav { display: flex; flex-wrap: wrap; gap: .42rem .9rem; justify-content: flex-end; max-width: 32rem; font-size: .9rem; }

@media (max-width: 940px) {
  .header-inner { min-height: auto; padding-block: .75rem; flex-wrap: wrap; gap: .4rem 1rem; }
  .main-nav { gap: .1rem 1rem; }
  .home-grid { gap: 1.65rem; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 2rem); }
  .home-grid, .history-grid, .feature-grid, .person-grid, .partnership-banner, .founding-quotes { grid-template-columns: minmax(0,1fr); }
  .home-grid { padding-block: 2.2rem; }
  .header-inner { padding-bottom: .5rem; }
  .header-inner .main-nav { width: 100%; }
  .sequence { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-content { align-items: flex-start; flex-direction: column; }
  .footer-content nav { justify-content: flex-start; }
  .history-aside { gap: 1.15rem; }
  .document-figure { margin-inline: 0; }
  .principle-list li { grid-template-columns: minmax(0,1fr); gap: .65rem; padding-left: 2.2rem; }
}
@media (max-width: 420px) {
  .wrap { width: calc(100% - 1.5rem); }
  .utility-inner { gap: .3rem; }
  .gcf-link img { width: min(8rem, 37vw); }
  .gcf-link span { padding-left: .4rem; font-size: .76rem; }
  .language-switch { gap: .05rem; }
  .language-switch a { padding-inline: .4rem; }
  .main-nav { column-gap: .85rem; }
  .article-grid, .worksheet dl, .first-panel dl, .legacy-principles { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: .24rem; }
  .timeline .sequence-date { margin: 0; }
}
@media print {
  :root { --forest: #151b18; --ink: #151b18; }
  body { background: white; font-size: 10pt; line-height: 1.38; }
  .site-header, .site-footer, .skip-link, .print-actions, .resource-planner { display: none !important; }
  .learning-page { width: 100%; max-width: unset; padding: 0; }
  .page-heading { margin: 0 0 .65rem; padding-bottom: .55rem; }
  .page-heading h1 { font-size: 24pt; max-width: none; }
  .page-heading p { font-size: 11pt; }
  .section.compact, .note-panel { background: white; padding: .65rem 0; }
  .note-panel { border: 0; margin-top: .4rem; }
  .lesson-steps li, .worksheet dl > div { break-inside: avoid; padding: .55rem; }
  .worksheet { break-before: page; }
  .worksheet dl { display: block; }
  .worksheet dl > div { margin-bottom: .4rem; background: white; }
  .worksheet textarea, .worksheet-hint { display: none; }
  .worksheet-print { display: block; white-space: pre-wrap; overflow-wrap: anywhere; }
  .worksheet-print:empty { min-height: 2.6rem; border-block-end: 1px solid #a5a096; }
  h2, h3 { break-after: avoid; }
  h2 { font-size: 17pt; }
  h3 { font-size: 13pt; }
}
.main-nav a[data-section-current]::after { position: absolute; content: ""; height: .14rem; background: var(--rust); left: 0; right: 0; bottom: .28rem; }
.person-bio section + section { margin-top: 1.65rem; }
.twain blockquote { font-size: clamp(1.4rem, 2.6vw, 2.15rem); max-width: 47ch; }
.qin-portrait img { width: 100%; }

.he-handshake { max-width: 24rem; margin: 1rem 0; }
.he-handshake > div { aspect-ratio: 6 / 5; overflow: hidden; }
.he-handshake img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
