:root{color-scheme:light;--ink:#183e49;--teal:#086c75;--paper:#fffaf0}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at top,#dbf0ec,#edf4f2 55%,#d5e8e5);color:var(--ink);font:17px/1.5 system-ui,-apple-system,sans-serif}button,a,select,summary{-webkit-tap-highlight-color:transparent}button,.utilities a,select{font:inherit;color:var(--ink);background:#fffdf6;border:1px solid #93b6b4;border-radius:13px;min-height:48px;padding:10px 18px}button,summary,select{cursor:pointer}button:hover:not(:disabled),.utilities a:hover{background:#e5f3ef}button:disabled{opacity:.38;cursor:default}button:focus-visible,a:focus-visible,select:focus-visible,summary:focus-visible,.stage:focus-visible,.zoom-scroll:focus-visible{outline:3px solid #c16b12;outline-offset:4px}a{color:var(--teal)}.skip{position:absolute;top:-80px;background:white;padding:12px;z-index:50}.skip:focus{top:10px}.reader{max-width:1320px;margin:0 auto;padding:26px 30px 20px}header{display:flex;justify-content:space-between;align-items:center;gap:15px}h1{font-family:"Bradley Hand","Segoe Print",Georgia,serif;font-size:clamp(30px,4vw,46px);line-height:1.12;margin:4px 0 8px}.eyebrow{font-size:11px;font-weight:750;letter-spacing:.12em;margin:0}.intro{margin:0;font-size:15px}.back{font-size:14px}.utilities{display:flex;flex-wrap:wrap;gap:9px;margin:22px 0 18px;align-items:center}.utilities a{text-decoration:none;font-size:15px}.utilities button{font-size:15px}.stage{perspective:1600px;touch-action:pan-y;outline:none;padding:12px 0 20px;user-select:none}.book{display:flex;justify-content:center;align-items:flex-start;transform-style:preserve-3d;min-height:180px}.page{width:50%;position:relative;background:var(--paper);box-shadow:0 18px 30px #244c4c26;border:1px solid #e5dbc4}.page img{display:block;width:100%;aspect-ratio:297/210;object-fit:contain}.book.single .page{width:50%;max-width:680px}.book:not(.single) .page:first-child{border-radius:5px 0 0 5px}.book:not(.single) .page:last-child{border-radius:0 5px 5px 0}.book:not(.single) .page:first-child:after{content:"";position:absolute;top:0;bottom:0;right:0;width:15px;background:linear-gradient(90deg,transparent,#533e221c);pointer-events:none}.book:not(.single) .page:last-child:after{content:"";position:absolute;top:0;bottom:0;left:0;width:15px;background:linear-gradient(90deg,#533e2222,transparent);pointer-events:none}.book.turn-forward{animation:forward .36s ease-out}.book.turn-back{animation:backward .36s ease-out}@keyframes forward{0%{transform:rotateY(-14deg);opacity:.5}100%{transform:none;opacity:1}}@keyframes backward{0%{transform:rotateY(14deg);opacity:.5}100%{transform:none;opacity:1}}.controls{display:flex;justify-content:center;align-items:center;gap:22px;margin:8px 0}.controls>button{min-width:145px;background:var(--teal);color:white;border-color:var(--teal);font-weight:650}.controls>button:hover:not(:disabled){background:#07525a}.position{text-align:center;min-width:155px}.position label{display:block;font-size:12px;margin-bottom:3px}.position select{min-height:44px;padding:5px 10px;max-width:160px}.position p{font-size:13px;margin:5px 0 0}.hint{text-align:center;font-size:13px;margin:10px 0 16px}details{max-width:780px;margin:18px auto;background:#fffaf0;border:1px solid #cad8d1;border-radius:14px;padding:15px 20px}summary{font-weight:650;min-height:28px}#current-text{font-size:20px;line-height:1.6}#current-text p{white-space:pre-line;border-top:1px solid #dfdfd3;padding-top:14px}.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}footer{text-align:center;margin-top:22px;font-size:15px}footer small{font-size:11px;opacity:.75}dialog{max-width:96vw;width:1200px;max-height:95vh;border:0;border-radius:18px;background:var(--paper);color:var(--ink);padding:18px}dialog::backdrop{background:#09272edd}.zoom-header{display:flex;align-items:center;justify-content:space-between;gap:20px}.zoom-header h2{margin:0;font-size:22px}.zoom-scroll{overflow:auto;max-height:72vh;border:1px solid #ccd4ca}.zoom-scroll>div{display:flex;width:max-content}.zoom-scroll img{width:1100px;height:auto;max-width:none}.mobile-copy{display:none}@media(max-width:700px){.reader{padding:20px 14px}header{align-items:flex-start}.back{font-size:12px;white-space:nowrap}.utilities{gap:7px}.utilities button,.utilities a{padding:9px 12px;font-size:13px}.page,.book.single .page{width:100%;max-width:none}.controls{gap:9px;justify-content:space-between}.controls>button{min-width:0;padding:10px 12px;font-size:15px}.position{min-width:105px}.position select{max-width:115px;font-size:14px}.mobile-copy{display:block;font-size:18px;line-height:1.5;white-space:pre-line;padding:18px 22px;margin:0;background:#fffdf7;border-top:1px solid #d6d5c5}.stage{padding-bottom:8px}.hint{font-size:12px}.intro{font-size:13px}}@media(prefers-reduced-motion:reduce){.book.turn-forward,.book.turn-back{animation:none}}.reader:fullscreen{overflow:auto;background:#edf4f2;padding:25px;max-width:none}.reader:fullscreen .book{max-width:1450px;margin:auto}
:root .page img{height:auto}
/* Keep the reader compact; image height follows its displayed width rather
   than the HTML fallback height, which created empty space above/below art. */
.reader{max-width:1480px;padding:14px 22px 12px}
h1{font-size:clamp(28px,3vw,38px);margin:2px 0 4px}
.utilities{margin:12px 0 8px}
.stage{padding:4px 0 8px}
.controls{margin:4px 0;gap:16px}
.hint{margin:6px 0 8px}
#audio-status:empty{display:none}
details{margin:10px auto;padding:10px 16px}
footer{margin-top:12px}
@media(max-width:700px){.reader{padding:12px 12px 10px}.mobile-copy{padding:12px 18px}.controls{gap:9px}.stage{padding:4px 0}}
