:root {
  color-scheme: light;
  --ink: #3c2532;
  --muted: #6b505b;
  --peach: #fff4f4;
  --pink: #fadce3;
  --berry: #a6254a;
  --berry-dark: #841936;
  --paper: #fffdfc;
  --mint: #dcebdd;
  --leaf: #365a3b;
  --line: #edd6d9;
  --shell: 1140px;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-inline-size: 0; }
a { color: inherit; }
img { display: block; max-inline-size: 100%; block-size: auto; }
h1, h2, h3, h4, p, figure { margin: 0; }
:focus-visible { outline: 3px solid var(--berry-dark); outline-offset: 5px; }
#main:focus { outline: 0; }
.shell { width: min(var(--shell), calc(100% - 96px)); margin-inline: auto; }
.skip { position: absolute; z-index: 3; top: .6rem; left: .6rem; padding: .65rem 1rem; background: var(--paper); transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }
.topbar { background: var(--paper); border-bottom: 1px solid var(--line); }
.topbar-inner { min-height: 76px; display: flex; gap: 20px; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 21px; line-height: 1.2; font-weight: 760; text-decoration: none; white-space: nowrap; }
.brand img { flex: none; border-radius: 32%; }
.nav-contact { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.nav-contact:hover, .footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero { background: var(--peach); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.04fr; gap: clamp(25px, 5vw, 75px); align-items: center; padding-block: clamp(68px, 7.5vw, 112px); }
.hero-kicker { display: flex; align-items: center; gap: 9px; font-size: clamp(15px, 1.6vw, 19px); line-height: 1.45; font-weight: 660; color: var(--berry-dark); margin-bottom: 23px; }
.hero-kicker span { inline-size: 8px; block-size: 8px; flex: none; background: var(--berry); border-radius: 50%; }
.hero h1 { font-size: clamp(55px, 6.4vw, 98px); font-weight: 820; letter-spacing: -.07em; line-height: 1.04; }
.hero h1 span { display: block; }
.hero-summary { max-width: 25em; font-size: clamp(16px, 1.37vw, 20px); color: var(--muted); line-height: 1.85; margin-block: 28px 26px; }
.cta { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 9px; padding: 12px 22px; border-radius: 9px; color: white; background: var(--berry); font-size: 16px; font-weight: 700; line-height: 1.4; text-decoration: none; }
.cta:hover { background: var(--berry-dark); }
.cta svg { flex: none; }
.hero-note { font-size: 13px; line-height: 1.65; color: var(--muted); margin-top: 11px; }
.hero-art { min-width: 0; }
.desk { position: relative; width: 100%; min-width: 0; container-type: inline-size; display: grid; place-items: center; min-height: 340px; aspect-ratio: 1.14; border-radius: 30px 30px 112px 30px; background-color: var(--pink); background-image: radial-gradient(#bf778a3d 1px, transparent 1.4px); background-size: 15px 15px; }
.desk-stamp { position: absolute; left: 6%; top: 7%; display: flex; flex-wrap: wrap; gap: 3px 8px; font-size: 11px; font-weight: 650; color: var(--berry-dark); }
.book { width: 87%; min-height: 210px; aspect-ratio: 1.56; display: grid; grid-template-columns: 1fr 1fr; transform: rotate(-7deg); filter: drop-shadow(1px 14px 15px #83365027); }
.sheet { position: relative; min-width: 0; padding: 12% 11% 21%; isolation: isolate; border: 1px solid #e3b9c4; background-color: var(--paper); background-image: repeating-linear-gradient(transparent, transparent 23px, #eddce1 24px, transparent 25px); background-position: 0 8px; }
.sheet-left { border-radius: 14px 25px 9px 18px; transform: skewY(3deg); background-color: #fffafa; box-shadow: -3px 6px 0 #d78fa3; }
.sheet-right { border-radius: 25px 14px 18px 9px; transform: skewY(-3deg); box-shadow: 3px 6px 0 #d78fa3, inset 6px 0 10px #8646590d; }
.page-tag { display: inline-block; color: var(--berry-dark); background: var(--pink); border-radius: 5px; padding: 4px 8px; font-size: 12px; line-height: 1.2; font-weight: 700; white-space: nowrap; }
.page-tag.revisit { color: var(--leaf); background: var(--mint); }
.book-word, .book-sentence, .example-word, .example-sentence { font-family: Georgia, "Times New Roman", serif; }
.book-word { margin-top: 8%; font-size: clamp(31px, 11cqi, 70px); font-weight: 700; letter-spacing: -.045em; line-height: 1.05; }
.book-gloss { font-size: clamp(11px, 3cqi, 17px); margin-top: 2%; font-weight: 700; color: var(--muted); }
.book-sentence { font-size: clamp(17px, 5cqi, 30px); margin-top: 14%; line-height: 1.18; }
.book-mark { display: block; inline-size: clamp(33px, 13cqi, 64px); block-size: auto; margin-top: 17%; }
.book-review { font-size: clamp(12px, 3.5cqi, 21px); font-weight: 760; margin-top: 9%; color: var(--leaf); }
.book-note { font-size: clamp(10px, 2.65cqi, 14px); color: var(--muted); margin-top: 4%; }
.page-index { position: absolute; bottom: 6%; left: 11%; font-size: clamp(9px, 2.5cqi, 13px); color: var(--muted); }
.learn { padding-block: clamp(62px, 7vw, 101px); }
.learn-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(26px, 5vw, 80px); align-items: end; margin-bottom: 36px; }
.learn h2, .contact h2 { font-size: clamp(31px, 4.5vw, 55px); font-weight: 790; line-height: 1.23; letter-spacing: -.05em; }
.learn-story, .contact-copy > p { color: var(--muted); font-size: clamp(16px, 1.45vw, 19px); line-height: 1.9; }
.learn-story strong { color: var(--ink); font-weight: 720; }
.lesson { border: 1px solid var(--line); border-top: 4px solid var(--berry); border-radius: 10px 10px 16px 16px; background: #fff9f9; overflow: hidden; }
.lesson-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 16px; padding: 18px clamp(16px, 3.3vw, 34px); border-bottom: 1px solid var(--line); }
.lesson-header h3 { font-size: clamp(20px, 2vw, 25px); line-height: 1.35; }
.lesson-header > span { color: var(--muted); font-size: 13px; line-height: 1.4; }
.lesson-steps { display: grid; grid-template-columns: .84fr 1.05fr 1.02fr; padding: 0; margin: 0; list-style: none; }
.lesson-step { padding: 23px clamp(15px, 2.9vw, 34px) 26px; min-width: 0; }
.lesson-step + .lesson-step { border-left: 1px solid var(--line); }
.lesson-step:last-child { background: #f3f8f1; }
.step-title { display: flex; align-items: center; gap: 8px; }
.step-title span { display: grid; place-items: center; inline-size: 25px; block-size: 25px; border: 1px solid #d7a8b6; border-radius: 50%; color: var(--berry-dark); font-size: 12px; font-weight: 700; }
.lesson-step:last-child .step-title span { border-color: #9db69d; color: var(--leaf); }
.step-title h4 { font-size: 16px; }
.example-word, .example-sentence, .example-review { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .23em; min-height: 47px; margin-top: 10px; font-size: clamp(22px, 2.9vw, 34px); line-height: 1.18; }
.example-word { font-weight: bold; }
.example-sentence mark { background: #f6d0da; color: var(--ink); padding-inline: .08em; }
.example-review { color: var(--leaf); gap: 7px; font-size: clamp(16px, 1.9vw, 24px); font-weight: 750; }
.example-review svg { flex: none; }
.step-explain { margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.learn-next { text-align: center; margin-top: 25px; }
.contact { background: var(--peach); border-block: 1px solid var(--line); scroll-margin-top: 12px; }
.contact:focus { outline-offset: -5px; }
.contact-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: clamp(24px, 9vw, 136px); max-width: 960px; padding-block: clamp(50px, 6vw, 86px); }
.contact h2 { margin-bottom: 17px; }
.contact-copy > .mobile-hint { color: var(--berry-dark); font-size: 15px; margin-top: 15px; }
.qr { justify-self: center; width: min(100%, 224px); padding: 11px; text-align: center; border: 1px solid var(--line); background: white; border-radius: 15px; }
.qr img { width: 100%; }
.qr figcaption { font-size: 12px; line-height: 1.45; color: var(--muted); padding: 2px 0 6px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 8px 20px; flex-wrap: wrap; min-height: 70px; padding-block: 12px; color: var(--muted); font-size: 13px; }
.footer a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 3px; }
@media (max-width: 900px) {
  .shell { width: min(var(--shell), calc(100% - 56px)); }
  .hero h1 { font-size: clamp(47px, 7.7vw, 68px); }
  .desk { min-height: 285px; border-bottom-right-radius: 74px; }
  .book { min-height: 193px; }
}
@media (max-width: 700px) {
  .shell { width: min(530px, calc(100% - 36px)); }
  .topbar-inner { min-height: 64px; gap: 10px; }
  .brand { gap: 7px; font-size: 18px; }
  .brand img { width: 35px; height: 35px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding-block: 45px 29px; }
  .hero-kicker { margin-bottom: 15px; }
  .hero h1 { font-size: clamp(49px, 11vw, 71px); }
  .hero-summary { margin-block: 21px; }
  .hero-art { width: 100%; }
  .desk { aspect-ratio: 1.33; min-height: 239px; border-radius: 21px 21px 62px 21px; }
  .book { width: 84%; min-height: 154px; }
  .learn-intro, .contact-grid { grid-template-columns: 1fr; }
  .learn-intro { align-items: start; gap: 14px; margin-bottom: 24px; }
  .desktop-break { display: none; }
  .lesson-steps { grid-template-columns: 1fr; }
  .lesson-step + .lesson-step { border-left: 0; border-top: 1px solid var(--line); }
  .lesson-step { padding: 18px 18px 19px; }
  .example-word, .example-sentence, .example-review { min-height: 35px; margin-top: 7px; }
  .example-sentence { font-size: 29px; }
  .learn-next { text-align: left; }
  .contact-grid { gap: 24px; }
  .qr { justify-self: start; width: 206px; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
