:root{color-scheme:light;--forest:#10351d;--ink:#17351e;--purple:#75269d;--gold:#ffc82c}*{box-sizing:border-box}body{margin:0;background:var(--forest);color:#fff8df;font:17px/1.5 'Trebuchet MS',system-ui,sans-serif;text-align:center}a{color:inherit;text-underline-offset:4px}.reader-header{padding:22px 16px 10px}.reader-header>a{font-size:16px}.reader-header h1{font-size:clamp(25px,4vw,36px);line-height:1.15;margin:14px 0 8px}.reader-header p{margin:0;font-size:17px}#reader{max-width:1280px;margin:auto;padding:16px 24px 10px;background:var(--forest)}.reader-toolbar{display:flex;justify-content:center;flex-wrap:wrap;gap:14px;margin-bottom:18px}button,.download{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:11px 20px;border:2px solid #c286db;border-radius:24px;background:var(--purple);color:white;font:700 16px/1.35 'Trebuchet MS',system-ui,sans-serif;cursor:pointer;text-decoration:none}button:disabled{opacity:.4;cursor:default}button:hover:not(:disabled),.download:hover{background:#5b1a7e}a:focus-visible,button:focus-visible,#book:focus-visible{outline:4px solid var(--gold);outline-offset:5px}#book{display:flex;justify-content:center;align-items:center;gap:6px;min-height:240px;touch-action:pan-y;user-select:none;-webkit-user-select:none}#book img{display:block;width:calc(50% - 3px);height:min(66vh,760px);object-fit:contain;box-shadow:0 5px 18px #0003;animation:page-turn .25s ease-out;pointer-events:none}#book.single img{width:min(100%,550px)}.page-controls{display:grid;grid-template-columns:auto minmax(130px,230px) auto;align-items:center;justify-content:center;gap:16px;margin:20px 0 8px}#status{font-size:17px}.reader-help{font-size:16px;margin:12px 0 0;color:#e2edcc}footer{padding:12px 16px 24px;font-size:16px}footer p{margin:4px 0 10px}#reader:fullscreen,#reader.immersive{max-width:none;width:100%;height:100dvh;padding:max(12px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));display:flex;flex-direction:column;overflow:auto}#reader:fullscreen #book,#reader.immersive #book{flex:1;min-height:0}#reader:fullscreen #book img,#reader.immersive #book img{height:100%;max-height:calc(100dvh - 200px);max-width:calc(50% - 3px);width:auto}#reader:fullscreen #book.single img,#reader.immersive #book.single img{max-width:100%}#reader.immersive{position:fixed;inset:0;z-index:1000}body.reading-fullscreen{overflow:hidden}@keyframes page-turn{from{opacity:.5;transform:perspective(900px) rotateY(-6deg)}to{opacity:1;transform:none}}@media(max-width:760px){#reader{padding:12px 10px}#book img{width:100%;height:auto;max-height:70dvh;object-fit:contain}#book.single img{width:100%;max-width:550px}.page-controls{grid-template-columns:auto minmax(90px,1fr) auto;gap:8px}.page-controls button{padding:11px 14px}#status{font-size:16px}.reader-help{font-size:16px}#reader:fullscreen #book img,#reader.immersive #book img{max-width:100%;height:auto;max-height:calc(100dvh - 220px)}}@media(prefers-reduced-motion:reduce){#book img{animation:none}}
