/* ChineseOutLoud, design direction A "Ink on paper", headline font Newsreader (Tobi, 2026-10-04) (design/DESIGN-IDEA-CODEX.md, section 3.1 and 4)
   Rules: design/EXPERIENCE-PRINCIPLES.md. Mobile first. Full-width bands, content up to 1120 px. */

/* Self-hosted fonts (downloaded from Google Fonts, 2026-10-04). Newsreader and Manrope are variable fonts.
   Noto Serif SC is a subset with only the characters used in the sentence examples (说 你 可 以 吗 慢 一 点). */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/assets/fonts/newsreader-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/assets/fonts/newsreader-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/assets/fonts/manrope-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/assets/fonts/manrope-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Noto Serif SC"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/noto-serif-sc-subset.woff2") format("woff2"); unicode-range: U+4E00, U+4EE5, U+4F60, U+53EF, U+5417, U+6162, U+70B9, U+8BF4; }

:root {
  --paper: #FBF6F2;
  --paper-deep: #F3EBE4;
  --white: #FFFFFF;
  --ink: #241C18;
  --ink-raised: #332923;
  --ink-muted: #6E635B;
  --line: #EADFD6;
  --seal: #C4402A;
  --seal-hover: #A6331F;
  --jade: #4F7A6B;
  --jade-dark: #3E6457;
  --jade-tint: #E6EFEA;
  --light-ink-text: #D9CDC5;

  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Manrope", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  --hanzi: "Noto Serif SC", "PingFang SC", "Hiragino Sans GB", "Songti SC", serif;

  --maxw: 1120px;
  --gutter: 20px;
  --radius-btn: 10px;
  --radius-card: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --fast: 160ms;
  --mid: 240ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 27px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--seal-hover); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--seal); }
button { font: inherit; }

:focus-visible { outline: 3px solid var(--jade-dark); outline-offset: 3px; border-radius: 4px; }
.band-ink :focus-visible, .site-footer :focus-visible { outline-color: var(--jade-tint); }

.skip {
  position: absolute; left: 16px; top: -60px;
  background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; z-index: 100;
}
.skip:focus { top: 16px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* Typography */
h1, h2, h3, h4 { margin: 0; }
h1, .h1 { font-family: var(--display); font-weight: 600; font-size: 36px; line-height: 40px; letter-spacing: -.02em; }
h2, .h2 { font-family: var(--display); font-weight: 600; font-size: 30px; line-height: 35px; letter-spacing: -.015em; }
h3, .h3 { font-family: var(--sans); font-weight: 600; font-size: 24px; line-height: 30px; }
h4, .h4 { font-family: var(--sans); font-weight: 600; font-size: 21px; line-height: 28px; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
.lead { font-size: 18px; line-height: 28px; }
.small { font-size: 14px; line-height: 21px; }
.muted { color: var(--ink-muted); }
.measure { max-width: 60ch; }
.measure-lead { max-width: 55ch; }
@media (min-width: 320px) and (max-width: 359px) { h1, .h1 { font-size: 32px; line-height: 37px; } }
@media (min-width: 1024px) {
  body { font-size: 18px; line-height: 28px; }
  h1, .h1 { font-size: 56px; line-height: 60px; }
  h2, .h2 { font-size: 42px; line-height: 48px; }
  h3, .h3 { font-size: 26px; line-height: 32px; }
  h4, .h4 { font-size: 22px; line-height: 29px; }
  .lead { font-size: 20px; line-height: 30px; }
}

/* Bands and sections */
.band { padding: 64px 0; }
.band-contrast { padding: 80px 0; }
.band-teaser { padding: 48px 0; }
.band-paper { background: var(--paper); }
.band-paper-deep { background: var(--paper-deep); }
.band-white { background: var(--white); }
.band-jade { background: var(--jade-tint); border-top: 1px solid rgba(79, 122, 107, .18); }
.band-ink { background: var(--ink); color: var(--paper); }
.band-ink a { color: var(--jade-tint); }
.band-ink .muted { color: var(--light-ink-text); }
@media (min-width: 1024px) {
  .band { padding: 96px 0; }
  .band-contrast { padding: 128px 0; }
  .band-teaser { padding: 64px 0; }
}

.section-head { margin-bottom: 24px; }
.section-head .intro { margin-top: 16px; }
@media (min-width: 1024px) { .section-head { margin-bottom: 40px; } .section-head .intro { margin-top: 24px; } }

/* Grid */
.grid { display: grid; gap: 16px; }
.grid > * { min-width: 0; }
@media (min-width: 768px) { .grid { gap: 24px; } }
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(12, 1fr); gap: 24px; }
  .col-3 { grid-column: span 3; } .col-4 { grid-column: span 4; } .col-5 { grid-column: span 5; }
  .col-6 { grid-column: span 6; } .col-7 { grid-column: span 7; } .col-8 { grid-column: span 8; }
  .col-9 { grid-column: span 9; } .col-10 { grid-column: span 10; } .col-12 { grid-column: span 12; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 13px 24px;
  font-family: var(--sans); font-weight: 600; font-size: 16px; line-height: 22px;
  border-radius: var(--radius-btn); border: 1px solid transparent; cursor: pointer;
  text-decoration: none; text-align: center;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--seal); color: var(--white); }
