:root {
  color-scheme: light;
  --ink: #111311;
  --paper: #fffdf8;
  --gold: #c6a165;
  --line: #d7d1c6;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 7px; }
p, h1, h2 { margin: 0; }
.page-width { width: min(1380px, calc(100% - 120px)); margin-inline: auto; }
.skip-link { position: absolute; top: -90px; left: 20px; padding: 14px; z-index: 3; background: var(--paper); }
.skip-link:focus { top: 12px; }
.opening { color: var(--paper); background: var(--ink); }
.header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid #756340; }
.wordmark { font-family: var(--serif); font-size: 2.65rem; line-height: 1.3; white-space: nowrap; }
.wordmark span { font-size: .92em; }
.header nav { display: flex; gap: clamp(24px, 5vw, 72px); font-size: 1.05rem; }
.header nav a { padding-block: 16px; transition: color .15s; }
.header nav a:hover { color: var(--gold); }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 435px; align-items: center; gap: 60px; min-height: 623px; padding-block: 70px; isolation: isolate; }
.hero::before { content: ""; position: absolute; pointer-events: none; z-index: -1; width: min(1000px, 80vw); height: 460px; left: -320px; bottom: 0; background: url('/campus-black-gold.jpg') center bottom / cover no-repeat; opacity: .34; mask-image: radial-gradient(ellipse at 25% 100%, #000 15%, transparent 80%); }
.hero-copy { padding-left: clamp(0px, calc((100vw - 1024px) * .78), 372px); }
h1 { font-family: var(--serif); font-size: clamp(2.9rem, 5.05vw, 4.8rem); font-weight: 600; line-height: 1.38; white-space: nowrap; letter-spacing: -.025em; }
h1 span { color: var(--gold); }
.hero-description { margin-top: 20px; color: #e5e4df; font-family: var(--serif); font-size: 1.4rem; line-height: 1.8; white-space: nowrap; }
.primary-link { display: inline-flex; align-items: center; justify-content: center; gap: 22px; margin-top: 28px; min-height: 58px; min-width: 260px; padding: 12px 30px; color: var(--ink); background: var(--gold); border: 1px solid #d3b478; border-radius: 5px; font-size: 1.15rem; font-weight: 600; transition: background .15s; }
.primary-link:hover { background: #d4b780; }
.primary-link span { font-size: 1.3em; font-weight: 400; }
.scan-panel { align-self: center; min-width: 0; text-align: center; color: var(--ink); background: var(--paper); border: 1px solid #dedbd3; border-radius: 16px; padding: 34px 32px; scroll-margin-top: 24px; }
.scan-panel:target { outline: 3px solid var(--gold); outline-offset: 6px; }
.scan-panel h2 { font-family: var(--serif); font-size: 2.3rem; font-weight: 600; line-height: 1.45; }
.program-description { margin-top: 2px; font-family: var(--serif); font-size: 1.35rem; line-height: 1.7; }
.program-description strong { color: #805a20; font-weight: 600; }
.qr-code, .qr-pending { display: block; width: 248px; max-width: 100%; aspect-ratio: 1; margin: 18px auto 0; background: #fff; }
.qr-code { object-fit: contain; }
.qr-pending { display: flex; align-items: center; justify-content: center; border: 1px solid #c8c6c0; border-radius: 7px; font-family: var(--serif); font-size: 1.3rem; }
.scan-instruction { margin-top: 24px; font-size: 1.15rem; line-height: 1.7; }
.trial-notice { margin-top: 8px; color: #6b6252; font-size: .875rem; line-height: 1.6; }
.academy { color: var(--ink); background: var(--paper); scroll-margin-top: 24px; }
.academy-inner { display: grid; grid-template-columns: 38% 1fr; align-items: center; min-height: 232px; padding-block: 50px; }
.academy h2 { padding-left: 20%; font-family: var(--serif); font-size: 3.2rem; font-weight: 600; line-height: 1.4; }
.academy-copy { border-left: 1px solid var(--line); padding: 20px 0 20px 16%; font-family: var(--serif); font-size: 1.25rem; line-height: 1.85; }
.academy-copy p + p { margin-top: 4px; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 101px; padding-block: 22px; border-top: 1px solid var(--line); font-family: var(--serif); font-size: 1rem; line-height: 1.7; }
.footer-brand { display: flex; align-items: center; gap: 24px; }
.footer-brand > span { font-size: 1.1rem; }
.icp-link { font-family: var(--sans); font-size: .875rem; color: #625c53; }
.icp-link:hover { text-decoration: underline; }
@media (max-width: 1250px) {
  .page-width { width: calc(100% - 80px); }
  .hero { grid-template-columns: minmax(0, 1fr) 350px; gap: 40px; }
  .hero-copy { padding-left: 0; }
  .hero-description { font-size: 1.15rem; white-space: normal; }
  .scan-panel { padding: 28px; }
  .scan-panel h2 { font-size: 2rem; }
  .academy-copy { padding-left: 10%; font-size: 1.125rem; }
}
@media (max-width: 760px) {
  .page-width { width: calc(100% - 40px); }
  .header { min-height: 78px; gap: 12px; }
  .wordmark { font-size: 1.75rem; }
  .header nav { gap: 14px; font-size: .875rem; }
  .header nav a:last-child { max-width: 8.5em; }
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 42px; padding: 45px 0 48px; }
  .hero::before { left: -80px; bottom: auto; top: 0; width: calc(100% + 100px); height: 380px; opacity: .18; }
  h1 { font-size: clamp(2.5rem, 10.2vw, 4.3rem); line-height: 1.4; }
  .hero-description { margin-top: 22px; font-size: 1rem; line-height: 1.9; }
  .primary-link { margin-top: 22px; min-height: 50px; padding: 10px 23px; font-size: 1rem; }
  .scan-panel { width: min(100%, 395px); justify-self: center; padding: 27px 24px; }
  .scan-panel h2 { font-size: 2rem; }
  .program-description { font-size: 1.125rem; }
  .scan-instruction { font-size: 1rem; }
  .academy-inner { grid-template-columns: 1fr; gap: 22px; padding-block: 38px; }
  .academy h2 { padding-left: 0; font-size: 2.1rem; }
  .academy-copy { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0 0; font-size: 1rem; line-height: 1.9; }
  .footer { align-items: flex-start; flex-direction: column; gap: 12px; font-size: .9rem; }
  .footer-brand { align-items: flex-start; flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media (max-width: 380px) {
  .header { flex-direction: column; align-items: flex-start; gap: 0; padding-block: 12px 4px; }
  .header nav { gap: 24px; }
  .header nav a { padding-block: 12px; white-space: nowrap; }
  .header nav a:last-child { max-width: none; }
}
