:root {
  --paper: #fffefa;
  --forest: #244b43;
  --ink: #293d38;
  --accent: #916c96;
  --soft: #f7f3ec;
  --border: #e5ddd4;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #f6f2ed; color: var(--ink); font: 15px/1.6 system-ui, sans-serif; }
button, select { color: var(--forest); background: #fff; border: 1px solid #cbd6cc; border-radius: 9px; cursor: pointer; min-height: 40px; font: 12px/1.4 system-ui, sans-serif; padding: 6px 9px; }
button:focus-visible, select:focus-visible, a:focus-visible, .teen-word:focus-visible { outline: 3px solid #aa7fb7; outline-offset: 2px; }
button:disabled { cursor: default; opacity: .46; }
.reader-header { position: sticky; top: 0; z-index: 9; background: rgba(255,254,250,.97); border-bottom: 1px solid #e4ddd5; padding: 7px max(12px, calc((100vw - 920px)/2)); display: flex; align-items: center; justify-content: space-between; gap: 10px; backdrop-filter: blur(12px); }
.brand { display: flex; flex: 0 0 auto; align-items: center; }
.vt-approved-logo { display: block; width: clamp(128px, 20vw, 180px); height: auto; }
.controls { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 5px; }
.controls select { max-width: 180px; }
.reader-nav { max-width: 880px; margin: 9px auto; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 0 12px; font-size: 12px; }
.reader-nav a { color: var(--forest); text-decoration: none; font-weight: 700; padding: 7px 0; margin-right: auto; }
.reader-nav a:hover { text-decoration: underline; }
.reader-progress { font-size: 11px; font-weight: 700; color: #7a6c7e; white-space: nowrap; }
.tts-status { max-width: 840px; margin: auto; text-align: center; color: #926c77; font-size: 12px; }
.tts-status:empty { display: none; }
main { width: min(100%, 872px); padding: 0 12px 65px; margin: 0 auto; }
.paper { overflow: hidden; border-radius: 19px; border: 1px solid #e4ded6; background: var(--paper); box-shadow: 0 19px 42px #203c3521; }
.hero { display: grid; grid-template-columns: 39% 1fr; background: linear-gradient(117deg,#eee4ed,#fff9f2); }
.hero img { width: 100%; height: 100%; min-height: 430px; max-height: 570px; object-fit: cover; object-position: center 20%; }
.hero-copy { align-self: center; padding: 28px clamp(22px,4vw,44px); }
.over { color: #87628f; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { font: 700 clamp(33px,5vw,49px)/1.1 Georgia,serif; color: var(--forest); letter-spacing: .055em; margin: 16px 0 4px; }
.hero h2 { font: 400 clamp(20px,3vw,26px) Georgia,serif; color: #785e83; margin: 0 0 24px; }
.hero p { line-height: 1.68; margin: 0 0 16px; }
.hero .episode-title { font-weight: 750; color: #405b52; }
.hero p strong { font-size: 12px; }
.reading-tip { background: #f0f4ed; border-block: 1px solid #e1e8dd; text-align: center; padding: 12px 20px; color: #52695e; font-size: 13px; margin: 0; }
.scene { border-bottom: 1px solid #ebe4db; padding: 30px clamp(22px,8vw,92px) 36px; scroll-margin-top: 142px; }
.scene h3 { font: 600 clamp(24px,3vw,27px)/1.3 Georgia,serif; color: var(--forest); margin: 0 0 22px; }
.scene h3 small { display: inline-block; margin-right: 13px; color: #a17cad; font: 700 13px system-ui; }
.scene-translation { display: block; margin: 6px 0 16px 35px; color: #8e807f; font: 12px system-ui; }
.scene img { display: block; margin: 4px auto 27px; width: min(100%, 570px); height: auto; max-height: 760px; object-fit: contain; border-radius: 12px; box-shadow: 0 9px 23px #2637332a; }
.scene p { font: var(--reading-size,19px)/1.83 Georgia, 'Times New Roman', serif; color: #293b38; margin: 0 0 19px; overflow-wrap: anywhere; }
.teen-word { all: unset; display: inline; border-bottom: 1px dotted #a797ae; cursor: pointer; border-radius: 2px; }
.teen-word:hover, .teen-word:focus-visible { background: #fff2c8; }
.teen-word.selected { background: #f4d9a9; }
.teen-word.reading, .teen-sentence.reading { background: #f9e7a2; }
.endmatter { padding: 28px clamp(22px,8vw,92px); border-top: 1px solid #e8e1d8; }
.endmatter h2 { font: 600 28px Georgia,serif; color: var(--forest); }
.endmatter h3 { font: 600 21px Georgia,serif; margin-top: 27px; }
.word { display: grid; grid-template-columns: 136px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid #ebe5de; font-size: 13px; }
.word strong { color: var(--forest); }
.word em { font-size: 11px; margin-left: 5px; color: #8b9890; }
.say { min-height: 28px; border: 0; padding: 2px 6px; background: transparent; }
.quiz { padding: 15px; margin: 12px 0; border: 1px solid #e9ded6; background: #fbf7f2; border-radius: 12px; }
.quiz b { display: block; font-size: 14px; margin-bottom: 9px; }
.quiz label { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; margin: 7px 0; }
.quiz input { margin-top: 4px; accent-color: var(--forest); }
.primary-action { background: var(--forest); color: #fff; font-weight: 700; padding: 11px 20px; border-radius: 11px; margin-top: 8px; }
.reader-loading { padding: 45px 25px; text-align: center; color: #60746a; }
#result { color: #315a46; font-weight: 700; }
.reader-nav button, .reader-nav select { min-height: 42px; }
@media(max-width:680px) {
  .reader-header { align-items: flex-start; flex-wrap: wrap; padding: 7px 10px 9px; }
  .brand { width: 100%; }
  .vt-approved-logo { width: 142px; }
  .controls { justify-content: flex-start; width: 100%; }
  .controls button, .controls select { font-size: 11px; padding-inline: 7px; }
  .hero { grid-template-columns: 1fr; }
  .hero img { height: min(105vw,440px); min-height: 0; max-height: none; object-position: center 28%; }
  .hero-copy { padding: 20px; }
  .hero h1 { margin-top: 8px; }
  .scene { padding: 24px 17px 30px; scroll-margin-top: 210px; }
  .scene p { font-size: var(--reading-size,18px); line-height: 1.77; }
  .scene h3 { font-size: 23px; }
  .endmatter { padding: 21px 17px; }
  .word { grid-template-columns: 116px 1fr; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } }
