:root{--forest:#123d30;--blue:#7899a5;--ice:#e8f3f6;--ink:#173d34}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:20px}body{margin:0;background:#fff;color:var(--ink);font:16px/1.5 Arial,sans-serif}a{color:inherit;text-decoration:none}button,input{font:inherit}button,a,summary{-webkit-tap-highlight-color:#ffffff30}img{max-width:100%}.library-header{position:relative;z-index:5;display:grid;grid-template-columns:44px minmax(0,1fr) 44px auto;align-items:center;gap:22px;max-width:none;min-height:105px;height:auto;padding:20px max(24px,calc((100vw - 1184px)/2));background:var(--blue);color:#fff;border:0;box-shadow:none;clip-path:none}.brand{justify-self:center;text-align:center;font:34px/1.15 Georgia,serif}.brand small{display:block;font:10px/1.5 Arial,sans-serif;letter-spacing:3.7px;margin-top:10px}.profile-link{display:grid;place-items:center;min-height:44px;min-width:44px}.library-menu summary{width:44px;height:44px;display:flex;flex-direction:column;justify-content:center;gap:6px;cursor:pointer;list-style:none}.library-menu summary::-webkit-details-marker{display:none}.library-menu summary span{display:block;width:27px;height:1.5px;background:#fff}.library-menu nav{position:absolute;left:max(20px,calc((100vw - 1184px)/2));top:calc(100% - 1px);width:290px;max-width:calc(100vw - 40px);display:flex;flex-direction:column;gap:0;background:#fff;color:var(--ink);padding:14px 24px;box-shadow:0 12px 25px #102f2926;border:1px solid #d4e2e4;margin:0}.library-menu nav a{padding:14px 0;border-bottom:1px solid #e2e9e9;font-size:15px}.library-menu nav a:last-child{border:0}.library-header .cart-trigger{color:#fff;background:transparent;border:1px solid #ffffffa3;border-radius:30px;font-size:12px;padding:8px 12px}.library-header .cart-count{background:#fff;color:#214b40}.library-header .cart-trigger:hover{background:#ffffff15;border-color:white}.library-intro{position:relative;z-index:1;text-align:center;background:var(--forest);color:white;padding:34px 24px 42px;border-radius:0 0 50% 10% / 0 0 20px 12px;margin-bottom:-14px}.library-intro h1{font:400 clamp(38px,4.8vw,60px)/1.15 Georgia,serif;letter-spacing:-.8px;margin:0 0 14px}.library-intro p{font-size:17px;margin:0;letter-spacing:.2px}.room-ribbon{height:160px;background-image:url('assets/reading-room.webp');background-position:center 76%;background-size:cover;background-color:#506967}.library-catalog{background:var(--ice);padding:30px max(24px,calc((100vw - 1184px)/2)) 35px}.section-heading{text-align:center;margin-bottom:22px}.section-heading h2{font:400 clamp(32px,4vw,46px)/1.15 Georgia,serif;margin:0 0 10px;letter-spacing:-.6px}.section-heading p{font:19px/1.4 Georgia,serif;margin:0}#book-search-form{max-width:650px;margin:0 auto 26px}#book-search-form label{display:block;font-size:12px;margin-bottom:7px;color:#40645c}.search-controls{display:flex;gap:0;align-items:stretch}.search-controls input{min-width:0;width:100%;flex:1;padding:13px 18px;border:1px solid #9db8bc;border-radius:28px 0 0 28px;background:#fff;color:var(--ink);font-size:15px;min-height:48px}.search-submit{display:flex;align-items:center;justify-content:center;gap:10px;padding:12px 22px;border:1px solid var(--forest);border-radius:0 28px 28px 0;background:var(--forest);color:#fff;cursor:pointer;min-height:48px}.search-status{text-align:center;margin:0 0 24px}.search-status:empty{display:none}.catalog{display:flex;flex-wrap:wrap;justify-content:center;gap:38px 40px}.book{flex:0 1 calc((100% - 80px)/3);min-width:0;display:grid;grid-template-rows:auto 60px 24px 32px 44px 40px auto;align-items:start;justify-items:center;text-align:center}.book[hidden]{display:none}.book-cover-frame{position:relative;width:min(100%,220px);margin:0 0 14px}.book-cover-wrap{position:relative;display:block;width:100%;aspect-ratio:320/453}.book-cover{display:block;width:100%;height:100%;object-fit:contain;object-position:center;box-shadow:none;border:1px solid #bed0d2;border-radius:1px}.pdf-badge{position:absolute;right:-8px;top:-5px;display:inline-flex;align-items:center;gap:5px;background:#fff;border:1px solid #c3d1d6;border-radius:22px;padding:5px 10px;color:#19354c;font:bold 11px/1.3 Arial,sans-serif;box-shadow:0 2px 5px #244f5a12}.book-share{position:absolute;bottom:8px;right:8px;width:32px;height:32px;display:grid;place-items:center;border:1px solid #d4dfe0;border-radius:50%;background:#fffffff0;color:#294f48;cursor:pointer}.book-share svg{width:17px;height:17px}.book-title{width:100%;align-self:center}.book-title h3{font:400 23px/1.15 Georgia,serif;margin:0}.title-format{display:none}.digital-format{font-size:12px;color:#3e5c67;line-height:1.4}.book-price{font:400 21px/1.4 Arial,sans-serif}.book>.button{display:flex;gap:8px;align-items:center;justify-content:center;justify-self:stretch;width:100%;max-width:240px;margin:0 auto;min-height:44px;border:1px solid var(--forest);border-radius:30px;background:var(--forest);color:#fff;font:15px/1.3 Arial,sans-serif;padding:10px 14px;cursor:pointer}.book>.button:hover{background:#28584a}.book>.button.is-in-cart{background:white;color:var(--forest)}.sample-link{text-decoration:underline;text-underline-offset:4px;font:16px/1.4 Georgia,serif;min-height:40px;padding:8px;display:flex;align-items:center}.book-share-status{font-size:12px;max-width:240px}.book-share-status:empty{display:none}.purchase-note{font-size:12px;color:#49646a;max-width:740px;text-align:center;margin:30px auto 0}footer{padding:20px max(24px,calc((100vw - 1184px)/2));background:#fff}.footer-nav{display:grid;grid-template-columns:1fr 1fr;gap:30px;border-block:1px solid #9bb2b7;text-align:center}.footer-nav a{padding:13px 8px;font:22px/1.4 Georgia,serif}.footer-nav a+a{border-left:1px solid #9bb2b7}.footer-meta{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 24px;padding-top:20px;font-size:11px;color:#54706b}.footer-meta a{text-decoration:underline;text-underline-offset:3px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible{outline:3px solid #ba8738;outline-offset:4px}.book-viewer{border:0;padding:0;width:min(1100px,96vw);height:90vh;max-width:96vw;max-height:90dvh;background:#edf3f5;color:var(--ink)}.book-viewer[open]{display:flex;flex-direction:column}.book-viewer::backdrop{background:#0b241ee6}.viewer-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 18px;border-bottom:1px solid #bccfd2;flex-shrink:0}.viewer-bar h3{font:24px/1.2 Georgia,serif;margin:0}.viewer-close{border:1px solid #92aaa9;border-radius:25px;background:#fff;padding:10px 16px;min-height:44px;cursor:pointer}.viewer-body{flex:1;min-height:0;padding:8px;display:flex;align-items:center;justify-content:center;background:#d8e0e2}.viewer-body img,.viewer-body iframe{width:100%;height:100%;object-fit:contain;border:0}.viewer-footer{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:18px;padding:10px;font-size:14px;flex-shrink:0}.viewer-footer[hidden]{display:none}.viewer-footer button,.viewer-footer .button{min-height:44px;padding:10px 16px;border:1px solid #9aafae;border-radius:24px;background:#fff;cursor:pointer}.viewer-footer .button{background:var(--forest);color:white}.cart-dialog{background:#f5fafb}@media(max-width:760px){.library-header{grid-template-columns:30px minmax(0,1fr) 32px;gap:10px;padding:14px 18px;min-height:83px}.brand{font-size:clamp(19px,5vw,29px)}.brand small{font-size:8px;letter-spacing:1.7px;margin-top:7px}.library-menu summary{width:30px;height:38px}.library-menu summary span{width:25px}.profile-link{min-width:32px;min-height:38px}.library-header .cart-trigger{position:fixed;right:14px;bottom:16px;z-index:20;min-height:46px;padding:9px 13px;background:#123d30;color:#fff;border-color:#fff;box-shadow:0 3px 14px #102f2940}.library-header .cart-trigger:hover{background:#28584a}.library-header .cart-trigger>span:not(.cart-count){display:inline;font-size:12px}.library-intro{padding:24px 20px 32px}.library-intro h1{font-size:40px;margin-bottom:11px}.library-intro p{font-size:14px;max-width:330px;margin:auto}.room-ribbon{height:100px;background-position:61% 77%}.library-catalog{padding:24px 18px 28px}.section-heading h2{font-size:34px}.section-heading p{font-size:17px}.section-heading{margin-bottom:19px}#book-search-form{margin-bottom:25px}.search-controls input{padding:12px 14px;font-size:13px}.search-submit{padding:10px 15px}.search-submit span{display:none}.catalog{gap:26px 20px}.book{flex-basis:calc((100% - 20px)/2);grid-template-rows:auto 56px 36px 30px 44px 40px auto}.book-cover-frame{width:min(100%,185px);margin-bottom:12px}.pdf-badge{right:-3px;font-size:10px;padding:4px 8px;gap:4px}.book-title h3{font-size:21px}.digital-format{font-size:11px;max-width:150px}.book-price{font-size:19px}.book>.button{font-size:12px;padding:9px 8px}.book>.button svg{width:17px;height:17px}.sample-link{font-size:15px}.purchase-note{font-size:11px;margin-top:23px}footer{padding:18px 18px 80px}.footer-nav{gap:8px}.footer-nav a{font-size:17px;padding:13px 4px}.footer-meta{font-size:10px;gap:10px 16px}.viewer-bar{padding:10px 12px}.viewer-bar h3{font-size:18px}}@media(max-width:360px){.brand{font-size:18px}.brand small{font-size:7px;letter-spacing:1px}.library-intro h1{font-size:35px}.section-heading h2{font-size:30px}.catalog{gap:24px 14px}.book{flex-basis:calc((100% - 14px)/2)}.book-title h3{font-size:19px}.book>.button{font-size:11px}.book>.button .book-cart-icon{display:none}.footer-nav a{font-size:15px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
/* Final catalogue-first composition. Covers keep their original proportions. */
:root{--ice:#e1edf0;--blue:#7897a2}.room-photo{background:#45605b}.room-photo img{display:block;width:100%;height:auto;max-height:310px;object-fit:cover;object-position:center}.library-catalog{padding-top:36px}.section-heading{margin-bottom:18px}.section-heading h1{font:400 clamp(36px,4.5vw,54px)/1.15 Georgia,serif;margin:0 0 8px;letter-spacing:-.6px}.heading-ornament{display:flex;align-items:center;justify-content:center;gap:10px;font-size:14px;color:#49676d}.heading-ornament:before,.heading-ornament:after{content:'';height:1px;width:70px;background:#9bb1b8}.search-controls input{border-radius:28px 0 0 28px;border-right:0}.search-submit{background:white;color:#153d35;border-color:#9db8bc;border-left:0;border-radius:0 28px 28px 0}.search-submit span{display:none}#book-search-form label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.catalog{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-width:900px;margin:auto;gap:32px 40px}.book{display:grid;grid-template-rows:auto 58px 32px 46px auto;align-items:start;justify-items:start;text-align:left;min-width:0}.book-cover-frame{width:100%;max-width:none;margin:0 0 12px}.book-cover-wrap{aspect-ratio:auto;width:100%}.book-cover{width:100%;height:auto;aspect-ratio:auto;object-fit:contain;border:0;border-radius:0;box-shadow:none}.book-title{align-self:start}.book-title h3{font:400 19px/1.35 Arial,sans-serif}.book-price{font:bold 23px/1.3 Arial,sans-serif;justify-self:start}.book>.button{max-width:none;border-radius:10px;background:#477887;border-color:#477887;color:white;font-size:15px;justify-self:stretch}.book>.button:hover{background:#355f6c;border-color:#355f6c}.book>.button.is-in-cart{background:#f4fafb;border-color:#477887;color:#315b68}.cover-pdf-mark{position:absolute;left:50%;bottom:8%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:3px;color:white;filter:drop-shadow(0 1px 2px #0006);pointer-events:none}.cover-pdf-mark svg{width:30px;height:35px}.cover-pdf-mark>span{font:bold 13px/1 Arial,sans-serif}.book-share{top:9px;right:9px;bottom:auto;width:38px;height:38px;border:0}.book-share svg{width:22px;height:22px}.catalog-pagination{display:flex;align-items:center;justify-content:center;gap:16px;margin:28px 0 0}.catalog-pagination:empty{display:none}.catalog-pagination button{font:23px Georgia,serif;color:#173d34;background:transparent;border:0;border-bottom:1px solid transparent;min-width:40px;min-height:44px;cursor:pointer}.catalog-pagination [aria-current]{border-bottom-color:#173d34}.library-header .cart-trigger{background:#477887;color:white;border-color:#b7ccd2}@media(max-width:760px){.room-photo img{max-height:none;height:auto;object-fit:contain}.library-catalog{padding:30px 16px 28px}.section-heading h1{font-size:38px}.catalog{gap:28px 20px}.book{grid-template-rows:auto 54px 30px 44px auto}.book-title h3{font-size:16px;line-height:1.35}.book-price{font-size:20px}.book-cover-frame{width:100%;max-width:none}.book>.button{font-size:12px;border-radius:8px;padding:10px 6px}.book-share{width:30px;height:30px;top:7px;right:7px}.book-share svg{width:18px;height:18px}.cover-pdf-mark svg{width:25px;height:29px}.cover-pdf-mark>span{font-size:11px}.library-header .cart-trigger{background:#477887}.library-header .cart-trigger:hover{background:#355f6c}}@media(max-width:360px){.catalog{gap:24px 16px}.book-title h3{font-size:15px}.book>.button{font-size:11px}.section-heading h1{font-size:34px}}

/* Keep iOS search focus at the normal page scale; retain pinch zoom. */
.search-controls{min-width:0;width:100%}
.search-controls input{font-size:16px}
@media(max-width:760px){.search-controls input{font-size:16px}}

/* Share card rows so titles, prices and cart buttons align across each pair. */
.catalog{row-gap:6px}
.book{grid-row:span 5;grid-template-rows:subgrid;row-gap:6px;padding-bottom:24px}
.book-cover-frame{margin-bottom:2px;align-self:end}
.book-title{align-self:start}
.book-price{align-self:end}
.book>.button{margin:0;align-self:start}
.search-controls{border-radius:28px}
.search-controls:focus-within{outline:3px solid #ba8738;outline-offset:4px}
.search-controls input:focus-visible,.search-controls button:focus-visible{outline:none}
@media(max-width:760px){.catalog{row-gap:6px}.book{grid-template-rows:subgrid;row-gap:6px}.book-price{line-height:1.25}.book>.button{min-height:44px}}

.section-heading .library-subtitle{font:400 14px/1.4 Arial,sans-serif;color:#49676d;letter-spacing:.3px;margin:5px 0 14px}@media(max-width:760px){.section-heading .library-subtitle{font-size:13px;margin:4px 0 12px}}

/* Six books, consistent cover and action rows on every shelf. */
.catalog{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 32px;align-items:stretch}.book{grid-row:auto;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;padding:0 0 15px;gap:0;min-width:0}.book-cover-frame{width:100%;max-width:none;aspect-ratio:595/842;margin:0 0 12px;align-self:stretch;position:relative}.book-cover-wrap{display:flex;width:100%;height:100%;align-items:flex-end;justify-content:center}.book-cover{display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom}.book-title{font-size:20px;min-height:4.05em;margin:0 0 5px;width:100%;align-self:stretch}.book-title h3{font-size:inherit;line-height:1.35;margin:0}.book-price{display:flex;align-items:center;min-height:32px;margin:0 0 8px;font-size:21px}.book>.button{display:flex;align-items:center;justify-content:center;width:100%;max-width:none;min-height:46px;height:46px;margin:0;box-sizing:border-box;white-space:normal}.book-account-link{display:flex;align-items:center;justify-content:center;min-height:38px;margin-top:7px;border:1px solid #b8cdd4;border-radius:9px;color:#315b68;font:14px/1.3 Arial,sans-serif;text-align:center;padding:5px}.book-account-link:hover{background:#fff8}.book-share-status:empty{display:none}.book-share-status{margin-top:6px;font-size:12px;overflow-wrap:anywhere}@media(max-width:760px){.catalog{gap:26px 20px}.book-title{font-size:16px;min-height:4.05em}.book-price{font-size:19px}.book>.button{height:46px;min-height:46px;font-size:12px}.book-account-link{font-size:12px}.book-cover-frame{margin-bottom:10px}}@media(max-width:360px){.catalog{gap:22px 14px}.book-title{font-size:15px}.book>.button{font-size:11px}.book-account-link{font-size:11px}}

.book-price.price-pending{font-size:14px;line-height:1.2}

/* Compact, aligned catalog cards: cover, title, price, cart button. */
#books .book{grid-template-rows:auto 42px auto auto;align-content:start}
#books .book-cover-frame{margin-bottom:0}
#books .book-title{align-self:start;padding-top:2px}
#books .book-title{height:42px;display:flex;align-items:center;justify-content:flex-start;text-align:left}
#books .book-price{align-self:center;justify-self:start;width:100%;text-align:left;margin:0}
#books .book>.button{align-self:start;margin-top:0}
/* Lift the price and cart action together, keeping card rows aligned. */
#books .book-price,#books .book>.button{position:relative;top:-8px}
