.uniform-cover-page{color-scheme:dark;margin:0;background:#0b0b11;color:#f6efdf;font:17px/1.6 system-ui,sans-serif}
.uniform-cover-page *{box-sizing:border-box}
.uniform-cover-page main{max-width:68rem;margin:auto;padding:clamp(1rem,4vw,3.2rem)}
.uniform-cover-page nav a,.uniform-cover-page a:visited{color:#f1d49b}
.uniform-cover-page nav{margin-bottom:clamp(1.1rem,4vh,2.4rem)}
.uniform-cover-page .book-opening{display:grid;grid-template-columns:minmax(0,21rem) minmax(0,1fr);align-items:center;gap:clamp(1.1rem,5vw,4.7rem)}
.uniform-cover-page .cover-frame{display:grid;max-height:70vh;place-items:center;min-width:0;text-decoration:none}
.uniform-cover-page .cover-frame img{max-width:100%;width:100%;max-height:70vh;object-fit:contain}
.uniform-cover-page h1{margin:.2em 0 .38em;color:#fff4dd;font:normal clamp(2rem,6vw,4.1rem)/1.07 Georgia,serif}
.uniform-cover-page .book-series{color:#edcb86;margin:0;font-size:.88rem;letter-spacing:.05em}
.uniform-cover-page .book-credit,.uniform-cover-page .book-note{font-size:.96rem;color:#e4d5bd}
.uniform-cover-page details{border-top:1px solid #8a6d3b;border-bottom:1px solid #8a6d3b;margin:1rem 0;padding:.55rem 0}
.uniform-cover-page details p{margin:.35rem 0}
.uniform-cover-page summary{cursor:pointer;min-height:38px}
.uniform-cover-page .cover-actions{display:flex;flex-wrap:wrap;gap:.65rem}
.uniform-cover-page .read-button{display:inline-flex;align-items:center;min-height:44px;padding:.4rem 1.05rem;background:#e9c77e;color:#1a1210;border:1px solid #e9c77e;border-radius:4px;font-weight:650;text-decoration:none}
.uniform-cover-page .read-button.alt{background:transparent;color:#f1d49b}
.uniform-cover-page a:focus-visible,.uniform-cover-page summary:focus-visible{outline:3px solid #ffe39d;outline-offset:4px}
html.wonderland-shelf-page{height:auto;overflow-y:auto;overscroll-behavior:auto}
html.wonderland-shelf-page body.quadrant-shelf{height:auto;min-height:100vh;min-height:100dvh;overflow:visible}
.quadrant-shelf .story-main,.quadrant-shelf .story-library{height:auto;overflow:visible}
.quadrant-shelf .uniform-shelf{height:auto;grid-template-rows:none;grid-auto-rows:clamp(154px,30vh,290px)}
.uniform-shelf .quadrant-book img{border-radius:2px}
@media(max-width:620px){.uniform-cover-page .book-opening{grid-template-columns:1fr}.uniform-cover-page .cover-frame img{height:min(46dvh,28rem)}.uniform-cover-page .cover-copy{max-width:35rem;margin:auto;width:100%}}
/* Twelve covers, one quiet rack. Zoom and exceptionally short screens can still reach every title. */
.quadrant-shelf .story-main{padding:clamp(.4rem,1.5vh,1rem) 0!important;width:min(72rem,95%)}
.quadrant-shelf .story-library{padding:0;gap:0}
.quadrant-shelf .story-library>.eyebrow,.quadrant-shelf .story-intro,.quadrant-shelf>.wonder-footer{display:none}
.quadrant-shelf .story-library>h1{margin:0 0 clamp(.45rem,1.7vh,1rem);font-size:clamp(1.35rem,5.8vw,2.7rem)}
.quadrant-shelf .uniform-shelf{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(.25rem,1.2vw,.65rem);grid-auto-rows:auto;max-width:none}
.quadrant-shelf .uniform-shelf .quadrant-book{min-height:0;min-width:0;padding:.23rem .15rem;gap:.2rem;display:flex;flex-direction:column;align-items:center;justify-content:flex-start}
.quadrant-shelf .uniform-shelf .quadrant-book img{height:clamp(3.15rem,12.8dvh,7.2rem);width:100%;max-height:none;object-fit:contain}
.quadrant-shelf .uniform-shelf .quadrant-book span{font:600 clamp(.69rem,2.85vw,.94rem)/1.13 system-ui,sans-serif;text-wrap:balance;overflow-wrap:anywhere}
.quadrant-shelf .shelf-original{color:#eac888;font:500 .58rem/1.05 system-ui,sans-serif;text-align:center}
@media(min-width:725px),(max-height:470px) and (orientation:landscape){.quadrant-shelf .uniform-shelf{grid-template-columns:repeat(6,minmax(0,1fr))}.quadrant-shelf .uniform-shelf .quadrant-book img{height:clamp(4rem,19dvh,11rem)}}
@media(max-height:690px) and (orientation:portrait){.quadrant-shelf .uniform-shelf .quadrant-book img{height:clamp(2.55rem,10dvh,4.2rem)}}
@media(max-height:590px) and (orientation:portrait){.quadrant-shelf .uniform-shelf .quadrant-book img{height:clamp(2.15rem,8.2dvh,3.4rem)}}
.quadrant-shelf .uniform-shelf{height:auto;flex:0 0 auto;align-content:start}
.quadrant-shelf .uniform-shelf .quadrant-book img{flex:0 0 auto}
