:root {
  color-scheme: light;
  --ink: #192540;
  --muted: #536078;
  --navy: #151f39;
  --gold: #f9d984;
  --paper: #faf8f2;
  --line: #e0e4ed;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.72 var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 800; }
h2 { font-size: clamp(1.875rem, 4vw, 3.125rem); line-height: 1.25; letter-spacing: -.026em; text-wrap: balance; }
h3 { font-size: 1.375rem; line-height: 1.45; }
:focus-visible { outline: 3px solid #4778d4; outline-offset: 4px; }
.hero :focus-visible, .download-section :focus-visible { outline-color: #fff3ce; }
[id] { scroll-margin-top: 1.25rem; }

.sr-only, .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: absolute;
  z-index: 3;
  top: .75rem;
  left: .75rem;
  padding: .65rem 1rem;
  border-radius: .5rem;
  background: white;
}
.wrap {
  width: min(74rem, calc(100% - 2 * clamp(1.25rem, 6vw, 5rem)));
  margin-inline: auto;
}
.site-header { background: #fffdf8; }
.header-inner, .footer-inner, .brand, .nav {
  display: flex;
  align-items: center;
}
.header-inner {
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.75rem;
}
.brand {
  flex: 0 0 auto;
  gap: .65rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: .055em;
  text-decoration: none;
}
.brand img { border-radius: 26%; }
.nav { gap: clamp(1.25rem, 3.15vw, 2.75rem); }
.nav a, .footer-link {
  color: var(--muted);
  font-size: .9375rem;
  font-weight: 650;
  text-decoration: none;
}
.nav a:hover, .footer-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .3em; }

.button {
  display: inline-flex;
  min-height: 3.25rem;
  justify-content: center;
  align-items: center;
  padding: .62rem 1.3rem;
  border: 1px solid transparent;
  border-radius: .62rem;
  font-size: .9375rem;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s, border-color .2s, color .2s;
}
.button-small { min-height: 2.65rem; padding: .42rem 1.1rem; }
.button-navy { background: var(--navy); color: #fff; }
.button-navy:hover { background: #2d3d60; }
.button-gold { background: var(--gold); color: #212231; }
.button-gold:hover { background: #ffe8a9; }
.button-outline { color: #fff8ea; border-color: #b9c1d292; }
.button-outline:hover { background: #fff1d319; border-color: #fff8ea; }
.button-row { display: flex; flex-wrap: wrap; gap: .875rem; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #131c34;
  color: #fff9ec;
  min-height: clamp(35rem, 47vw, 42rem);
}
.hero-picture, .hero::after { position: absolute; inset: 0; z-index: -1; }
.hero-picture img { width: 100%; height: 100%; object-fit: cover; object-position: center 59%; }
.hero::after {
  content: "";
  background: linear-gradient(90deg, #10192d6e, #10192d3d 36%, transparent 66%);
}
.hero-inner { padding-block: 4.75rem; }
.hero-copy { max-width: 32rem; }
.eyebrow { color: #546a58; font-size: .875rem; font-weight: 780; letter-spacing: .15em; }
.hero-eyebrow { color: #f6d893; }
.hero h1 {
  margin: .8rem 0 1.1rem;
  font-size: clamp(3.75rem, 6.15vw, 6.15rem);
  line-height: 1.12;
  letter-spacing: -.034em;
}
.hero h1 em { color: #f9de9d; font-style: normal; }
.hero-description { max-width: 27rem; margin-bottom: 1.75rem; color: #e0e6f3; font-size: 1.06rem; line-height: 1.85; }

.section { padding-block: clamp(4rem, 7.5vw, 7rem); }
.section-heading { max-width: 47rem; }
.section-heading h2, .sample-intro h2, .faq-grid h2, .download-inner h2 { margin: .45rem 0 .85rem; }
.section-heading > p:last-child, .sample-intro > p:last-child { color: var(--muted); }
.learning-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.125rem; margin-top: 2rem; }
.method {
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: clamp(1.25rem, 2.8vw, 2rem);
  border: 1px solid #e9e4d8;
  border-radius: 1rem;
  background: #fffdf8;
}
.method-symbol {
  display: grid;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.25rem;
  place-items: center;
  border-radius: .9rem;
  font: 1.5rem/1 system-ui, sans-serif;
}
.method-sun { background: #f9edc9; color: #795719; }
.method-book { background: #e7edf9; color: #395381; }
.method-loop { background: #e6efe5; color: #416349; }
.method p { margin-top: .5rem; color: var(--muted); }

.sample-section { background: #ebeff9; }
.sample-grid, .faq-grid, .download-inner {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: clamp(2rem, 7vw, 6rem);
}
.sample-intro .eyebrow { color: #4f6285; }
.sample-intro > p:last-child { max-width: 24rem; }
.exercise {
  padding: clamp(1.25rem, 3.8vw, 2.5rem);
  border: 1px solid #dee4f0;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 1.25rem 3rem #233d6914;
}
.stars {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: .5rem;
  min-height: 5.625rem;
  margin: 1rem 0;
  padding: .5rem;
  border-radius: .65rem;
  background: #18233e;
  color: #ffdd87;
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  line-height: 1;
  list-style: none;
}
.answers { display: grid; gap: .5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.answers button {
  min-height: 2.85rem;
  padding: .35rem;
  border: 1px solid #d9e0ef;
  border-radius: .55rem;
  background: #f4f6fb;
  color: var(--ink);
  font-weight: 720;
  cursor: pointer;
}
.answers button:hover, .answers button[aria-pressed="true"] {
  border-color: #65789d;
  background: #e5ebf7;
}
.answers button[aria-pressed="true"] { box-shadow: inset 0 0 0 1px #65789d; }
.feedback { min-height: 1.65rem; margin-top: .9rem; color: var(--muted); font-size: .9375rem; }
.feedback[data-result="correct"] { color: #24603d; }
.feedback[data-result="retry"] { color: #765010; }

.faq-grid { align-items: start; }
.faq-list { border-top: 1px solid #dededc; }
.faq-list details { border-bottom: 1px solid #dededc; }
.faq-list summary {
  position: relative;
  padding: .95rem 2.25rem .95rem .1rem;
  color: var(--ink);
  font-size: 1.04rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; top: .68rem; right: .2rem; font-size: 1.5rem; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 34rem; padding: 0 .2rem 1rem; color: var(--muted); }

.download-section { padding-block: clamp(2.75rem, 6.1vw, 5rem); background: #17243e; color: #fff9ed; }
.download-inner { grid-template-columns: minmax(0, 1fr) auto; }
.download-inner > div > p:last-child { color: #d4dded; }
.download-action { display: grid; gap: .65rem; text-align: center; }
.download-action .button { min-width: 10rem; }
.download-action p { font-size: .875rem; }
.site-footer { background: #fffdf8; }
.footer-inner { min-height: 6.25rem; justify-content: space-between; gap: 1rem; }
.footer-inner .brand { font-size: 1.05rem; }
.footer-inner p { color: var(--muted); font-size: .875rem; }

@media (max-width: 800px) {
  .nav { gap: 1.1rem; }
  .learning-grid { gap: .75rem; }
}

@media (max-width: 700px) {
  .header-inner { min-height: 4.25rem; }
  .nav { display: none; }
  .hero { min-height: 43rem; align-items: start; }
  .hero-picture { top: auto; bottom: 0; height: 26rem; }
  .hero-picture img { object-position: center 60%; }
  .hero::after { background: linear-gradient(180deg, #131c34 30%, #131c34f2 40%, #131c3400 68%); }
  .hero-inner { padding-block: 2.8rem 24rem; }
  .hero h1 { font-size: clamp(3.15rem, 11.5vw, 4.15rem); }
  .hero-description { margin-bottom: 1.4rem; }
  .learning-grid, .sample-grid, .faq-grid, .download-inner { grid-template-columns: minmax(0, 1fr); }
  .faq-grid { gap: 1rem; }
  .download-inner { gap: 1.4rem; }
  .download-action { text-align: left; }
  .footer-inner { min-height: 5rem; flex-wrap: wrap; padding-block: .8rem; }
}

@media (max-width: 375px) {
  .button-row { gap: .55rem; }
  .button-row .button { padding-inline: .8rem; }
  .footer-inner { column-gap: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
