@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Caslon+Display&display=swap');
:root{--bg:#eee9df;--ink:#292e29;--muted:#777a6f;--accent:#58644c}*{box-sizing:border-box}html{min-height:100%}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans',Arial,sans-serif}.grain{position:fixed;inset:0;pointer-events:none;opacity:.2;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.15'/%3E%3C/svg%3E")}.shell{max-width:1380px;margin:auto;min-height:100svh;padding:35px clamp(24px,5vw,84px);display:flex;flex-direction:column}header,footer{display:flex;align-items:center;justify-content:space-between;gap:15px}.wordmark{text-decoration:none;color:var(--ink);font-weight:700;letter-spacing:.2em;font-size:13px}.edition,footer,.eyebrow,.byline{font-size:10px;letter-spacing:.18em;font-weight:700;color:var(--muted)}.stage{flex:1;display:flex;flex-direction:column;justify-content:center;max-width:840px;width:100%;margin:auto;padding:70px 0}.eyebrow{display:flex;align-items:center;gap:15px;color:var(--accent)}.line{width:32px;height:1px;background:#9ba393}.quote-wrap{position:relative;margin-top:30px}.open-mark{font-family:Georgia,serif;font-size:100px;line-height:1;color:#b6bbaa;position:absolute;top:-35px;left:-52px}blockquote{font-family:'Libre Caslon Display',Georgia,serif;font-size:clamp(32px,4.2vw,62px);line-height:1.25;letter-spacing:-.025em;margin:0;max-height:45vh;overflow:auto;padding:4px 12px 4px 0;scrollbar-width:thin}blockquote.small{font-size:clamp(23px,2.7vw,38px)}blockquote.tiny{font-size:clamp(19px,2.2vw,29px)}.byline{margin-top:30px}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:60px}button{font:inherit;cursor:pointer}.primary{background:var(--accent);color:#fff;border:1px solid var(--accent);padding:17px 22px;font-size:12px;font-weight:600;display:flex;gap:40px;align-items:center;justify-content:space-between}.primary:hover{background:#414d38}.secondary{background:transparent;border:1px solid #b9bcb1;padding:16px 19px;font-size:12px;color:var(--ink)}.secondary:hover{background:#e2e1d6}.status{min-height:20px;font-size:12px;color:var(--accent);margin-top:12px}footer{border-top:1px solid #c7c9bd;padding-top:20px;flex-wrap:wrap}.footer-btn{background:none;border:0;color:var(--accent);font-size:11px;letter-spacing:.1em;font-weight:700}#count{border:1px solid #b8c0b1;border-radius:30px;padding:2px 7px}dialog{border:1px solid #c7c9bd;background:#f4f0e7;color:var(--ink);width:min(650px,90vw);max-height:80vh;padding:28px;box-shadow:0 20px 80px #0002}dialog::backdrop{background:#252d25aa}.dialog-head{display:flex;justify-content:space-between;align-items:center}.dialog-head h2{font-family:Georgia,serif;font-weight:400;font-size:30px}.dialog-head button{border:0;background:none;font-size:20px}#savedList article{border-top:1px solid #ccc;padding:20px 0}#savedList p{font-family:Georgia,serif;font-size:20px;line-height:1.45}#savedList small{color:var(--muted)}#savedList button{border:0;background:none;text-decoration:underline;color:var(--accent);margin-left:15px}@media(max-width:700px){.shell{padding:25px}.edition{font-size:8px;max-width:135px;text-align:right}.stage{padding:70px 10px}.open-mark{position:static;display:block;height:50px;font-size:70px}blockquote{max-height:50vh}.actions{margin-top:35px}.primary{width:100%}.secondary{flex:1}footer{font-size:8px}}

/* Consistent typography and a viewport-contained reading experience */
html,body{height:100%;overflow:hidden}
.shell{height:100svh;min-height:0;overflow:hidden}
.stage{min-height:0;padding:clamp(16px,3vh,38px) 0;justify-content:center}
.quote-wrap{margin-top:clamp(12px,2vh,24px);min-height:0}
blockquote,blockquote.small,blockquote.tiny{font-size:clamp(23px,2.8vw,38px);line-height:1.35;max-height:none;overflow:hidden;letter-spacing:-.015em;padding:0}
.quote-wrap{height:clamp(140px,40vh,430px);overflow:hidden}
.byline{margin-top:12px}.actions{margin-top:clamp(15px,3vh,32px)}
.page-nav{display:flex;align-items:center;gap:14px;margin-top:12px;font-size:11px;color:var(--muted);letter-spacing:.08em}
.page-nav button{border:1px solid #b9bcb1;background:transparent;color:var(--ink);padding:7px 12px}
.page-nav button:disabled{opacity:.3;cursor:default}
@media(max-width:700px){.shell{padding:18px 22px}.stage{padding:14px 4px}.quote-wrap{height:42vh}blockquote,blockquote.small,blockquote.tiny{font-size:clamp(22px,5.2vw,30px)}.actions{margin-top:16px}.primary{padding:13px 16px}.secondary{padding:12px 14px}.open-mark{height:32px;font-size:52px}.quote-wrap{margin-top:8px}.byline{margin-top:8px}}
@media(max-height:650px){.quote-wrap{height:34vh}.stage{padding:8px 0}.actions{margin-top:10px}.open-mark{display:none}}

/* Optional expansion: closed view remains viewport-contained */
html.exploring,html.exploring body{height:auto;overflow:auto}
html.exploring body .shell{height:auto;min-height:100svh;overflow:visible}
html.exploring body .stage{flex:none;padding-top:clamp(30px,7vh,85px);padding-bottom:65px}
.exploration{margin-top:14px;border-top:1px solid #c7c9bd;width:100%}
.explore-toggle{display:flex;width:100%;align-items:center;justify-content:space-between;background:none;border:0;color:var(--accent);padding:17px 0;text-align:left;font-size:12px;letter-spacing:.055em;font-weight:600}
.explore-toggle:hover,.collapse-btn:hover{color:#252d25}
#exploreChevron{font-size:21px;font-weight:400}
.explore-content{padding:18px 0 32px;animation:appear .28s ease both}
.explore-content[hidden]{display:none}
.explore-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(25px,5vw,65px)}
.explore-kicker{font-size:10px;letter-spacing:.16em;font-weight:700;color:var(--accent);margin:0 0 12px}
.explore-content h2{font-family:'Libre Caslon Display',Georgia,serif;font-size:clamp(26px,3vw,37px);font-weight:400;margin:0 0 12px}
.explore-content p{font-size:15px;line-height:1.8;color:#4a5047;margin:0}
.prompt-label{margin-top:28px}.explore-content .reflection{font-family:Georgia,serif;font-style:italic;font-size:21px;line-height:1.5;color:var(--ink)}
.explore-disclaimer{font-size:11px!important;color:var(--muted)!important;border-top:1px solid #c7c9bd;margin-top:35px!important;padding-top:15px}
.collapse-btn{border:1px solid #b9bcb1;background:none;color:var(--accent);padding:13px 19px;font-size:12px;margin-top:25px}
@keyframes appear{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:700px){.explore-grid{grid-template-columns:1fr;gap:28px}.exploration{margin-top:4px}.explore-content p{font-size:14px}}
@media(max-height:650px){.explore-toggle{padding:10px 0}}
/* Ensure pagination measures the actual visible text box, not its unconstrained content. */
.quote-wrap blockquote{height:100%;max-height:100%;overflow:hidden;overflow-wrap:anywhere}
@media(max-width:700px){.quote-wrap blockquote{height:calc(100% - 32px);max-height:calc(100% - 32px)}}
.page-nav[hidden]{display:flex;visibility:hidden;pointer-events:none}
/* Preserve the same reading space whether a passage has one or several pages. */

/* Android Chrome: dynamic viewport, safe areas, and a reliable reading box. */
html,body{min-height:100%;height:auto}
.shell{height:100dvh;min-height:0;padding-bottom:max(14px,env(safe-area-inset-bottom));}
.stage{flex:1 1 auto;min-height:0}
.quote-wrap{flex:none;min-height:0}
.quote-wrap blockquote{height:100%;max-height:100%;overflow:hidden}
@media(max-width:700px){
 .shell{padding:14px 18px max(12px,env(safe-area-inset-bottom));}
 .stage{padding:8px 0}
 .quote-wrap{height:clamp(110px,35dvh,350px)}
 .quote-wrap blockquote{height:100%;max-height:100%}
 .actions{gap:7px;margin-top:12px}
 .primary{padding:12px 14px}
 .secondary{padding:10px 12px}
 .page-nav{margin-top:8px}
 .byline{margin-top:8px}
 .exploration{margin-top:4px}
}
@media(max-height:570px){
 .quote-wrap{height:28dvh}
 .open-mark{display:none}
 .stage{padding:3px 0}
 .actions{margin-top:6px}
}
/* Never trap users on very small or zoomed-in screens. */
@media(max-height:450px){
 html,body{overflow:auto}
 .shell{height:auto;min-height:100dvh;overflow:visible}
 .quote-wrap{height:140px}
}
html.exploring,html.exploring body{height:auto;overflow:auto}
html.exploring .shell{height:auto;min-height:100dvh;overflow:visible}
