:root {
  --ink: #18242a;
  --muted: #6c7775;
  --paper: #f5f1e8;
  --paper-deep: #e8e1d5;
  --white: #fffdf8;
  --night: #102531;
  --night-soft: #173642;
  --night-line: rgba(255, 253, 248, 0.16);
  --line: rgba(24, 36, 42, 0.15);
  --coral: #ed7257;
  --coral-dark: #cb5640;
  --yellow: #f3c768;
  --mint: #b8d8c4;
  --serif: "Iowan Old Style", "Baskerville", "Songti SC", "STSong", Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --wrap: min(1240px, calc(100% - 48px));
  --side: clamp(24px, 5vw, 76px);
  --ease: cubic-bezier(0.2, 0.75, 0.25, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--night); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.65; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--coral); outline-offset: 5px; }
::selection { color: var(--white); background: var(--coral); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 10px 16px; color: var(--white); background: var(--coral); transform: translateY(-150%); transition: transform 180ms ease; }
.skip-link:focus { transform: translateY(0); }

.topbar { position: fixed; z-index: 100; top: 0; left: 0; display: flex; align-items: center; justify-content: space-between; width: 100%; height: 76px; padding: 0 clamp(20px, 4vw, 58px); color: var(--white); border-bottom: 1px solid transparent; transition: background 250ms ease, border 250ms ease, color 250ms ease; }
.topbar.scrolled { color: var(--ink); background: rgba(245, 241, 232, 0.92); border-bottom-color: var(--line); backdrop-filter: blur(14px); }
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 11px; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; }
.brand-dot { display: inline-block; width: 12px; height: 12px; background: var(--coral); border-radius: 50%; box-shadow: 0 0 0 5px rgba(237, 114, 87, 0.17); }
.topnav { display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); font-size: 12px; letter-spacing: 0.05em; }
.topnav a:not(.back-link) { position: relative; padding: 7px 0; opacity: 0.82; }
.topnav a:not(.back-link)::after { position: absolute; right: 0; bottom: 0; left: 0; height: 1px; content: ""; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 230ms var(--ease); }
.topnav a:not(.back-link):hover { opacity: 1; }
.topnav a:not(.back-link):hover::after { transform: scaleX(1); transform-origin: left; }
.back-link { padding: 8px 12px; color: var(--white); background: rgba(255, 253, 248, 0.1); border: 1px solid rgba(255, 253, 248, 0.28); transition: background 180ms ease, color 180ms ease; }
.topbar.scrolled .back-link { color: var(--ink); border-color: var(--line); background: transparent; }
.back-link:hover { color: var(--night); background: var(--yellow); border-color: var(--yellow); }
.menu-toggle { display: none; padding: 8px 0; color: inherit; background: transparent; border: 0; cursor: pointer; }
.mobile-nav { position: fixed; z-index: 90; top: 76px; right: 0; left: 0; padding: 22px 24px 28px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 15px 24px rgba(16, 37, 49, 0.08); }
.mobile-nav a { display: block; padding: 11px 0; border-bottom: 1px solid var(--line); }