.btn-primary:hover { background: var(--seal-hover); color: var(--white); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--paper-deep); color: var(--ink); }
.band-ink .btn-secondary { color: var(--paper); border-color: var(--light-ink-text); }
.band-ink .btn-secondary:hover { background: var(--ink-raised); color: var(--paper); }
.btn-jade { background: transparent; color: var(--jade-dark); border-color: var(--jade-dark); }
.btn-jade:hover { background: var(--white); color: var(--jade-dark); }
.btn[disabled], .btn:disabled { background: var(--paper-deep); color: var(--ink-muted); border-color: var(--line); cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row .btn { flex: 1 1 100%; }
@media (min-width: 480px) { .btn-row .btn { flex: 0 1 auto; } }
.cta-help { margin-top: 12px; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 17px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-desktop { display: none; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 12px;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius-btn); color: var(--ink); cursor: pointer;
}
.menu-btn svg { width: 20px; height: 20px; }
.nav-mobile { display: none; border-top: 1px solid var(--line); background: var(--paper); }
.nav-mobile[data-open="true"] { display: block; }
.nav-mobile ul { list-style: none; margin: 0; padding: 8px 0 16px; }
.nav-mobile a { display: flex; align-items: center; min-height: 48px; padding: 0 var(--gutter); color: var(--ink); text-decoration: none; font-weight: 600; }
.nav-mobile a:hover, .nav-mobile a[aria-current="page"] { text-decoration: underline; }
.nav-mobile .btn { margin: 8px var(--gutter) 0; width: calc(100% - 2 * var(--gutter)); }
@media (min-width: 1120px) {
  .site-header .bar { min-height: 80px; }
  .menu-btn, .nav-mobile { display: none !important; }
  .nav-desktop { display: flex; align-items: center; gap: 28px; }
  .nav-desktop ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
  .nav-desktop a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; padding: 12px 0; }
  .nav-desktop a:not(.btn):hover, .nav-desktop a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
}

