/* The shelf: a bookshop with a tangible, browsable centre of gravity. */
:root{--paper:#f5f0e6;--ink:#213a31;--red:#ac3c25;--line:#c9c6b9}
.wrap{width:min(1344px,calc(100% - 96px))}
.site-header{height:90px;border-bottom:0}
.wordmark{font-size:62px;letter-spacing:-3.6px;color:#a83725}
.wordmark span{color:inherit}
.site-header nav{gap:32px}
.nav-link{font-size:14px}
.hero{position:relative;grid-template-columns:.88fr 1.12fr;grid-template-rows:auto auto;gap:0 48px;padding:24px 0 44px;min-height:0}
.hero-copy{grid-column:1;grid-row:1;padding:16px 0 0}
.hero-copy>.eyebrow{font-size:11px;letter-spacing:1.5px;margin:0 0 28px}
.hero h1{font-size:clamp(70px,6.7vw,100px);line-height:.93;letter-spacing:-.055em;margin:0 0 24px;max-width:600px}
.hero h1 em{display:block;font-weight:400;color:#a83725}
.hero-description{font:18px/1.45 var(--serif);max-width:30ch;margin-bottom:20px}
.hero-link{background:var(--ink);color:var(--paper);padding:13px 19px;border:0;font-size:13px;gap:38px;min-height:46px}
.hero-link:hover{background:#354e3c}
.hero-art{grid-column:2;grid-row:1/3;height:512px;background:#e6a57e;overflow:hidden;isolation:isolate;position:relative;display:block}
.shelf-edition{position:absolute;left:26px;top:23px;font-size:10px;letter-spacing:2px;z-index:5;color:#71341e}
.shelf-circle{position:absolute;width:390px;height:390px;border:1px solid #ad664a;border-radius:50%;left:calc(50% - 195px);top:63px}
.shelf-circle:after{content:"";position:absolute;inset:38px;border:1px solid #ad664a66;border-radius:50%}
.hero-book,.shelf-book{position:absolute;padding:0;transition:transform .3s cubic-bezier(.2,.7,.2,1);border-radius:0}
.hero-book{width:242px;left:calc(50% - 128px);top:91px;transform:rotate(-9deg);z-index:3;max-width:none}
.hero-book img,.shelf-book img{width:100%;height:auto;display:block;box-shadow:10px 18px 24px #533a2d40}
.hero-book:hover{transform:translateY(-12px) rotate(-4deg)}
.shelf-book{width:190px;z-index:2}
.shelf-back{right:56px;top:87px;transform:rotate(14deg)}
.shelf-back:hover{transform:translateY(-14px) rotate(8deg);z-index:4}
.shelf-left{left:38px;top:135px;transform:rotate(-18deg)}
.shelf-left:hover{transform:translateY(-14px) rotate(-12deg);z-index:4}
.shelf-stamp{position:absolute;right:20px;bottom:25px;width:108px;height:108px;border-radius:50%;background:#a83725;color:#fff5df;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:11px;line-height:1.35;letter-spacing:1px;transform:rotate(10deg);z-index:5}
.shelf-stamp em{font:italic 25px/1 var(--serif);letter-spacing:-.5px;margin-top:3px}
.art-caption{left:25px;bottom:23px;font:italic 18px/1 var(--serif);letter-spacing:0;color:#71341e}
.hero-note{grid-column:1;grid-row:2;padding:26px 0 0;display:grid;grid-template-columns:1fr 1.15fr;column-gap:20px;align-content:end}
.hero-note>.eyebrow{font-size:10px;grid-column:1;margin-bottom:8px}
.hero-quote{font:italic 22px/1.15 var(--serif);grid-column:1;margin:0}
.hero-note .text-link{grid-column:2;grid-row:1/3;align-self:end;font-size:12px;gap:15px;padding-bottom:6px}
.catalogue{padding-top:23px}
.catalogue-top{min-height:48px}
.catalogue h2{font-size:38px}
.filter-row{margin:9px 0 24px;gap:27px}
.book-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:42px 32px}
.book-stage{background:var(--stage);height:320px;padding:25px;overflow:hidden;border:0}
.book-stage img{height:274px;width:auto;transition:transform .25s}
.book-stage:hover img{transform:translateY(-6px) rotate(-3deg)}
.folio{bottom:16px;left:17px;color:#425347}
.stage-arrow{bottom:12px;right:17px}
.book-meta{padding-top:18px}
.book-category{font-size:11px}
.book-title{font-size:32px;letter-spacing:-.7px}
.book-author{font-size:13px}
.book-summary{font-size:19px}
body.list-view .site-header{border-bottom:1px solid var(--line)}
body.list-view .book-stage{background:transparent}
.detail-cover{background:#e6d5c0}
.detail-topline,.detail-actions{background:#f5f0e6}
@media(min-width:1600px){.hero-art{height:550px}.hero-book{width:265px}.shelf-book{width:210px}.shelf-back{right:55px}.shelf-left{left:40px}}
@media(max-width:1100px){.wrap{width:calc(100% - 56px)}.hero{gap:0 28px}.hero h1{font-size:76px}.hero-art{height:450px}.hero-book{width:215px;left:calc(50% - 105px);top:95px}.shelf-book{width:165px}.shelf-back{right:16px;top:80px}.shelf-left{left:10px;top:139px}.shelf-stamp{width:85px;height:85px;right:15px;bottom:23px;font-size:9px}.shelf-stamp em{font-size:21px}.hero-note{display:block;padding-top:25px}.hero-note .eyebrow{display:none}.hero-quote{font-size:21px}.hero-note .text-link{font-size:12px}.hero-description{font-size:17px}.book-title{font-size:28px}}
@media(max-width:760px){.wrap{width:calc(100% - 40px)}.site-header{height:72px}.wordmark{font-size:44px;letter-spacing:-2.4px}.wordmark span{font-size:24px}.site-header nav{gap:19px}.nav-link{font-size:12px}.hero{grid-template-columns:1fr 1fr;gap:18px 14px;padding:14px 0 25px}.hero-copy{display:contents}.hero-copy>.eyebrow{grid-column:1/-1;font-size:10px;margin:0;letter-spacing:1.3px}.hero h1{font-size:clamp(43px,12vw,72px);line-height:.98;grid-column:1;grid-row:2;margin:0;align-self:center;letter-spacing:-.05em}.hero h1 br{display:none}.hero h1 em{margin-top:3px}.hero-description{display:none}.hero-link{grid-column:1/-1;grid-row:3;width:max-content;min-height:42px;padding:10px 15px;font-size:12px;gap:50px;margin-top:0}.hero-art{grid-column:2;grid-row:2;height:238px;align-self:center;overflow:visible;background:transparent;min-width:0}.hero-art:before{content:"";position:absolute;inset:0 -20px 0 -2px;background:#e6a57e;z-index:-1}.hero-book{width:132px;left:calc(50% - 66px);top:34px;transform:rotate(-8deg)}.hero-book:hover{transform:rotate(-5deg) translateY(-4px)}.shelf-book{width:95px}.shelf-back{right:-9px;top:26px;transform:rotate(12deg)}.shelf-left{left:-11px;top:63px;transform:rotate(-17deg)}.shelf-edition,.shelf-stamp,.shelf-circle,.art-caption,.hero-note{display:none}.catalogue{padding-top:20px;scroll-margin-top:15px}.catalogue-top{gap:12px;min-height:0}.catalogue h2{font-size:34px}.catalogue-actions{width:100%}.search{width:100%;min-height:42px}.search input{padding:10px 0}.filter-row{margin:7px -20px 19px;padding:0 20px;gap:23px}.book-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 18px}.book-stage{height:230px;padding:20px 15px 28px}.book-stage img{height:auto;max-height:185px;max-width:100%}.folio{left:10px;bottom:9px}.stage-arrow{right:9px;bottom:4px}.book-meta{padding-top:14px}.book-title{font-size:27px}.book-category{font-size:10px}.book-author{font-size:12px}.save-button{right:-5px}.site-footer .wordmark{font-size:38px}body.list-view .catalogue{margin-top:26px}body.list-view .book-stage{padding:0}}
@media(max-width:390px){.wrap{width:calc(100% - 32px)}.hero{padding-top:12px;gap:16px 13px}.hero-art{height:214px}.hero-art:before{right:-16px}.hero h1{font-size:48px}.hero-book{width:121px;left:calc(50% - 59px);top:26px}.shelf-book{width:87px}.shelf-back{right:-5px;top:20px}.shelf-left{left:-9px;top:58px}.site-header nav{gap:13px}.book-stage{height:211px;padding:17px 13px 25px}.book-stage img{max-height:170px}.book-title{font-size:25px}.filter-row{margin-inline:-16px;padding-inline:16px}}
@media(max-width:350px){.site-header{height:64px;gap:8px}.wordmark{font-size:37px}.wordmark span{font-size:20px}.nav-link{font-size:11px}.site-header nav{gap:11px}.hero{gap:13px 10px;padding-top:8px;padding-bottom:20px}.hero h1{font-size:42px}.hero-art{height:190px}.hero-book{width:108px;left:calc(50% - 53px);top:24px}.shelf-book{width:76px}.shelf-back{right:-3px;top:22px}.shelf-left{left:-6px;top:47px}.hero-link{min-height:40px;font-size:12px}.hero-copy>.eyebrow{font-size:10px}.catalogue{padding-top:17px}.catalogue h2{font-size:30px}.book-grid{gap:24px 14px}.book-stage{height:188px;padding:15px 12px 25px}.book-stage img{max-height:148px}.book-title{font-size:23px}}
@media(prefers-reduced-motion:reduce){.hero-book,.shelf-book,.book-stage img{transition:none}}

.hero-copy>.eyebrow,.hero-note>.eyebrow,.shelf-edition,.book-category,.book-author,.art-caption{font-size:12px}
@media(max-width:760px){.hero-art{overflow:hidden;width:calc(100% + 20px);margin-right:-20px;background:#e6a57e}.hero-art:before{display:none}.hero-copy>.eyebrow{font-size:11px}.book-category,.book-author{font-size:12px}.hero h1 br{display:none}.hero h1 em{font-size:1em}}
@media(max-width:390px){.hero-art{width:calc(100% + 16px);margin-right:-16px}.hero-book{left:calc(50% - 64px)}.shelf-back{right:0}.shelf-left{left:-3px}}
@media(max-width:350px){.wordmark{font-size:32px}.wordmark span{font-size:19px;margin-left:3px}.site-header{gap:9px}.site-header nav{gap:10px}.nav-link{white-space:nowrap;font-size:11px;gap:5px}.hero h1{font-size:39px}.hero-copy>.eyebrow{font-size:10px}}

.hero-copy>.eyebrow{font-size:12px;letter-spacing:1.1px}

@media(max-width:350px){.nav-link{font-size:12px}.wordmark{font-size:30px}.wordmark span{font-size:18px}.site-header nav{gap:9px}.site-header{gap:7px}}

/* On a phone, give every displayed book its own reachable part of the shelf. */
@media(max-width:760px){.hero{grid-template-columns:1fr;gap:13px;padding:12px 0 24px}.hero-copy>.eyebrow{grid-column:1;grid-row:1}.hero h1{grid-column:1;grid-row:2;font-size:44px;line-height:1;max-width:650px}.hero h1 em{display:inline;margin:0}.hero-art{grid-column:1;grid-row:3;width:100%;margin:0;height:200px;overflow:hidden;background:#e6a57e}.hero-link{grid-column:1;grid-row:4;margin-top:0;min-height:42px}.hero-book{width:126px;left:calc(50% - 63px);top:13px;transform:rotate(-8deg)}.shelf-book{width:100px}.shelf-left{left:calc(50% - 145px);top:28px;transform:rotate(-17deg)}.shelf-back{right:calc(50% - 145px);top:18px;transform:rotate(12deg)}}
@media(max-width:390px){.hero h1{font-size:41px}.hero-art{height:186px}.hero-book{width:120px;left:calc(50% - 60px);top:11px}.shelf-book{width:94px}.shelf-left{left:calc(50% - 136px);top:24px}.shelf-back{right:calc(50% - 136px);top:16px}}
@media(max-width:350px){.hero{padding-top:8px;padding-bottom:20px;gap:10px}.hero h1{font-size:35px;line-height:1.02;letter-spacing:-1.4px}.hero-art{height:162px}.hero-book{width:103px;left:calc(50% - 51px);top:10px}.shelf-book{width:84px}.shelf-left{left:23px;top:21px}.shelf-back{right:20px;top:14px}.hero-link{min-height:40px}}

/* Bring the working shelf into the first view. */
.hero{grid-template-rows:auto;padding:16px 0 28px}.hero-copy{align-self:center;padding-top:0}.hero-copy>.eyebrow{margin-bottom:18px}.hero h1{font-size:clamp(64px,5.7vw,82px);line-height:.96;margin-bottom:20px}.hero-description,.hero-note{display:none}.hero-art{grid-row:1;height:360px}.hero-book{width:174px;left:calc(50% - 90px);top:55px}.shelf-book{width:144px}.shelf-back{right:58px;top:47px}.shelf-left{left:45px;top:87px}.shelf-circle{width:290px;height:290px;left:calc(50% - 145px);top:36px}.shelf-stamp{width:84px;height:84px;right:18px;bottom:17px;font-size:9px}.shelf-stamp em{font-size:20px}.art-caption{bottom:20px}.book-stage{height:230px;padding:20px}.book-stage img{height:192px}.book-meta{padding-top:13px}.book-title{font-size:29px}
@media(max-width:1100px) and (min-width:761px){.hero h1{font-size:62px}.hero-art{height:330px}.shelf-back{right:16px}.shelf-left{left:12px}.hero-book{width:164px}.shelf-book{width:124px}}
@media(max-width:760px){.hero{grid-template-columns:1fr;gap:12px;padding:8px 0 20px}.hero-copy>.eyebrow{display:none}.hero h1{grid-row:1;font-size:34px;line-height:1.03;margin:0;max-width:24ch}.hero-art{grid-column:1;grid-row:2;height:150px}.hero-link{display:none}.hero-book{width:98px;left:calc(50% - 49px);top:7px}.shelf-book{width:81px}.shelf-left{left:calc(50% - 116px);top:16px}.shelf-back{right:calc(50% - 116px);top:10px}.book-stage{height:168px;padding:14px 12px 24px}.book-stage img{height:auto;max-height:133px}.book-title{font-size:24px}.catalogue{padding-top:16px}.catalogue h2{font-size:30px}.filter-row{margin-bottom:14px}body.list-view .book-title{font-size:23px}}
@media(max-width:350px){.hero h1{font-size:31px;letter-spacing:-1.2px}.hero-art{height:138px}.hero-book{width:90px;left:calc(50% - 45px);top:7px}.shelf-book{width:75px}.shelf-left{left:calc(50% - 106px);top:14px}.shelf-back{right:calc(50% - 106px);top:9px}.book-stage{height:150px;padding:12px 10px 23px}.book-stage img{max-height:117px}.book-title{font-size:22px}}

/* The active search leads; the shelf's original covers stay in the first-visit composition. */
body.filtered-view .hero{display:none}
body.filtered-view .catalogue{padding-top:20px}
@media(max-width:760px){
 .hero-art{height:130px}
 .hero{padding-bottom:14px;gap:10px}
 .catalogue h2{font-size:27px}
 body:not(.list-view) .book-grid{grid-template-columns:1fr;gap:0}
 body:not(.list-view) .book-card{display:grid;grid-template-columns:76px minmax(0,1fr);gap:18px;padding:16px 0;border-top:1px solid var(--line)}
 body:not(.list-view) .book-stage{height:106px;padding:0;background:transparent;align-self:start}
 body:not(.list-view) .book-stage img{height:auto;width:76px;max-height:106px;max-width:100%}
 body:not(.list-view) .folio,body:not(.list-view) .stage-arrow{display:none}
 body:not(.list-view) .book-meta{position:relative;display:block;padding:0;min-height:106px}
 body:not(.list-view) .book-title{font-size:27px;line-height:1.06;margin-top:4px}
 body:not(.list-view) .book-author{font-size:13px;padding-right:42px}
 body:not(.list-view) .book-summary{display:none}
 body:not(.list-view) .save-button{position:absolute;right:0;bottom:0;top:auto;margin:0}
 .detail-content{grid-template-columns:80px minmax(0,1fr);gap:0 17px;padding:20px 18px}
 .detail-cover img{width:80px}
 .detail-copy>.eyebrow{font-size:12px;margin-bottom:9px}
 .detail-copy h2{font-size:30px;line-height:1.04}
 .detail-author{font-size:13px;margin-top:10px}
}
@media(max-width:350px){
 .hero-art{height:122px}
 .hero h1{font-size:30px}
 body:not(.list-view) .book-card{grid-template-columns:70px minmax(0,1fr);gap:16px}
 body:not(.list-view) .book-stage{height:98px}
 body:not(.list-view) .book-stage img{width:70px;max-height:98px}
 body:not(.list-view) .book-meta{min-height:98px}
 body:not(.list-view) .book-title{font-size:25px}
 .detail-content{grid-template-columns:72px minmax(0,1fr);gap:0 15px;padding:18px 16px}
 .detail-cover img{width:72px}
 .detail-copy h2{font-size:28px}
}

@media(max-width:760px){.hero-book{width:86px;left:calc(50% - 43px)}.shelf-book{width:73px}}
@media(max-width:350px){.hero-book{width:80px;left:calc(50% - 40px)}.shelf-book{width:67px}}


/* Keep the existing navigation and reading action usable as text grows. */
.site-header{height:auto;min-height:90px;padding-block:10px;flex-wrap:wrap}
.site-header nav{min-width:0;max-width:100%;flex-wrap:wrap}
.nav-link{white-space:normal;min-width:0}
.book-title,.book-title button{overflow-wrap:anywhere}
dialog{max-width:calc(100vw - 24px);overflow:hidden}
dialog[open]{display:flex;flex-direction:column}
.detail-topline,.detail-actions{flex:none}
.detail-topline{position:relative}
.detail-content{min-height:0;overflow:auto;overscroll-behavior:contain;flex:0 1 auto}
.detail-actions{position:relative}
body.list-view .catalogue{width:min(760px,calc(100% - 96px));margin-inline:auto;min-height:0}
body.list-view .book-grid{grid-template-columns:minmax(0,1fr)}
body.list-view .book-card{padding-block:22px}
body.list-view .book-title{font-size:30px}
body.list-view .book-summary{max-width:44ch}
@media(max-width:760px){
 .site-header{min-height:72px;padding-block:8px;gap:8px 16px}
 .site-header nav{gap:4px 16px}
 .hero{padding-bottom:8px;gap:6px}
 .hero h1{font-size:32px}
 .catalogue{padding-top:12px}
 body.list-view .catalogue{width:calc(100% - 40px);margin-top:22px}
 body.list-view .book-title{font-size:25px}
 .detail-topline{gap:8px;padding-inline:16px}
 .close-dialog{gap:8px;min-width:44px;min-height:44px;flex:0 1 auto;text-align:left}
 .close-dialog>span:first-child{flex:none}
 .detail-review{gap:2px;flex:none}
 .detail-review button{min-width:44px;width:44px;min-height:44px;flex:none}
 .detail-review>span{min-width:0;white-space:nowrap}
 .detail-content{display:block;padding:18px}
 .detail-cover{float:left;width:88px;margin:0 16px 12px 0;background:transparent}
 .detail-cover img{width:88px;max-width:100%}
 .detail-copy{display:block;padding:0}
 .detail-copy>.eyebrow{margin-bottom:8px}
 .detail-copy h2{font-size:28px;line-height:1.08;letter-spacing:-.65px}
 .detail-author{margin:10px 0 0}
 .detail-description{clear:both;margin:20px 0 23px}
 .detail-actions{padding:12px 18px calc(12px + env(safe-area-inset-bottom,0px))}
}
@media(max-width:390px){body.list-view .catalogue{width:calc(100% - 32px)}}
@media(max-width:350px){
 .site-header{min-height:64px;gap:6px 10px}
 .site-header nav{gap:4px 10px}
 .hero h1{font-size:30px}
 .detail-topline{padding-inline:12px}
 .detail-content{padding:16px}
 .detail-cover{width:78px;margin-right:14px}
 .detail-cover img{width:78px}
 .detail-copy h2{font-size:26px}
}

/* The existing footer gives readers a route back to the working-product gallery. */
.site-footer{justify-content:space-between;gap:16px}
.site-footer .gallery-return{font-size:13px;line-height:1.5;display:inline-flex;align-items:center;gap:6px;min-height:44px;color:var(--ink);text-underline-offset:3px;max-width:100%}