.learning-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.75fr); gap: clamp(34px, 8vw, 140px); align-items: center; min-height: min(840px, 100svh); overflow: hidden; padding: 140px var(--side) 100px; color: var(--white); background: var(--night); }
.learning-hero > * { min-width: 0; }
.hero-grid { position: absolute; inset: 0; opacity: 0.58; background-image: linear-gradient(var(--night-line) 1px, transparent 1px), linear-gradient(90deg, var(--night-line) 1px, transparent 1px); background-position: center; background-size: 72px 72px; mask-image: linear-gradient(to right, black, transparent 85%); }
.hero-orb { position: absolute; width: 42vw; height: 42vw; border: 1px solid rgba(184, 216, 196, 0.16); border-radius: 50%; pointer-events: none; }
.hero-orb::after { position: absolute; top: 13%; left: 13%; width: 74%; height: 74%; content: ""; border: 1px solid rgba(243, 199, 104, 0.16); border-radius: 50%; }
.hero-orb-one { right: -13vw; bottom: -22vw; animation: float-orb 12s ease-in-out infinite; }
.hero-orb-two { right: 17vw; bottom: -34vw; width: 30vw; height: 30vw; opacity: 0.62; animation: float-orb 16s ease-in-out -3s infinite reverse; }
.hero-content, .hero-preview, .hero-scroll { position: relative; z-index: 1; }
.hero-content { width: min(100%, 690px); max-width: 690px; }
.eyebrow, .section-kicker { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.hero-eyebrow { color: var(--mint); }
.hero-eyebrow span { color: var(--yellow); }
.learning-hero h1 { margin: 22px 0 24px; font-family: var(--serif); font-size: clamp(58px, 8.2vw, 124px); font-weight: 400; letter-spacing: -0.055em; line-height: 0.98; white-space: nowrap; }
.learning-hero h1 em { color: var(--yellow); font-style: normal; }
.hero-intro { max-width: 470px; margin: 0; color: rgba(255, 253, 248, 0.72); font-size: 17px; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 38px; }
.primary-button { display: inline-flex; align-items: center; gap: 18px; padding: 14px 18px 14px 22px; color: var(--night); font-size: 13px; font-weight: 700; background: var(--yellow); border: 1px solid var(--yellow); transition: gap 180ms ease, background 180ms ease; }
.primary-button:hover { gap: 26px; background: #ffd986; }
.hero-note { color: rgba(255, 253, 248, 0.58); font-size: 12px; }
.hero-note i { margin-right: 6px; color: var(--coral); font-style: normal; }
.exam-special-link { padding: 7px 0; border-bottom: 1px solid rgba(255, 253, 248, 0.25); transition: color 180ms ease, border 180ms ease; }
.exam-special-link:hover { color: var(--white); border-bottom-color: var(--yellow); }
.hero-preview { justify-self: end; width: min(100%, 430px); min-height: 450px; padding: 28px 32px; color: var(--ink); background: var(--paper); box-shadow: 18px 22px 0 rgba(237, 114, 87, 0.85); transform: rotate(2.4deg); transition: transform 400ms var(--ease); }
.hero-preview:hover { transform: rotate(0deg) translateY(-6px); }
.preview-topline, .preview-bottomline { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; }
.preview-rule { height: 1px; margin: 18px 0 64px; background: var(--line); }
.preview-label { margin: 0; color: var(--coral-dark); font-size: 12px; font-weight: 700; letter-spacing: 0.09em; }
.preview-phrase { margin: 19px 0 14px; font-family: var(--serif); font-size: clamp(31px, 4vw, 48px); letter-spacing: -0.035em; line-height: 1.02; }
.preview-phrase em { color: var(--coral-dark); font-style: normal; }
.preview-translation { margin: 0; color: var(--muted); font-size: 14px; }
.preview-bottomline { align-items: center; margin-top: 93px; padding-top: 15px; border-top: 1px solid var(--line); }
.play-mark { display: grid; width: 28px; height: 28px; place-items: center; color: var(--white); font-size: 9px; background: var(--coral); border-radius: 50%; }
.preview-stamp { position: absolute; right: 28px; bottom: 74px; display: grid; width: 66px; height: 66px; place-items: center; color: var(--coral-dark); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; line-height: 1.05; text-align: center; border: 1px solid var(--coral); border-radius: 50%; transform: rotate(-12deg); }
.hero-scroll { position: absolute; bottom: 34px; left: var(--side); display: flex; gap: 14px; align-items: center; color: rgba(255, 253, 248, 0.5); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.hero-scroll i { display: block; width: 45px; height: 1px; background: var(--coral); }
.reveal-on-load { animation: rise-in 700ms var(--ease) both; }
.reveal-on-load:nth-child(2) { animation-delay: 80ms; }
.reveal-on-load:nth-child(3) { animation-delay: 150ms; }
.reveal-on-load:nth-child(4) { animation-delay: 220ms; }

.section-wrap { width: var(--wrap); margin: 0 auto; }
.today-section, .progress-section { padding-top: clamp(80px, 10vw, 142px); padding-bottom: clamp(86px, 11vw, 150px); }
.section-heading { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 55px; }
.section-kicker { color: var(--coral-dark); }
.section-kicker span { margin-right: 18px; color: var(--muted); }
.section-heading h2 { max-width: 660px; margin: 17px 0 0; font-family: var(--serif); font-size: clamp(40px, 5vw, 72px); font-weight: 400; letter-spacing: -0.045em; line-height: 1.02; }
.section-description { max-width: 285px; margin: 0 0 4px; color: var(--muted); font-size: 13px; }
.study-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr); gap: clamp(38px, 8vw, 120px); align-items: start; }
.lesson-sheet { min-width: 0; padding: clamp(26px, 4vw, 52px); background: var(--white); border-top: 4px solid var(--coral); }
.lesson-head, .aside-topline, .week-topline { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.lesson-status { margin: 0 0 8px; color: var(--coral-dark); font-size: 11px; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; }
.lesson-head h3 { margin: 0; font-family: var(--serif); font-size: clamp(32px, 4vw, 54px); font-weight: 400; letter-spacing: -0.035em; line-height: 1; }
.icon-button { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; color: var(--coral-dark); background: transparent; border: 1px solid var(--line); cursor: pointer; transition: color 180ms ease, background 180ms ease, transform 180ms ease; }
.icon-button:hover, .icon-button[aria-pressed="true"] { color: var(--white); background: var(--coral); transform: translateY(-2px); }
.icon-button[aria-pressed="true"] span[aria-hidden="true"] { font-size: 0; }
.icon-button[aria-pressed="true"] span[aria-hidden="true"]::after { content: "♥"; font-size: 17px; }
.scene-line { display: flex; gap: 11px; margin: 37px 0 36px; color: var(--muted); font-size: 14px; }
.scene-pin { color: var(--coral); font-size: 11px; }
.phrase-block { padding: 34px 0 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.phrase-english { margin: 0; font-family: var(--serif); font-size: clamp(34px, 5vw, 66px); letter-spacing: -0.04em; line-height: 1.04; }
.phrase-chinese { margin: 13px 0 26px; color: var(--muted); font-size: 15px; }
.listen-button { display: inline-flex; gap: 9px; align-items: center; padding: 9px 12px 9px 9px; color: var(--coral-dark); background: transparent; border: 1px solid var(--coral); cursor: pointer; transition: background 180ms ease, color 180ms ease; }
.listen-button:hover, .listen-button.is-speaking { color: var(--white); background: var(--coral); }
.listen-icon { display: grid; width: 24px; height: 24px; place-items: center; font-size: 8px; border: 1px solid currentColor; border-radius: 50%; }
.listen-hint { margin-left: 5px; color: var(--muted); font-size: 10px; }
.listen-button:hover .listen-hint, .listen-button.is-speaking .listen-hint { color: rgba(255, 253, 248, 0.72); }
.lesson-tip { display: grid; grid-template-columns: auto 1fr; gap: 15px; margin: 25px 0 34px; color: var(--muted); font-size: 13px; }
.lesson-tip span { color: var(--coral-dark); font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.lesson-tip p { margin: 0; }
.lesson-divider { display: flex; gap: 14px; align-items: center; color: var(--muted); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.lesson-divider::after { height: 1px; flex: 1; content: ""; background: var(--line); }
.practice-block { padding-top: 18px; }
.practice-question { margin: 0 0 18px; font-size: 16px; font-weight: 700; }
.practice-options { display: grid; gap: 8px; }
.practice-option { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; padding: 12px 15px; color: var(--ink); text-align: left; background: var(--paper); border: 1px solid transparent; cursor: pointer; transition: border 180ms ease, background 180ms ease, transform 180ms ease; }
.practice-option:hover { border-color: var(--coral); transform: translateX(4px); }
.practice-option:disabled { cursor: default; }
.practice-option.is-correct { background: var(--mint); border-color: #83b697; }
.practice-option.is-wrong { color: var(--coral-dark); background: #f9e0d7; border-color: var(--coral); }
.option-letter { display: grid; width: 25px; height: 25px; place-items: center; color: var(--coral-dark); font-size: 11px; font-weight: 800; border: 1px solid currentColor; border-radius: 50%; }
.practice-feedback { min-height: 38px; margin-top: 13px; color: var(--muted); font-size: 13px; }
.practice-feedback strong { display: block; margin-bottom: 3px; color: var(--ink); }
.transfer-block { margin-top: 25px; padding-top: 22px; border-top: 1px solid var(--line); }
.transfer-block[hidden] { display: none; }
.transfer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; color: var(--coral-dark); font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.transfer-head strong { font-size: 11px; }
.transfer-question { margin: 0 0 17px; font-family: var(--serif); font-size: clamp(20px, 2.2vw, 27px); line-height: 1.3; }
.transfer-options .practice-option { background: transparent; border-color: var(--line); }
.transfer-options .practice-option:hover { border-color: var(--coral); }
.transfer-options .practice-option.is-correct { background: var(--mint); border-color: #83b697; }
.transfer-options .practice-option.is-wrong { background: #f9e0d7; border-color: var(--coral); }
.next-button { padding: 11px 15px; color: var(--white); background: var(--coral); border: 1px solid var(--coral); cursor: pointer; transition: background 180ms ease, transform 180ms ease; }
.next-button:hover { background: var(--coral-dark); transform: translateX(4px); }
.today-aside { position: sticky; top: 105px; }
.mini-progress-block, .word-list-block { padding: 0 0 27px; border-bottom: 1px solid var(--line); }
.word-list-block { padding-top: 29px; }
.aside-topline { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.aside-topline strong { color: var(--coral-dark); font-size: 12px; }
.progress-track { height: 6px; margin-top: 17px; overflow: hidden; background: var(--paper-deep); }
.progress-track span { display: block; width: 33%; height: 100%; background: var(--coral); transition: width 350ms var(--ease); }
.mini-progress-block p { margin: 15px 0 0; color: var(--muted); font-size: 12px; }
.aside-arrow { color: var(--coral); font-size: 18px; }
.word-list { padding: 0; margin: 19px 0 0; list-style: none; }
.word-list li { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.word-list li span:first-child { font-size: 13px; }
.word-list li span:last-child { color: var(--muted); font-size: 12px; }
.aside-quote { padding-top: 34px; }
.aside-quote > span { display: block; height: 20px; color: var(--coral); font-family: var(--serif); font-size: 53px; line-height: 1; }
.aside-quote p { max-width: 250px; margin: 4px 0 12px; font-family: var(--serif); font-size: 24px; letter-spacing: -0.025em; line-height: 1.25; }
.aside-quote small { color: var(--muted); font-size: 11px; }

.levels-section { padding: clamp(84px, 10vw, 140px) 0 clamp(92px, 11vw, 150px); color: var(--white); background: var(--night); overflow: hidden; }
.light-heading .section-kicker { color: var(--yellow); }
.light-heading .section-kicker span { color: rgba(255, 253, 248, 0.46); }
.light-heading h2 { color: var(--white); }
.light-heading .section-description { color: rgba(255, 253, 248, 0.58); }
.level-rail { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--night-line); border-bottom: 1px solid var(--night-line); }
.level-button { position: relative; padding: 25px 20px 22px 0; color: rgba(255, 253, 248, 0.52); text-align: left; background: transparent; border: 0; border-right: 1px solid var(--night-line); cursor: pointer; transition: color 180ms ease, padding 180ms var(--ease); }
.level-button + .level-button { padding-left: 23px; }
.level-button:last-child { border-right: 0; }
.level-button:hover, .level-button[aria-selected="true"] { color: var(--white); padding-top: 20px; }
.level-button[aria-selected="true"]::before { position: absolute; top: -1px; left: 0; width: 62px; height: 4px; content: ""; background: var(--coral); }
.level-code { display: block; margin-bottom: 13px; color: var(--yellow); font-family: var(--serif); font-size: 32px; line-height: 1; }
.level-name { display: block; font-size: 15px; font-weight: 800; }
.level-subtitle { display: block; margin-top: 4px; color: currentColor; font-size: 12px; }
.level-count { display: block; margin-top: 22px; color: currentColor; font-size: 10px; letter-spacing: 0.06em; }
.level-detail { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 6vw, 100px); min-height: 205px; padding: 44px 0 4px; }
.level-detail h3 { max-width: 340px; margin: 0; color: var(--yellow); font-family: var(--serif); font-size: clamp(27px, 3vw, 43px); font-weight: 400; letter-spacing: -0.035em; line-height: 1.05; }
.level-detail-copy { max-width: 560px; }
.level-detail-copy p { margin: 0; color: rgba(255, 253, 248, 0.68); font-size: 15px; }
.level-examples { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--night-line); }
.level-examples span { color: var(--mint); font-size: 13px; }
.level-examples span::before { margin-right: 8px; color: var(--coral); content: "→"; }

.readings-section { padding: clamp(86px, 11vw, 150px) 0 clamp(96px, 12vw, 165px); background: var(--paper-deep); }
.reading-heading { align-items: end; }
.reading-heading h2 { max-width: 760px; }
.reading-heading-note { width: min(100%, 315px); padding-top: 16px; border-top: 1px solid var(--line); }
.reading-heading-note strong { color: var(--coral-dark); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.reading-heading-note p { margin: 11px 0 0; color: var(--muted); font-size: 12px; }
.reading-toolbar { display: flex; justify-content: space-between; gap: 24px; align-items: stretch; margin-bottom: 34px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.reading-type-filters, .reading-filters { display: flex; flex-wrap: wrap; gap: 0; }
.reading-type-filter { display: flex; gap: 18px; align-items: center; padding: 14px 22px; color: var(--muted); background: transparent; border: 0; border-right: 1px solid var(--line); cursor: pointer; text-align: left; transition: color 180ms ease, background 180ms ease; }
.reading-type-filter span { font-family: var(--serif); font-size: 18px; }
.reading-type-filter small { font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; }
.reading-type-filter:hover, .reading-type-filter[aria-pressed="true"] { color: var(--white); background: var(--night); }
.reading-filter { padding: 12px 22px; color: var(--muted); background: transparent; border: 0; border-right: 1px solid var(--line); cursor: pointer; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; transition: color 180ms ease, background 180ms ease; }
.reading-filter:hover, .reading-filter[aria-pressed="true"] { color: var(--white); background: var(--coral); }
.reading-layout { display: grid; grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr); gap: clamp(35px, 7vw, 100px); align-items: start; }
.article-list { border-top: 1px solid var(--line); }
.article-row { position: relative; display: grid; grid-template-columns: 54px 1fr auto; gap: 15px; width: 100%; padding: 20px 0; color: var(--ink); text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; transition: padding 200ms var(--ease), color 180ms ease; }
.article-row:hover, .article-row.is-active { padding-left: 10px; color: var(--coral-dark); }
.article-row.is-active::before { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; content: ""; background: var(--coral); }
.article-level { color: var(--coral-dark); font-family: var(--serif); font-size: 25px; line-height: 1; }
.article-row-copy strong { display: block; color: currentColor; font-family: var(--serif); font-size: 20px; font-weight: 400; letter-spacing: -0.025em; line-height: 1.12; }
.article-row-copy small { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; }
.article-row-arrow { color: var(--coral); font-size: 18px; }
.article-reader { min-width: 0; padding: clamp(28px, 5vw, 58px); background: var(--white); border-top: 4px solid var(--coral); }
.reader-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.reader-meta span:first-child { color: var(--coral-dark); }
.article-reader h3 { max-width: 680px; margin: 18px 0 12px; font-family: var(--serif); font-size: clamp(34px, 5vw, 62px); font-weight: 400; letter-spacing: -0.04em; line-height: 1.02; }
.reader-deck { max-width: 640px; margin: 0; color: var(--muted); font-size: 14px; }
.reader-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 27px 0 35px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.reader-listen, .reader-source { display: inline-flex; gap: 9px; align-items: center; padding: 9px 12px; color: var(--coral-dark); background: transparent; border: 1px solid var(--coral); cursor: pointer; font-size: 11px; font-weight: 700; }
.reader-listen:hover, .reader-listen.is-speaking { color: var(--white); background: var(--coral); }
.reader-source { color: var(--ink); border-color: var(--line); }
.reader-source:hover { border-color: var(--ink); }
.classic-line { position: relative; max-width: 690px; padding: 23px 26px; margin: 0 0 26px; color: var(--white); background: var(--night); border-left: 4px solid var(--yellow); }
.classic-line span { display: block; margin-bottom: 10px; color: var(--yellow); font-family: var(--sans); font-size: 9px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.classic-line p { margin: 0; font-family: var(--serif); font-size: clamp(21px, 2.5vw, 31px); line-height: 1.25; }
.reader-legend { display: flex; gap: 9px; align-items: center; max-width: 690px; margin-bottom: 24px; color: var(--muted); font-size: 11px; }
.legend-mark { display: inline-block; width: 24px; height: 8px; background: linear-gradient(to top, rgba(243, 199, 104, 0.58) 45%, transparent 45%); border-bottom: 1px solid var(--coral-dark); }
.reader-body { max-width: 690px; color: #253238; font-family: Georgia, "Times New Roman", var(--serif); font-size: clamp(17px, 1.7vw, 20px); line-height: 1.78; }
.reader-body p { margin: 0 0 1.1em; }
.vocab-word { position: relative; padding: 0 0.04em; color: inherit; background: linear-gradient(to top, rgba(243, 199, 104, 0.5) 42%, transparent 42%); border-bottom: 1px solid var(--coral-dark); cursor: help; }
.vocab-word::after { position: absolute; z-index: 20; bottom: calc(100% + 8px); left: 50%; width: max-content; max-width: 210px; padding: 7px 10px; color: var(--white); content: attr(data-meaning); background: var(--night); border: 1px solid rgba(255, 253, 248, 0.18); box-shadow: 0 8px 20px rgba(16, 37, 49, 0.18); font-family: var(--sans); font-size: 11px; font-weight: 500; line-height: 1.35; white-space: normal; opacity: 0; pointer-events: none; transform: translate(-50%, 4px); transition: opacity 140ms ease, transform 140ms ease; }
.vocab-word:hover::after, .vocab-word:focus::after, .vocab-word[data-open="true"]::after { opacity: 1; transform: translate(-50%, 0); }
.vocab-word:focus { outline: 1px solid var(--coral); outline-offset: 2px; }
.reader-study { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 35px; margin-top: 38px; padding-top: 28px; border-top: 1px solid var(--line); }
.reader-study h4 { margin: 0 0 12px; color: var(--coral-dark); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.reader-guide p { margin: 0; color: var(--muted); font-size: 13px; }
.reader-words { padding: 0; margin: 0; list-style: none; }
.reader-words li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.reader-words li span:last-child { color: var(--muted); text-align: right; }

.progress-section { padding-bottom: clamp(94px, 12vw, 160px); }
.progress-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(35px, 8vw, 120px); align-items: stretch; }
.progress-metrics { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric { position: relative; padding: 28px 20px 30px 0; border-right: 1px solid var(--line); }
.metric + .metric { padding-left: 20px; }
.metric:last-child { border-right: 0; }
.metric-label { display: block; color: var(--muted); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.metric strong { display: inline-block; margin-top: 13px; font-family: var(--serif); font-size: clamp(42px, 5vw, 72px); font-weight: 400; line-height: 1; }
.metric-unit { margin-left: 6px; color: var(--muted); font-size: 12px; }
.metric i { position: absolute; right: 18px; bottom: 26px; color: var(--coral); font-style: normal; }
.week-panel { padding: 27px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.week-topline { color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }
.week-topline span:last-child { color: var(--coral-dark); font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.week-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 9px; align-items: end; height: 94px; padding-top: 25px; }
.week-day { display: flex; flex-direction: column; gap: 8px; align-items: center; color: var(--muted); font-size: 10px; }
.week-dot { display: block; width: 20px; height: 20px; border: 1px solid var(--line); border-radius: 50%; }
.week-day.is-done .week-dot { background: var(--coral); border-color: var(--coral); box-shadow: 0 0 0 4px rgba(237, 114, 87, 0.12); }
.week-day.is-today { color: var(--ink); font-weight: 800; }
.week-day.is-today .week-dot { border: 2px solid var(--coral); }

.site-footer { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 30px var(--side); color: rgba(255, 253, 248, 0.62); font-size: 11px; background: var(--night); }
.site-footer .footer-brand { color: var(--white); }
.site-footer p { margin: 0; }
.site-footer a { color: var(--yellow); }

@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float-orb { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -18px, 0); } }

@media (max-width: 900px) {
  :root { --wrap: min(100% - 40px, 720px); }
  .topnav { display: none; }
  .menu-toggle { display: block; }
  .learning-hero { grid-template-columns: minmax(0, 1fr); min-height: auto; padding-top: 150px; }
  .learning-hero h1 { white-space: normal; }
  .hero-preview { justify-self: start; width: min(100%, 430px); margin-top: 22px; }
  .hero-scroll { position: relative; bottom: auto; left: auto; grid-column: 1; margin-top: 35px; }
  .study-layout, .progress-layout, .reading-layout { grid-template-columns: 1fr; }
  .today-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 35px; }
  .aside-quote { grid-column: 1 / -1; padding-top: 0; }
  .level-detail { gap: 35px; }
  .article-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 0; }
  .article-row { padding: 18px 15px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
  .article-row:nth-child(2n) { border-right: 0; }
  .reading-toolbar { align-items: stretch; flex-direction: column; gap: 0; }
  .reading-type-filters { border-bottom: 1px solid var(--line); }
}

@media (max-width: 660px) {
  :root { --wrap: calc(100% - 36px); }
  .topbar { height: 68px; }
  .mobile-nav { top: 68px; }
  .learning-hero { padding-top: 122px; padding-bottom: 65px; }
  .learning-hero h1 { font-size: clamp(48px, 14vw, 72px); }
  .hero-intro { font-size: 15px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 17px; }
  .hero-preview { min-height: 390px; padding: 23px; box-shadow: 10px 13px 0 rgba(237, 114, 87, 0.85); }
  .preview-rule { margin-bottom: 48px; }
  .preview-bottomline { margin-top: 72px; }
  .section-heading { display: block; margin-bottom: 35px; }
  .section-description { margin-top: 21px; }
  .section-heading h2 { font-size: 43px; }
  .lesson-sheet { padding: 24px 19px 29px; }
  .lesson-head h3 { font-size: 36px; }
  .scene-line { margin: 26px 0; }
  .phrase-english { font-size: 39px; }
  .lesson-tip { grid-template-columns: 1fr; gap: 5px; }
  .today-aside { display: block; }
  .word-list-block { margin-top: 30px; }
  .aside-quote { margin-top: 32px; }
  .level-rail { grid-template-columns: repeat(2, 1fr); }
  .level-button, .level-button + .level-button { padding: 20px 12px 20px 0; }
  .level-button:nth-child(2n) { padding-left: 15px; border-right: 0; }
  .level-button:nth-child(n+3) { border-top: 1px solid var(--night-line); }
  .level-detail { display: block; padding-top: 34px; }
  .level-detail h3 { margin-bottom: 24px; }
  .reading-heading-note { margin-top: 25px; }
  .reading-type-filter { flex: 1; justify-content: space-between; padding-right: 14px; padding-left: 14px; }
  .reading-filter { flex: 1; padding-right: 10px; padding-left: 10px; }
  .article-list { display: block; }
  .article-row { grid-template-columns: 46px 1fr auto; padding: 17px 0; border-right: 0; }
  .article-reader { padding: 26px 19px 30px; }
  .article-reader h3 { font-size: 38px; }
  .classic-line { padding: 20px 18px; }
  .vocab-word::after { left: 0; transform: translate(0, 4px); }
  .vocab-word:hover::after, .vocab-word:focus::after, .vocab-word[data-open="true"]::after { transform: translate(0, 0); }
  .reader-study { grid-template-columns: 1fr; gap: 25px; }
  .progress-metrics { grid-template-columns: 1fr; }
  .metric, .metric + .metric { min-height: 115px; padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .metric:last-child { border-bottom: 0; }
  .metric strong { margin-top: 8px; font-size: 52px; }
  .week-panel { min-height: 155px; }
  .site-footer { align-items: flex-start; flex-direction: column; padding-top: 25px; padding-bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