/* Hero */
.hero { padding: 48px 0 56px; }
.hero .eyebrow { display: block; font-size: 14px; line-height: 21px; color: var(--ink-muted); margin-bottom: 16px; }
.hero h1 { margin-bottom: 24px; }
.hero .lead { margin-bottom: 8px; }
.hero .btn-row { margin-top: 32px; }
.hero-visual { margin-top: 40px; display: flex; align-items: center; gap: 20px; }
.hanzi {
  font-family: var(--hanzi); font-weight: 400; color: var(--ink); line-height: 1;
  font-size: 64px; display: inline-block;
}
.hanzi-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.hanzi-wrap .gloss { font-size: 14px; line-height: 21px; color: var(--ink-muted); }
.byline { display: flex; align-items: center; gap: 12px; order: -1; }
.byline img { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; }
.byline span { font-size: 14px; line-height: 21px; color: var(--ink-muted); }
@media (min-width: 1024px) {
  .hero { padding: 96px 0; }
  .hero .inner { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; }
  .hero .text { grid-column: span 7; }
  .hero-visual { grid-column: span 5; margin-top: 0; flex-direction: column; align-items: flex-end; gap: 32px; }
  .hanzi { font-size: 120px; }
  .hanzi-wrap { align-items: flex-end; background: var(--paper-deep); padding: 16px 24px 20px; border-radius: 20px; }
  .byline { flex-direction: column; align-items: flex-end; text-align: right; }
  .byline img { width: 240px; height: 240px; }
  .byline span { font-size: 16px; line-height: 24px; }
}

/* Offer cards */
.offers { display: grid; gap: 16px; }
.offer {
  display: flex; flex-direction: column; gap: 16px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 24px;
  transition: border-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.offer:hover { border-color: #D6C6BA; transform: translateY(-2px); }
.offer-free { border-top: 3px solid var(--seal); background: var(--white); }
.offer .tag { font-size: 16px; line-height: 22px; font-weight: 600; color: var(--ink-muted); }
.offer-paid .tag { font-size: 24px; line-height: 30px; font-weight: 700; color: var(--ink); }
.offer h3 { font-size: 24px; line-height: 30px; }
.offer .rule { border-top: 1px solid var(--line); padding-top: 16px; margin-top: auto; }
.offer .go { font-weight: 600; }
@media (min-width: 768px) { .offer { padding: 32px; } }
@media (min-width: 1024px) { .offers { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* Situation rows */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { border-top: 1px solid var(--line); padding: 24px 0; }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows h3 { margin-bottom: 8px; }
.rows p { max-width: 60ch; }
.where-bridge { margin: 8px 0 0; font-weight: 600; }
@media (min-width: 1024px) { .where-bridge { grid-column: 5 / span 8; } }

/* Pattern example (teaching surface) */
.teach {
  background: var(--ink-raised); border-radius: var(--radius-card); padding: 20px;
}
.teach .zh { font-family: var(--hanzi); font-size: 28px; line-height: 42px; color: var(--paper); }
.teach .py { font-size: 17px; line-height: 27px; color: var(--light-ink-text); margin-bottom: 0; }
.teach .en { font-size: 17px; line-height: 27px; color: var(--paper); margin-bottom: 0; }
.teach .blank { display: inline-block; min-width: 2.2em; border-bottom: 2px solid var(--jade-tint); color: var(--jade-tint); text-align: center; }
.teach .fill { background: var(--jade-tint); color: var(--ink); border-radius: 6px; padding: 0 .12em; }
.teach .step + .step { margin-top: 32px; }
.teach .caption { font-size: 14px; line-height: 21px; color: var(--light-ink-text); margin-top: 16px; }
@media (min-width: 1024px) {
  .teach { padding: 32px; }
  .teach .zh { font-size: 40px; line-height: 56px; }
  .teach .py, .teach .en { font-size: 18px; line-height: 28px; }
}

/* Audio player */
.player { margin-top: 24px; }
.player .label { display: block; font-weight: 600; margin-bottom: 12px; }
.player-ui {
  min-width: 0; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px 16px; align-items: center;
  background: var(--ink-raised); border: 1px solid rgba(217, 205, 197, .18); border-radius: var(--radius-card); padding: 16px; min-height: 96px;
}
.band-paper .player-ui, .band-white .player-ui { background: var(--white); border-color: var(--line); }
.play {
  width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--jade); color: var(--white); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: background-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.play:hover { background: var(--jade-dark); }
.play:active { transform: scale(.97); }
.play svg { width: 20px; height: 20px; }
.play .ic-pause { display: none; }
.player-ui[data-state="playing"] .ic-play { display: none; }
.player-ui[data-state="playing"] .ic-pause { display: block; }
.wave { position: relative; height: 48px; cursor: pointer; min-width: 0; overflow: hidden; }
.wave-bars { display: flex; align-items: center; gap: 2px; height: 100%; }
.wave-bars span { flex: 1 1 0; min-width: 1px; background: rgba(217, 205, 197, .35); border-radius: 1px; min-height: 3px; transition: background-color var(--fast) linear; }
.band-paper .wave-bars span, .band-white .wave-bars span { background: var(--line); }
.wave-bars span.on { background: var(--jade); }
.wave input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.player-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 14px; line-height: 21px; color: var(--light-ink-text); }
.band-paper .player-meta, .band-white .player-meta { color: var(--ink-muted); }
.player-ui[data-state="error"] .player-meta { color: var(--seal); }
@media (min-width: 1024px) { .player { max-width: 440px; } }
.band-ink .player { max-width: none; }

/* Person story */
.person { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.person img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.person span { font-size: 14px; line-height: 21px; color: var(--ink-muted); }
@media (min-width: 1024px) {
  .person { flex-direction: column; align-items: flex-start; margin-bottom: 0; }
  .person img { width: 128px; height: 128px; }
  .person span { font-size: 16px; line-height: 24px; }
}

/* Form */
.form-block { margin-top: 24px; }
.form-block label { display: block; font-weight: 600; margin-bottom: 8px; }
.form-fields { display: flex; flex-direction: column; gap: 12px; }
.form-fields input[type="email"] {
  width: 100%; min-height: 52px; padding: 13px 16px; font: inherit; font-size: 16px;
  background: var(--white); color: var(--ink); border: 1px solid #D9CBC0; border-radius: var(--radius-btn);
}
.form-fields input[type="email"]:focus { border-color: var(--jade-dark); outline: none; box-shadow: 0 0 0 3px rgba(62, 100, 87, .25); }
.form-fields input[aria-invalid="true"] { border-color: var(--seal-hover); }
.field-error { color: var(--seal-hover); font-size: 14px; line-height: 21px; margin-top: 8px; }
.field-error:empty { display: none; }
@media (min-width: 560px) { .form-fields { flex-direction: row; } .form-fields input[type="email"] { flex: 1 1 auto; } .form-fields .btn { flex: 0 0 auto; } }
.form-note { margin-top: 12px; }
.msg { margin: 16px 0 0; padding: 16px; border-radius: var(--radius-btn); border: 1px solid var(--line); background: var(--white); }
.msg:empty, .msg[hidden] { display: none; }
.msg.is-ok { border-color: #CFE0D8; background: var(--jade-tint); }
.msg.is-err { border-color: #F0CFC7; background: #FBF1EE; color: var(--seal-hover); }
.subscribe[hidden] { display: none; }

/* Document preview */
.doc { background: var(--paper-deep); border-radius: var(--radius-card); padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 40px; }
.doc img { width: 100%; max-width: 240px; box-shadow: 0 12px 32px rgba(36, 28, 24, .10); background: var(--white); }
.doc .caption { font-size: 14px; line-height: 21px; color: var(--ink-muted); text-align: center; }
.doc .zoom { background: transparent; border: 1px solid var(--ink); color: var(--ink); min-height: 44px; padding: 10px 16px; border-radius: var(--radius-btn); cursor: pointer; font-weight: 600; font-size: 16px; }
.doc .zoom:hover { background: var(--white); }
@media (min-width: 768px) { .doc img { max-width: 320px; } }
@media (min-width: 1024px) { .doc { margin-top: 0; padding: 32px; } .doc img { max-width: 320px; } }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; }
dialog.lightbox::backdrop { background: rgba(36, 28, 24, .85); }
.lightbox .frame { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; }
.lightbox .scroller { max-height: calc(100vh - 96px); overflow: auto; -webkit-overflow-scrolling: touch; }
.lightbox img { max-width: min(96vw, 900px); width: auto; height: auto; background: var(--white); box-shadow: 0 12px 32px rgba(0,0,0,.4); }
.lightbox .close { position: fixed; top: 16px; right: 16px; min-height: 44px; padding: 10px 16px; background: var(--paper); color: var(--ink); border: 0; border-radius: var(--radius-btn); font-weight: 600; cursor: pointer; }
.lightbox .orig { margin-top: 12px; color: var(--paper); font-size: 14px; }

/* Hero document reference (Handbook) */
.doc-hero { margin-top: 32px; padding: 20px; }
.doc-hero img { max-width: 220px; }
@media (min-width: 1024px) { .doc-hero { margin-top: 0; padding: 32px; } .doc-hero img { max-width: 320px; } }

/* Content groups (Handbook, Practice) */
.groups { display: grid; gap: 0; border-top: 1px solid var(--line); }
.group { padding: 24px 0; border-bottom: 1px solid var(--line); }
.group h3 { margin-bottom: 8px; }
.group p { max-width: 60ch; }
.intro-note { margin-top: 24px; }
@media (min-width: 768px) {
  .groups { grid-template-columns: 1fr 1fr; column-gap: 48px; }
}


/* Price panel, steps, two columns, FAQ (Practice, Challenge) */
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin: 24px 0 16px; }
.price { font-family: var(--sans); font-weight: 700; font-size: 32px; line-height: 38px; letter-spacing: -.01em; margin: 0; }
@media (min-width: 1024px) { .price { font-size: 40px; line-height: 44px; } }
.price-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 24px; margin-top: 32px; }
.price-panel .price { margin-bottom: 16px; }
.price-panel .price-row { margin-top: 0; }
.price-panel .list { margin: 0; }
@media (min-width: 1024px) { .price-panel { margin-top: 0; padding: 32px; width: 100%; } }
.hero-visual .price-panel { align-self: stretch; }
.list { list-style: none; margin: 0 0 16px; padding: 0; }
.list li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--seal); }
.band-ink .list li::before { background: var(--jade-tint); }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 16px 48px; max-width: 60ch; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--paper-deep); color: var(--seal-hover); font-weight: 700; font-size: 15px; display: grid; place-items: center; }
.band-white .steps li::before { background: var(--paper); }
.two-col { display: grid; gap: 16px; }
.two-col > div { background: var(--white); border: 1px solid rgba(79, 122, 107, .25); border-radius: var(--radius-card); padding: 24px; }
.two-col h3 { margin-bottom: 12px; }
.two-col .list { margin: 0; }
@media (min-width: 768px) { .two-col { grid-template-columns: 1fr 1fr; gap: 24px; } .two-col > div { padding: 32px; } }
.faq-title { margin-bottom: 8px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 0; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-weight: 400; color: var(--ink-muted); transition: transform var(--fast) var(--ease); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 16px; max-width: 60ch; }
.faq details .note-meiqi { margin: 0 0 16px; }
.todo-block { padding: 24px; border: 1px dashed #D9B23A; border-radius: var(--radius-card); background: #FFF8DF; color: #5F4A00; max-width: 70ch; }

/* Contact template (Lessons): editable message, copy button, mailto */
.contact-template { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 20px; margin-top: 8px; }
.ct-meta { margin: 0 0 16px; display: grid; gap: 4px; font-size: 15px; line-height: 22px; }
.ct-meta div { display: flex; gap: 8px; flex-wrap: wrap; }
.ct-meta dt { color: var(--ink-muted); min-width: 64px; }
.ct-meta dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.contact-template label { display: block; font-weight: 600; margin-bottom: 8px; }
.contact-template textarea {
  display: block; width: 100%; min-height: 168px; padding: 13px 16px; resize: vertical;
  font: inherit; font-size: 16px; line-height: 26px; color: var(--ink);
  background: var(--white); border: 1px solid #D9CBC0; border-radius: var(--radius-btn);
}
.contact-template textarea:focus { border-color: var(--jade-dark); outline: none; box-shadow: 0 0 0 3px rgba(62, 100, 87, .25); }
.contact-template .btn-row { margin-top: 16px; }
.ct-status { margin: 12px 0 0; min-height: 21px; color: var(--jade-dark); }
.no-js .js-only { display: none; }
@media (min-width: 768px) { .contact-template { padding: 32px; } }

/* Second block in the same band, separated by a line (Codex 5.1: related sections may share a band) */
.split { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 16px; }
.split-ink { border-top-color: rgba(217, 205, 197, .2); margin-top: 32px; }
@media (min-width: 1024px) { .col-start-5 { grid-column: 5 / span 8; } .split { margin-top: 24px; } }

/* Portrait card (About hero). The source file is 256 px, so it is shown at 128 px (sharp on 2x screens). */
.portrait-card { margin: 0; display: flex; align-items: center; gap: 16px; }
.portrait-card img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.portrait-card figcaption { display: grid; gap: 2px; }
.portrait-card figcaption strong { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 28px; }
.portrait-card figcaption span { font-size: 14px; line-height: 21px; color: var(--ink-muted); }
@media (min-width: 1024px) {
  .portrait-card { flex-direction: column; align-items: flex-start; background: var(--paper-deep); border-radius: 24px; padding: 32px 40px; }
  .portrait-card img { width: 128px; height: 128px; }
  .portrait-card figcaption strong { font-size: 26px; line-height: 32px; }
  .portrait-card figcaption span { font-size: 16px; line-height: 24px; }
}

/* Social links with platform icons (About contact) */
.social-links { list-style: none; margin: 24px 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.social-links a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); font-weight: 600; text-decoration: none; }
.social-links a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.social-links .pl-icon { width: 24px; height: 24px; flex-basis: 24px; margin-top: 0; }

