@font-face{font-family:Nunito;src:url('nunito.woff2') format('woff2');font-weight:400 900;font-display:swap}
:root{--ink:#19364a;--muted:#566e77;--teal:#286567;--teal-dark:#1b4d50;--cream:#f2f1ec;--paper:#faf7ef;--line:#cdd8da;--coral:#b77930;--sun:#e9ba71;font-family:Nunito,'Trebuchet MS',system-ui,sans-serif;color:var(--ink);background:var(--cream);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button,a,select{touch-action:manipulation}button{cursor:pointer}a{color:inherit}button:disabled{cursor:default;opacity:.35}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon-defs{position:absolute;width:0;height:0}button{color:inherit}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,.page-sheet:focus-visible{outline:3px solid #d79839;outline-offset:5px}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.topbar{max-width:1320px;margin:0 auto;padding:22px 52px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;font-size:22px;letter-spacing:-.6px}.brand strong{font-weight:850}.brand-icon{display:grid;place-items:center;background:var(--teal);width:40px;height:40px;color:#fff;border-radius:12px;transform:rotate(-5deg)}.brand-icon svg{width:23px;height:23px}.top-actions{display:flex;gap:12px}.text-button{display:flex;align-items:center;gap:8px;padding:10px 14px;border:0;background:none;text-decoration:none;font-weight:750;font-size:14px;border-radius:11px}.text-button:hover{background:#e9eddf}.text-button svg{width:18px;height:18px}.download{border:1px solid #bbcfc3;background:#fff9}
.reader{width:min(1180px,100%);margin:0 auto;display:grid;grid-template-columns:minmax(340px,1fr) 328px;gap:64px;padding:24px 42px 20px;align-items:start}.book-stage{min-width:0}.stage-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 4px 15px;font-size:12px;letter-spacing:1.2px;font-weight:800;color:var(--muted)}.small-button{display:flex;align-items:center;gap:6px;background:none;border:0;font-size:12px;letter-spacing:0;color:var(--muted);padding:6px;min-height:34px}.small-button:hover{color:var(--teal)}.small-button svg{width:16px;height:16px}.sheet-surround{perspective:1800px}.page-sheet{width:100%;max-width:620px;margin:auto;position:relative;background:var(--paper);border-radius:3px 9px 9px 3px;box-shadow:0 2px 1px #a7a58b55,3px 3px 0 #eeeada,6px 6px 0 #faf7eb,7px 7px 1px #d6d3c244,0 18px 35px -18px #314b4260;transform-origin:left center;overflow:hidden}.page-sheet:before{position:absolute;content:'';z-index:1;top:0;left:0;width:16px;height:100%;background:linear-gradient(90deg,#7678561b,transparent);pointer-events:none}.page-sheet img{display:block;width:100%;height:auto;aspect-ratio:612/792;object-fit:contain;background:var(--paper);user-select:none}.paper-edge{position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 1px #48321e50}.flip-next{animation:flipNext .42s cubic-bezier(.2,.65,.25,1)}.flip-prev{animation:flipPrev .42s cubic-bezier(.2,.65,.25,1)}@keyframes flipNext{0%{transform:rotateY(-15deg);filter:brightness(.95);opacity:.5}100%{transform:rotateY(0);filter:brightness(1);opacity:1}}@keyframes flipPrev{0%{transform:rotateY(9deg);opacity:.5}100%{transform:rotateY(0);opacity:1}}
.page-navigation{display:flex;align-items:center;justify-content:center;gap:24px;margin:23px auto 0}.round-button{width:42px;height:42px;border-radius:50%;border:1px solid #c5d3c6;background:var(--paper);display:grid;place-items:center;transition:background .15s,transform .15s}.round-button:hover:not(:disabled){background:#dfeadd;transform:translateY(-1px)}.round-button svg{width:19px;height:19px}.page-counter{border:0;background:none;font-size:15px;padding:10px 4px;min-width:118px}.page-counter strong{font-weight:850;margin:0 3px}.page-counter span{color:var(--muted);margin-left:5px}
.reading-companion{padding-top:41px;position:sticky;top:16px;min-width:0}.eyebrow{font-size:12px;letter-spacing:1.5px;color:var(--teal);font-weight:850}.chapter-heading h1{font-size:34px;font-weight:900;letter-spacing:-1px;line-height:1.12;margin:13px 0 13px;text-wrap:balance}.chapter-note{font-size:16px;line-height:1.55;color:var(--muted);margin:0}.player{margin-top:29px}.play-row{display:flex;gap:10px;align-items:center}.play-button{border:0;background:var(--teal);color:#fff;display:flex;justify-content:center;align-items:center;gap:10px;height:54px;padding:0 16px;border-radius:15px;font-size:17px;font-weight:800;flex:1;box-shadow:0 4px 0 #134e4633;transition:background .15s}.play-button:hover{background:var(--teal-dark)}.play-button svg{width:20px;height:20px;stroke-width:2.6}.play-button:not(.is-playing) svg{fill:#fff;stroke-width:1.4}.replay-button{width:50px;height:54px;border:1px solid #c6d4c8;background:transparent;border-radius:15px;display:grid;place-items:center}.replay-button:hover{background:#e5eddf}.replay-button svg{width:21px;height:21px}input[type=range]{width:100%;height:22px;margin:17px 0 0;accent-color:var(--teal);cursor:pointer;background:transparent}input[type=range]:disabled{cursor:default}.audio-times{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums;margin-top:0}.player-options{display:flex;gap:8px;align-items:center;justify-content:space-between;margin-top:20px}.auto-option{position:relative;display:flex;align-items:center;gap:10px;cursor:pointer;font-size:14px;font-weight:800}.auto-option input{position:absolute;opacity:0;width:39px;height:24px;left:0;margin:0}.auto-option small{display:block;color:var(--muted);font-weight:500;font-size:12px;margin-top:3px}.switch-track{display:block;width:38px;height:23px;border-radius:14px;background:#c7d0c2;position:relative;transition:background .2s;flex-shrink:0}.switch-track:after{content:'';position:absolute;width:17px;height:17px;background:white;border-radius:50%;top:3px;left:3px;box-shadow:0 1px 2px #0002;transition:transform .2s}.auto-option input:checked+.switch-track{background:var(--teal)}.auto-option input:checked+.switch-track:after{transform:translateX(15px)}.auto-option input:focus-visible+.switch-track{outline:3px solid #d79839;outline-offset:3px}.speed-option select{font-size:13px;border:1px solid #cfdbce;border-radius:9px;background:#fbf9ef;padding:8px 5px;max-width:91px;color:var(--ink)}.audio-status{font-size:12px;color:var(--muted);line-height:1.5;margin:17px 0 0;min-height:18px}.audio-status.error{color:#a82e36;font-weight:700}
.words-section{margin-top:25px;padding-top:19px;border-top:1px solid var(--line)}.words-heading{display:flex;align-items:center;justify-content:space-between;color:var(--muted);margin-bottom:11px}.words-heading h2{font-size:13px;font-weight:850;margin:0;letter-spacing:.4px}.words-heading svg{width:17px;height:17px}.transcript{max-height:225px;overflow:auto;overscroll-behavior:contain;scroll-behavior:smooth;scrollbar-width:thin;scrollbar-color:#bacabd transparent;padding-right:8px}.transcript p{font-size:18px;line-height:1.55;margin:0 0 6px;padding:4px 7px;border-left:3px solid transparent;border-radius:0 6px 6px 0;transition:background .12s}.transcript p.active{background:#fff0b5;border-color:#d09b35;color:#263e37}.transcript p.cue-heading{font-size:14px;font-weight:800;color:var(--muted)}.reader-tip{margin-top:23px;background:#e8eedf;border-radius:13px;padding:16px 18px}.tip-label{font-size:10px;font-weight:850;letter-spacing:1px;color:var(--teal)}.reader-tip p{font-size:14px;line-height:1.55;margin:5px 0 0}.audio-download{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:var(--muted);margin-top:19px;text-decoration:underline;text-underline-offset:3px}.audio-download svg{width:15px;height:15px}.site-footer{max-width:1110px;margin:12px auto 0;display:flex;justify-content:space-between;gap:20px;padding:19px 30px 24px;color:var(--muted);font-size:12px}.site-footer a{text-underline-offset:3px}
dialog{padding:0;border:1px solid #d8dfd1;border-radius:22px;color:var(--ink);background:var(--cream);box-shadow:0 30px 100px #1b333a33;max-height:88dvh}dialog::backdrop{background:#172e35a0;backdrop-filter:blur(4px)}#pages-dialog{width:min(890px,calc(100vw - 32px))}.dialog-heading{display:flex;align-items:center;justify-content:space-between;padding:24px 28px 14px;position:sticky;top:0;background:var(--cream);z-index:2}.dialog-heading h2{margin:6px 0 0;font-size:26px}.page-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;padding:12px 28px 28px}.page-tile{border:2px solid transparent;padding:8px;border-radius:12px;background:transparent;text-align:left;min-width:0}.page-tile:hover{background:#e4edde}.page-tile[aria-current=page]{border-color:var(--teal);background:#e5eddd}.page-tile img{display:block;width:100%;aspect-ratio:612/792;object-fit:contain;border-radius:3px;box-shadow:0 2px 5px #18342422;background:var(--paper)}.page-tile span{font-size:12px;color:var(--muted);display:block;margin:9px 0 3px}.page-tile strong{font-size:14px;line-height:1.3;display:block}.zoom-close{position:fixed;right:24px;top:22px;z-index:3;background:var(--paper)}#zoom-dialog{width:min(970px,calc(100vw - 20px));max-width:none;border-radius:8px}#zoom-image{display:block;width:100%;height:auto}.noscript{padding:30px;background:#fff2c9}
@media(min-width:1450px){.reader{width:1250px;grid-template-columns:minmax(400px,1fr) 350px;gap:76px}.reading-companion{padding-top:65px}}
@media(max-width:1000px){.reader{gap:30px;padding:20px 28px;grid-template-columns:minmax(310px,1fr) 285px}.chapter-heading h1{font-size:30px}.topbar{padding:19px 28px}.play-button{font-size:15px}.transcript p{font-size:17px}.player-options{flex-wrap:wrap;row-gap:12px}}
@media(max-width:760px){.topbar{padding:14px 18px}.brand{font-size:19px;gap:8px}.brand-icon{width:34px;height:34px}.top-actions{gap:3px}.text-button{font-size:13px;padding:8px 9px;gap:5px}.text-button svg{width:17px;height:17px}.reader{display:flex;flex-direction:column;padding:15px 18px 20px;gap:20px;max-width:580px}.book-stage{width:100%}.stage-heading{font-size:10px;letter-spacing:.9px;margin-bottom:10px}.page-sheet{max-width:480px}.page-navigation{margin-top:19px;gap:30px}.reading-companion{position:static;padding-top:4px;width:100%;display:flex;flex-direction:column}.chapter-heading h1{font-size:28px;margin:7px 0 8px}.chapter-heading .eyebrow{font-size:11px}.chapter-note{font-size:15px}.player{margin-top:19px}.play-row{gap:12px}.play-button{font-size:17px}.player-options{flex-wrap:nowrap}.speed-option select{max-width:none;padding:9px;font-size:14px}.auto-option{font-size:15px}.audio-status{font-size:13px}.words-section{margin-top:20px}.transcript{max-height:none}.transcript p{font-size:20px;line-height:1.6}.transcript p.cue-heading{font-size:15px}.reader-tip{margin-top:17px}.audio-download{font-size:14px;margin-top:18px}.site-footer{padding:7px 22px 25px;flex-direction:column;gap:9px;font-size:12px}.page-grid{grid-template-columns:repeat(3,1fr);gap:9px;padding:8px 16px 20px}.dialog-heading{padding:19px 20px 12px}.page-tile{padding:5px}.page-tile strong{font-size:12px}.page-tile span{font-size:11px}.reader-tip p{font-size:15px}}
@media(max-width:360px){.brand{font-size:17px}.topbar{padding:12px}.text-button{padding:8px}.download span{display:none}.reader{padding:12px}.page-grid{grid-template-columns:repeat(2,1fr)}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}

/* Lantern Hill: an illustrated mystery for independent readers. */
.brand-icon{border-radius:6px;transform:none;background:var(--ink);color:var(--sun)}
.chapter-heading h1{font-family:Georgia,serif;letter-spacing:-.7px;font-weight:700}
.reader-tip{border-radius:6px;background:#e5eceb;border-left:3px solid #c58a36}
.play-button,.replay-button{border-radius:8px}.stage-heading{color:var(--ink)}
.mobile-controls{display:none}
@media(min-width:761px){
  .topbar{padding-top:15px;padding-bottom:15px}
  .reader{gap:48px;padding-top:16px;grid-template-columns:minmax(310px,1fr) 350px}
  .page-sheet{max-width:min(620px,max(310px,calc((100dvh - 235px)*.7727)))}
  .page-navigation{margin-top:18px}.reading-companion{padding-top:15px}
  .chapter-heading h1{font-size:30px}.chapter-note{font-size:14px}
  .player{margin-top:20px}.words-section{margin-top:18px;padding-top:14px}
  .transcript{max-height:170px}.transcript p{font-size:17px}
  .reader-tip{margin-top:16px;padding:12px 15px}.audio-download{margin-top:12px}
}
@media(min-width:761px) and (max-width:1000px){.reader{grid-template-columns:minmax(310px,1fr) 285px;gap:28px}}
@media(max-width:760px){
  body{padding-bottom:88px}.mobile-controls{display:flex;align-items:center;gap:15px;position:fixed;bottom:0;left:0;right:0;z-index:5;padding:10px 18px max(10px,env(safe-area-inset-bottom));background:#faf7eff5;border-top:1px solid var(--line);box-shadow:0 -5px 20px #19364a12;backdrop-filter:blur(12px)}
  .mobile-controls .play-button{height:46px;font-size:15px}.mobile-controls .round-button{width:42px;height:42px;flex-shrink:0}
  .brand{font-size:18px}.chapter-heading h1{font-size:29px}
}
