/* The artwork belongs to the whole library, not a cropped header. */
.home.library{height:auto;min-height:100svh;display:block;overflow:clip;background:#f7edd9}
.home.library:before{position:fixed;inset:0;width:100%;height:100svh;background:linear-gradient(#ead8b570,#ead8b570),url(../optimized/listening-portrait-960-a9f0baf5166fb9fd.webp) center bottom/cover no-repeat;filter:sepia(.24) saturate(.72);pointer-events:none}
.home.library:after{display:none}
.home.library .home-header{min-height:0;height:125px;padding:22px 24px;align-items:flex-start;justify-content:flex-start}
.home.library .logo{width:136px;max-width:none}
.home.library .catalog{padding:0 25px 35px;background:none;display:block}
.home.library .catalog-heading{margin:0 0 15px;max-width:none;align-items:center}
.home.library .catalog h1{font-size:26px;margin:0}
.library-tools{display:flex;gap:10px;align-items:center;margin:0 0 24px}
.library-search{min-width:0;width:100%;border:0;border-bottom:1px solid #2d514654;border-radius:0;background:#fff9e780;color:#26493e;padding:10px 8px;font:inherit;outline-offset:3px}
.home.library .tiles{max-width:none;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 20px;align-items:start}
.home.library .tile{width:100%;max-width:170px;justify-self:center;transition:transform .2s}
.home.library .tile:hover{transform:translateY(-4px)}
.home.library .binding{aspect-ratio:2/3;box-shadow:3px 7px 14px #493f3e40;border-radius:2px 6px 6px 2px}
.home.library .tile b{background:#fff9e7b8;backdrop-filter:blur(5px);color:#24483d;width:calc(100% + 12px);margin:8px -6px 0;padding:8px 5px;min-height:46px;border-radius:3px;font:normal 14px/1.25 var(--serif);text-align:center;overflow-wrap:anywhere}
.shelf-empty{padding:20px 0;color:#294e41}
.shelf-pages{display:flex;justify-content:center;gap:20px;align-items:center;margin:28px 0 0}
.shelf-pages button{width:44px;height:44px;border:1px solid #2d514650;border-radius:50%;color:#2d5146;background:#fff9e7cc;font-size:24px}
.shelf-pages button:disabled{opacity:.35;cursor:default}
.shelf-pages span{font-size:13px;font-variant-numeric:tabular-nums}
.template-story .visual{display:flex;align-items:center;justify-content:center;background:#eadfc8;padding:70px 35px 25px}
.template-story .visual:before,.template-story .visual:after{display:none}
.template-story .scene-sheet{position:relative;width:auto;height:100%;aspect-ratio:2/3;max-width:100%;box-shadow:5px 12px 28px #493f3e40;transform:none}
.template-story .scene-sheet img{object-fit:contain;position:static;width:100%;height:100%}
.template-story .reading{background:#f7edd9;color:#2d5146}
.template-story .mini-brand{color:#2d5146;text-shadow:none}
.page h1[tabindex="-1"]:focus{outline:none}
.template-story .author{color:#61735d;font-size:12px;line-height:1.5;text-transform:none;letter-spacing:.4px}
.template-story .audio-pending{margin:20px 0 30px;display:flex;align-items:center;gap:12px;color:#6b785f;font-size:14px}
.audio-pending svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.5}
.pending-player .play{background:#2d5146;color:#fff6de;opacity:.65;cursor:default}.pending-player .skip{opacity:.45;cursor:default}.pending-player .seek{--progress:0%;opacity:.5;cursor:default}.pending-player .audio-pending{justify-content:center;margin:18px 0 24px}
.template-story .book-switch{margin-top:auto}
.template-story .book-switch button{min-height:44px;color:#2d5146}
@media(min-width:600px) and (orientation:portrait){
 .home.library .home-header{height:170px;padding:35px 50px}.home.library .logo{width:180px}
 .home.library .catalog{padding:0 58px 40px}.home.library .tiles{grid-template-columns:repeat(3,minmax(0,1fr));gap:35px 40px}
 .home.library .tile{max-width:175px}.home.library .tile b{font-size:18px;min-height:55px}
 .home.library .catalog h1{font-size:34px}.library-tools{max-width:420px;margin-bottom:35px}
 .template-story .visual{padding:80px 65px 30px}
}
@media(min-width:900px) and (orientation:landscape){
 .home.library{height:min(840px,calc(100svh - 56px));min-height:680px}
 .home.library:before{position:absolute;height:100%;background-image:linear-gradient(#ead8b570,#ead8b570),url(../optimized/listening-landscape-1600-885604d24a0db656.webp);background-size:cover;background-position:center}
 .home.library .home-header{height:110px;padding:24px 42px}.home.library .logo{width:130px}
 .home.library .catalog{width:58%;padding:0 40px 24px}
 .home.library .tiles{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 28px}
 .home.library .tile{max-width:120px}.home.library .tile b{font-size:14px;min-height:44px;padding:7px 5px}
 .home.library .catalog h1{font-size:29px}.library-tools{margin-bottom:22px}.library-search{max-width:320px}
 .shelf-pages{margin-top:20px}.template-story .visual{padding:70px 65px 50px}
}
@media(prefers-reduced-motion:reduce){.home.library .tile{transition:none}}