/* Challenge band */
.band-jade .btn-jade { margin-top: 8px; }
.status { font-weight: 600; margin-top: 16px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--paper); padding: 48px 0 56px; }
.site-footer .cols { display: grid; gap: 32px; }
.site-footer .brand { color: var(--paper); margin-bottom: 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.site-footer li a:hover { color: var(--jade-tint); }
.site-footer .group-title { font-size: 14px; line-height: 21px; color: var(--light-ink-text); margin-bottom: 8px; }
@media (min-width: 480px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-footer .cols .brand-col { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .site-footer { padding: 64px 0; } .site-footer .cols { grid-template-columns: 5fr 3fr 2fr 2fr; } .site-footer .cols .brand-col { grid-column: auto; } }

/* Sticky mobile CTA (EXPERIENCE-PRINCIPLES, UX 4) */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(251, 246, 242, .96); border-top: 1px solid var(--line);
  transform: translateY(100%); transition: transform var(--mid) var(--ease);
}
.sticky-cta[data-show="true"] { transform: translateY(0); }
.sticky-cta .btn { width: 100%; }
@media (min-width: 1024px) { .sticky-cta { display: none; } }

/* Consent banner (tracking loads only after Accept) */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--ink); color: var(--paper); border-top: 1px solid rgba(217,205,197,.2); padding: 20px 0 calc(20px + env(safe-area-inset-bottom)); }
.consent[hidden] { display: none; }
.consent a { color: var(--jade-tint); }
.consent-inner { display: grid; gap: 16px; }
.consent .btn-row { gap: 12px; }
.consent .btn-secondary { color: var(--paper); border-color: var(--light-ink-text); }
.consent .btn-secondary:hover { background: var(--ink-raised); color: var(--paper); }
@media (min-width: 768px) { .consent-inner { grid-template-columns: 1fr auto; align-items: center; } .consent p { margin: 0; max-width: 70ch; } }
.band-ink .cta-help a { color: var(--jade-tint); }
.platforms li { border-color: rgba(79,122,107,.25); display: flex; align-items: flex-start; gap: 16px; }
.pl-icon { width: 32px; height: 32px; flex: 0 0 32px; color: var(--ink); margin-top: 2px; }
@media (min-width: 1024px) { .pl-icon { width: 36px; height: 36px; flex-basis: 36px; } }

