@font-face {
  font-family: 'Wanguo Display';
  src: url('./public/fonts/noto-serif-sc-headings.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #faf9f5;
  --ink: #192f27;
  --muted: #56635a;
  --forest: #1b382e;
  --gold: #e5c28a;
  --line: #dedfd6;
  --serif: 'Wanguo Display', 'Noto Serif CJK SC', 'Songti SC', 'STSong', SimSun, serif;
  --sans: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid #a97732; outline-offset: 5px; }
::selection { background: var(--gold); color: var(--ink); }

.shell { width: min(100% - 112px, 1240px); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { position: fixed; z-index: 10; inset: 12px auto auto 12px; padding: 12px 20px; background: white; }

.site-header { position: sticky; z-index: 5; top: 0; background: var(--paper); border-bottom: 1px solid #23392a12; }
.header-inner { min-height: 84px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; justify-self: start; gap: 12px; white-space: nowrap; }
.brand-mark { flex: none; width: 43px; height: 43px; object-fit: contain; }
.brand-text { display: grid; gap: 5px; }
.brand-text strong { font-size: 22px; font-weight: 750; line-height: 1.05; letter-spacing: .09em; }
.brand-text small { font-size: 8px; font-weight: 650; line-height: 1; letter-spacing: .12em; }
.navigation { display: flex; align-items: center; gap: clamp(25px, 3.3vw, 49px); }
.navigation a { position: relative; padding-block: 16px; color: #4d5c52; font-size: 14px; white-space: nowrap; transition: color .18s; }
.navigation a:is(:hover, [aria-current]) { color: var(--ink); }
.navigation a[aria-current] { font-weight: 650; }
.navigation a[aria-current]::after { content: ''; position: absolute; inset: auto 0 5px; height: 1px; background: #aa8046; }
.header-action { justify-self: end; padding: 11px 16px; border: 1px solid #aeb8ad; background: transparent; color: var(--forest); font-size: 13px; white-space: nowrap; cursor: pointer; transition: color .2s, background .2s, border-color .2s; }
.header-action:hover { color: white; background: var(--forest); border-color: var(--forest); }
.header-action span { margin-left: 7px; }
.menu-toggle { display: none; }

.hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(580px, 75svh, 780px); overflow: hidden; background: #284339; color: white; }
.hero-image, .hero::after { position: absolute; z-index: -1; inset: 0; }
.hero-image { object-position: center 55%; }
.hero::after { content: ''; background: linear-gradient(90deg, #101e18ec 0%, #12221ac2 26%, #17282069 57%, #17282014 100%), linear-gradient(0deg, #0b191a59, transparent 33%); }
.hero-inner { position: relative; align-self: stretch; display: grid; align-items: center; padding-block: 64px 92px; }
.hero-copy { max-width: 660px; }
.hero-kicker { display: flex; align-items: center; gap: 12px; color: #f4d6a6; font-size: 14px; font-weight: 550; letter-spacing: .18em; }
.hero-kicker span { width: 14px; height: 1px; background: currentColor; opacity: .8; }
.hero h1 { margin: 21px 0 23px; font: 700 clamp(60px, 6.15vw, 98px)/1.15 var(--serif); letter-spacing: .025em; }
.hero-description { color: #f6f6ed; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.9; letter-spacing: .04em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 25px; margin-top: 35px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 52px; padding: 11px 20px; font-size: 14px; font-weight: 650; transition: background .2s; }
.button span { font-size: 19px; line-height: 1; }
.button-gold { background: var(--gold); color: #172a22; }
.button-gold:hover { background: #f3d6a9; }
.hero-secondary { display: inline-flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #ffffff6e; color: white; font-size: 14px; transition: border-color .2s; }
.hero-secondary:hover { border-color: white; }
.hero-bottom { position: absolute; inset: auto 0 30px; display: flex; align-items: end; justify-content: space-between; }
.hero-credit { padding-block: 4px; color: #f3f1ea; font-size: 11px; letter-spacing: .05em; }
.hero-credit:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero-scroll { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid #ffffff8c; border-radius: 50%; color: white; font-size: 22px; transition: background .2s; }
.hero-scroll:hover { background: #ffffff36; }

.section { padding-block: clamp(65px, 7vw, 112px); }
.section-header { display: grid; grid-template-columns: 1fr minmax(245px, 340px); align-items: end; gap: 30px; margin-bottom: 38px; }
.section-header > p { color: var(--muted); font-size: 15px; line-height: 1.9; padding-bottom: 3px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: #78582f; font-size: 13px; font-weight: 650; letter-spacing: .16em; }
.eyebrow::before { content: ''; width: 20px; height: 1px; background: #a7824b; }
h2 { font: 700 clamp(35px, 4vw, 58px)/1.21 var(--serif); letter-spacing: .02em; }
.program-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.program-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); }
.program-photo { aspect-ratio: 1.53; overflow: hidden; background: #dee4db; }
.program-photo img { transition: transform .35s; }
.program-card:hover img { transform: scale(1.045); }
.program-body { display: flex; flex-direction: column; align-items: start; flex: 1; padding: 23px 24px 26px; }
.program-body h3 { margin-bottom: 9px; font: 700 clamp(21px, 2.15vw, 26px)/1.35 var(--serif); }
.program-body p { flex: 1; margin-bottom: 17px; color: var(--muted); font-size: 14px; line-height: 1.85; }
.text-link { display: inline-flex; align-items: center; gap: 9px; padding: 4px 0; border: 0; border-bottom: 1px solid transparent; background: transparent; color: var(--forest); font-size: 14px; font-weight: 650; cursor: pointer; transition: border-color .2s; }
.text-link:hover { border-color: currentColor; }
.text-link span { font-size: 16px; }
.program-family { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 28px; margin-top: 35px; padding-top: 23px; border-top: 1px solid var(--line); }
.program-family h3 { color: var(--muted); font-size: 13px; font-weight: 650; }
.program-family ul { display: flex; flex-wrap: wrap; gap: 9px 28px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.program-family a { color: #765322; font-weight: 650; }
.program-family a:hover { text-decoration: underline; text-underline-offset: 4px; }

.about { padding-block: clamp(54px, 6vw, 94px); background: var(--forest); color: #f8f7ee; }
.about-inner { display: grid; grid-template-columns: 1.16fr 1fr; gap: clamp(42px, 7.5vw, 105px); align-items: center; }
.about-photo { position: relative; aspect-ratio: 1.48; margin: 0; overflow: hidden; background: #577367; }
.about-photo img { object-position: 50% 55%; }
.about-photo figcaption { position: absolute; inset: auto 0 0; padding: 25px 14px 11px; background: linear-gradient(transparent, #101917db); color: white; font-size: 12px; }
.about-copy { max-width: 435px; }
.about-copy h2 { margin-bottom: 23px; }
.about-copy .eyebrow, .about-copy .text-link { color: var(--gold); }
.about-copy p:not(.eyebrow) { margin-bottom: 16px; color: #dce4db; font-size: 15px; line-height: 1.95; }
.about-copy .text-link { margin-top: 7px; }

.insight-list { border-top: 1px solid #a6b0a6; }
.insight-row { display: grid; grid-template-columns: 125px 1fr auto; align-items: center; gap: 20px; width: 100%; min-height: 88px; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.insight-category { color: var(--muted); font-size: 13px; }
.insight-name { font-size: clamp(16px, 1.6vw, 22px); font-weight: 650; }
.insight-arrow { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #b7bfb3; border-radius: 50%; font-size: 17px; transition: background .2s, border-color .2s, color .2s; }
.insight-row:hover .insight-arrow { border-color: var(--forest); background: var(--forest); color: white; }

.site-footer { padding-block: 41px 19px; background: #122b23; color: #f3f4ed; }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding-bottom: 31px; }
.site-footer nav { display: flex; gap: 25px; font-size: 13px; }
.site-footer nav button { padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }
.site-footer nav :is(a, button):hover, .back-top:hover { text-decoration: underline; text-underline-offset: 4px; }
.back-top { justify-self: end; font-size: 13px; white-space: nowrap; }
.back-top span { margin-left: 5px; color: var(--gold); }
.footer-bottom { padding-top: 17px; border-top: 1px solid #ffffff29; color: #c5d1c7; }
.footer-bottom small { font-size: 12px; }

.article-dialog { width: min(100% - 32px, 680px); max-height: min(86svh, 760px); padding: 0; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.article-dialog::backdrop { background: #10251ec9; }
.article-inner { position: relative; padding: clamp(25px, 6vw, 51px); }
.article-inner > .eyebrow { padding-right: 38px; }
.article-dialog h2 { margin-bottom: 24px; font-size: clamp(27px, 5vw, 42px); }
.dialog-close { position: absolute; top: 16px; right: 16px; display: grid; width: 35px; height: 35px; place-items: center; border: 1px solid #bcc6bb; border-radius: 50%; background: transparent; color: var(--forest); font-size: 24px; line-height: 1; cursor: pointer; }
.dialog-close:hover { background: var(--forest); color: white; }
.article-body { display: grid; gap: 14px; color: var(--muted); font-size: 15px; line-height: 1.9; }
.article-body .text-link { justify-self: start; }
.wechat-dialog { width: min(100% - 32px, 450px); text-align: center; }
.wechat-dialog h2 { padding-inline: 12px; font-size: clamp(26px, 6vw, 34px); }
.wechat-code { width: min(100%, 220px); height: auto; margin: 0 auto 17px; }
.wechat-dialog p { margin-bottom: 7px; color: var(--muted); font-size: 14px; }
body:has(.article-dialog[open]) { overflow: hidden; }

@media (max-width: 1000px) {
  .shell { width: calc(100% - 72px); }
  .header-inner { gap: 18px; }
  .navigation { gap: 24px; }
  .program-body { padding-inline: 17px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 75px; }
  .shell { width: calc(100% - 42px); }
  .header-inner { min-height: 68px; grid-template-columns: 1fr auto; gap: 0; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-text strong { font-size: 20px; }
  .header-action { display: none; }
  .js .menu-toggle { display: grid; place-items: center; width: 43px; height: 42px; border: 1px solid #b9c1b7; background: transparent; color: var(--forest); cursor: pointer; }
  .menu-lines, .menu-lines::before, .menu-lines::after { display: block; width: 18px; height: 1px; background: currentColor; }
  .menu-lines { position: relative; }
  .menu-lines::before, .menu-lines::after { content: ''; position: absolute; top: -5px; }
  .menu-lines::after { top: 5px; }
  .menu-toggle[aria-expanded='true'] .menu-lines { background: transparent; }
  .menu-toggle[aria-expanded='true'] .menu-lines::before { top: 0; transform: rotate(45deg); }
  .menu-toggle[aria-expanded='true'] .menu-lines::after { top: 0; transform: rotate(-45deg); }
  .navigation { grid-column: 1 / -1; flex-wrap: wrap; gap: 0 22px; }
  .js .navigation { display: none; }
  .js .menu-toggle[aria-expanded='true'] + .navigation { display: grid; padding-block: 5px 13px; }
  .navigation a { padding-block: 11px; }
  .navigation a[aria-current]::after { right: auto; width: 22px; }
  .hero { min-height: max(535px, 70svh); }
  .hero-inner { padding-block: 52px 78px; }
  .hero h1 { font-size: clamp(38px, 10vw, 68px); }
  .hero-image { object-position: 72% center; }
  .hero::after { background: linear-gradient(90deg, #101e18e8, #12231bb0 57%, #17282060), linear-gradient(0deg, #0b191a55, transparent 33%); }
  .hero-bottom { bottom: 20px; }
  .hero-scroll { width: 37px; height: 37px; font-size: 18px; }
  .hero-actions { gap: 18px; margin-top: 27px; }
  .button { min-height: 48px; gap: 15px; padding-inline: 15px; }
  .section-header { grid-template-columns: 1fr; gap: 14px; margin-bottom: 24px; }
  .section-header > p { max-width: 440px; }
  .program-grid { grid-template-columns: 1fr; gap: 20px; }
  .program-body { padding: 19px 20px 22px; }
  .program-photo { aspect-ratio: 1.72; }
  .about-inner { grid-template-columns: 1fr; gap: 31px; }
  .about-photo { aspect-ratio: 1.43; }
  .about-copy h2 { margin-bottom: 17px; }
  .insight-row { grid-template-columns: 1fr auto; gap: 4px 12px; min-height: 83px; }
  .insight-category { grid-column: 1; }
  .insight-name { grid-column: 1; }
  .insight-arrow { grid-column: 2; grid-row: 1 / 3; }
  .footer-inner { grid-template-columns: 1fr auto; row-gap: 20px; }
  .site-footer nav { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; }
}

@media (max-width: 360px) {
  .desktop-break { display: none; }
  .hero-actions { gap: 12px; }
  .header-inner .brand { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
