.book-catalogue,.book-detail{max-width:1100px;margin:0 auto;padding:3rem 1.25rem 5rem}.book-catalogue h1,.book-hero h1{letter-spacing:-.045em;font-size:clamp(2.2rem,6vw,4.5rem);line-height:1.08}.book-search{flex-wrap:wrap;align-items:end;gap:.8rem;margin:2rem 0;display:flex}.book-search label{width:100%;font-weight:700}.book-search input{border:1px solid var(--border,#a5abb5);background:var(--background);min-width:180px;color:inherit;border-radius:.6rem;flex:1;padding:.75rem}.book-grid{grid-template-columns:repeat(auto-fill,minmax(min(240px,100%),1fr));gap:1.5rem;display:grid}.book-card{min-width:0;padding:1.25rem}.book-card h2{font-size:1.35rem}.book-cover{aspect-ratio:2/3;object-fit:cover;border-radius:.45rem;width:100%;max-width:280px;box-shadow:0 12px 24px #0002}.book-cover-placeholder{color:#fff;background:linear-gradient(140deg,#34533b,#172836);justify-content:center;align-items:center;font-family:Georgia,serif;font-size:2rem;display:flex}.book-hero{grid-template-columns:minmax(180px,280px) minmax(0,1fr);align-items:center;gap:3rem;margin:2rem 0 3rem;display:grid}.book-hero:not(:has(>img)){grid-template-columns:1fr}.book-detail>section{margin-top:3rem}.book-tagline{font-size:1.3rem}.book-description{white-space:pre-line;max-width:75ch;line-height:1.8}.book-editions{grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));gap:1.2rem;display:grid}.book-edition{min-width:0;padding:1.5rem}.book-edition h3{margin-top:.5rem}.book-facts{flex-wrap:wrap;gap:1rem 2rem;display:flex}.book-facts div{min-width:100px;max-width:100%}.book-facts dt{font-size:.82rem;font-weight:700}.book-facts dd{overflow-wrap:anywhere;margin:.3rem 0}.book-actions{flex-wrap:wrap;align-items:center;gap:.7rem;margin:1rem 0;display:flex}.book-access-note{opacity:.8;font-size:.85rem}.book-actions p{width:100%}.book-chapters{padding:0;list-style:none}.book-chapters li{border-bottom:1px solid var(--border,#a5abb5);justify-content:space-between;align-items:start;gap:1rem;padding:1rem 0;display:flex}.book-chapters p{max-width:65ch;margin:.4rem 0}.book-chapters a{flex-shrink:0}.book-reader{--reader-paper:#fff;--reader-ink:#1e2530;background:var(--reader-paper);color:var(--reader-ink);min-height:100vh;padding:1rem clamp(1rem,4vw,3rem) 4rem}.book-reader.reader-sepia{--reader-paper:#f4edda;--reader-ink:#3d3426}.book-reader.reader-night{--reader-paper:#101624;--reader-ink:#e8e9ec}.reader-toolbar{border-bottom:1px solid #8885;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;max-width:1100px;margin:auto;padding:1rem 0;display:flex}.reader-toolbar fieldset{border:0;align-items:center;gap:1rem;padding:0;display:flex}.reader-toolbar legend{font-size:.8rem}.reader-toolbar label{align-items:center;gap:.5rem;font-size:.9rem;display:flex}.reader-toolbar select{background:var(--reader-paper);color:var(--reader-ink);border:1px solid #8888;border-radius:.4rem;padding:.5rem}.reader-prose{max-width:68ch;font:var(--reader-size,20px)/1.85 Georgia,"Times New Roman",serif;overflow-wrap:anywhere;margin:4rem auto}.reader-prose h1{margin:1rem 0 2rem;font:700 2em/1.2 Georgia,serif}.reader-prose p{white-space:pre-line;margin:1.3em 0}.reader-prose .eyebrow{font:600 .7em/1.6 system-ui,sans-serif}.reader-pagination{flex-wrap:wrap;justify-content:space-between;gap:1rem;max-width:85ch;margin:3rem auto;display:flex}.reader-message{max-width:65ch;margin:4rem auto}.reader-message a{margin:1rem 1rem 0 0;display:inline-flex}.book-editor-tabs{flex-wrap:wrap;gap:.4rem;margin:1rem 0;display:flex}.book-editor-tabs button[aria-pressed=true]{color:#152112;background:#b5f36b}.book-editor-block{border:1px solid var(--border,#a5abb5);border-radius:.75rem;min-width:0;margin:1rem 0;padding:1.25rem}.book-editor-block>header{justify-content:space-between;align-items:center;gap:1rem;display:flex}.book-editor-list{flex-wrap:wrap;gap:.4rem;margin:.8rem 0;display:flex}.book-editor-list button{overflow-wrap:anywhere;max-width:100%}.book-editor-body textarea{min-height:320px;font-family:Georgia,serif;line-height:1.7}.book-editor .feature-pair,.book-editor label{min-width:0}.book-editor input,.book-editor textarea,.book-editor select{max-width:100%}.book-detail .feature-button,.book-catalogue .feature-button,.book-reader .feature-button{color:#142013;cursor:pointer;background:#b5f36b;border:1px solid #0000;border-radius:.6rem;justify-content:center;align-items:center;gap:.5rem;min-height:44px;padding:.8rem 1rem;font-weight:700;text-decoration:none;display:inline-flex}.book-detail .feature-secondary{color:inherit;background:0 0;border-color:currentColor}.book-detail .surface,.book-catalogue .surface{border:1px solid var(--border,#a5abb5);border-radius:.8rem}.book-detail button:disabled{opacity:.6;cursor:wait}@media (max-width:640px){.book-hero{grid-template-columns:1fr;gap:1.5rem}.book-hero>.book-cover{justify-self:center;max-width:210px}.book-chapters li{flex-direction:column}.reader-toolbar fieldset{flex-wrap:wrap;gap:.7rem}.reader-prose{margin:2rem auto}.book-catalogue,.book-detail{padding-top:2rem}.book-facts{gap:1rem}.book-editor .feature-pair{grid-template-columns:1fr}}.reader-setting{align-items:center;gap:.5rem;display:flex}