/* Reviews (student screenshots) */
.reviews-label { margin: 24px 0 0; font-weight: 700; }
.reviews-label + .reviews { margin-top: 12px; }
.reviews { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 12px; max-width: 70ch; }
.reviews img { display: block; width: 100%; height: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); }

/* Notes for Meiqi (visible in the preview, removed before release) */
.note-meiqi {
  margin-top: 16px; padding: 12px 16px; border: 1px dashed #D9B23A; border-radius: var(--radius-btn);
  background: #FFF8DF; color: #5F4A00; font-size: 14px; line-height: 21px;
}
.note-meiqi strong { font-weight: 700; }
.note-inline { display: inline-block; margin: 0; }
.band-ink .note-meiqi { background: #3A3320; border-color: #8A7A3A; color: #F3E7B5; }
.answer-meiqi {
  margin-top: 8px; padding: 12px 16px; border: 1px solid #6FAE7F; border-radius: var(--radius-btn);
  background: #E9F6EC; color: #1F4D2B; font-size: 14px; line-height: 21px;
}
.answer-meiqi strong { font-weight: 700; }
.band-ink .answer-meiqi { background: #1F3326; border-color: #4F8A5E; color: #CDEBD5; }

/* Reveal on scroll (EXPERIENCE-PRINCIPLES, Motion 1): below-the-fold sections only, never the hero */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity var(--mid) var(--ease), transform var(--mid) var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .offer, .play, .sticky-cta { transition: none; }
}

/* Legal pages */
.legal h1 { margin-bottom: 8px; }
.legal h2 { font-family: var(--sans); font-size: 22px; line-height: 29px; margin-top: 32px; margin-bottom: 8px; }
.legal .updated { color: var(--ink-muted); }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal .back { display: inline-block; margin-top: 24px; }

/* Home after the Tafelrunde (2026-10-24): signup in the hero, badge line, single quote */
.proof { margin-top: 16px; font-size: 14px; line-height: 21px; color: var(--ink-muted); }
.stars { color: var(--seal); letter-spacing: 2px; margin-right: 6px; }
.quote { margin: 32px 0 0; padding-left: 16px; border-left: 3px solid var(--jade); }
.quote blockquote { margin: 0; }
.quote blockquote p { font-family: var(--display); font-size: 20px; line-height: 28px; max-width: 46ch; }
.quote figcaption { margin-top: 8px; font-size: 14px; line-height: 21px; color: var(--ink-muted); }
.inside-note { margin-top: 24px; }
.cta-inline { margin-top: 32px; }
.hero .form-block { max-width: 36rem; }
@media (min-width: 1024px) { .inside .doc { position: sticky; top: 104px; } }

/* Unlisted audio pages of the Day 1-10 pack (/a/...) */
.audio-page .player { margin-top: 32px; max-width: 40rem; }
.audio-help { margin-top: 16px; }

/* Practice: preview of Day 1 */
.preview-day h3 { margin-top: 4px; }
.preview-questions { margin: 16px 0 8px; padding-left: 24px; }
.preview-questions li { margin-bottom: 16px; }
.preview-questions .zh, .preview-questions .py, .preview-questions .en { display: block; }
.preview-questions .zh { font-size: 20px; line-height: 30px; }
.preview-questions .py { font-size: 15px; color: var(--ink-muted); }
.preview-day .teach { margin-top: 24px; }
