
.book-collection{
  width:min(1420px,calc(100% - 64px));
  margin:auto;
  padding:34px 0 34px;
}
.shelf-intro{position:relative;padding:18px 0 0}
.shelf-intro h1{
  font:400 clamp(42px,5vw,72px)/.98 Georgia,serif;
  letter-spacing:-.045em;
  margin:14px 0;
}
.shelf-intro h1 em{color:#d7a9b7}
.shelf-intro p{max-width:48ch;color:#c7cab9;line-height:1.55;margin:0}
.shelf-list-link{display:inline-flex;align-items:center;min-height:44px;color:#d7ed89}
.book-room-stage{
  position:relative;
  width:100vw;
  margin:8px 0 0 calc(50% - 50vw);
  isolation:isolate;
}
.book-room-stage[hidden]{display:none}
.book-room-fallback{
  position:absolute;
  z-index:-1;
  inset:0 0 44px;
  width:100%;
  height:calc(100% - 44px);
  background:radial-gradient(ellipse at 50% 50%,#22221f 0%,#181816 70%);
}
.book-room-canvas{
  display:block;
  position:relative;
  z-index:0;
  width:100%;
  height:clamp(350px,38vw,760px);
  cursor:grab;
  touch-action:pan-y;
  opacity:0;
  transition:opacity .22s ease-out;
}
.book-room-stage.is-ready .book-room-canvas{opacity:1}
.book-room-canvas:active{cursor:grabbing}
.book-room-stage figcaption{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  color:#d0d3bd;
  font-size:13px;
}
.book-room-controls{display:flex;align-items:center;gap:4px}
.book-room-stage button{
  min-width:44px;
  min-height:44px;
  color:#f1f0d9;
  background:#252720;
  border:1px solid #a6aa873e;
  cursor:pointer;
}
.book-room-stage button:hover,.book-room-stage button:focus-visible{
  border-color:#d7ed89;
  color:#d7ed89;
}
.book-catalog{padding:56px 0 36px;scroll-margin-top:145px}
.catalog-head{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:24px;
  margin-bottom:22px;
}
.catalog-head h2{font:400 clamp(25px,3vw,38px)/1.1 Georgia,serif;margin:8px 0 0}
.catalog-head label{display:grid;gap:6px;width:min(340px,100%);color:#c7cab9;font-size:13px}
.catalog-head input{
  width:100%;
  padding:12px;
  background:#22251e;
  border:1px solid #b9bba844;
  color:#f1f0d9;
  font:inherit;
  font-size:16px;
}
.book-catalog-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:26px 18px}
.book-catalog-grid article a{
  display:flex;
  flex-direction:column;
  gap:5px;
  height:100%;
  color:inherit;
  text-decoration:none;
}
.book-catalog-grid a:hover h3,.book-catalog-grid a:focus-visible h3{color:#d7ed89}
.book-catalog-grid img{display:block;width:100%;height:auto;aspect-ratio:10/7;object-fit:contain}
.book-catalog-grid .book-kicker{font-size:11px;color:#b9c0a5;margin-top:5px}
.book-catalog-grid h3{font:400 clamp(17px,1.65vw,24px)/1.12 Georgia,serif;margin:0}
.book-catalog-grid p{color:#c7cab9;font-size:13px;line-height:1.4;margin:0}
.book-catalog-grid p:nth-of-type(2){display:none}
.catalog-cta{padding-top:4px;color:#d7ed89;font-size:12px}
.catalog-note{max-width:68ch;color:#aeb49b;font-size:13px;line-height:1.6;margin:32px 0 0}
@media(max-width:700px){
  .book-collection{width:calc(100% - 36px);padding-top:20px}
  .shelf-intro{padding-top:0}
  .book-room-canvas{height:clamp(235px,73vw,375px)}
  .book-catalog{padding-top:36px}
  .catalog-head{align-items:start;flex-direction:column;gap:14px}
  .book-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 12px}
}

.book-room-page{overflow-x:clip}

.book-collection{padding-top:0}
.shelf-intro{padding:0}
.shelf-intro>div:first-child{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center;
  gap:12px;
  padding:28px 0 8px;
}
.book-room-page .shelf-intro h1{font-size:clamp(32px,3.7vw,64px);line-height:1.02;margin:0;grid-column:2;text-align:center;text-wrap:balance}
.shelf-intro>p{margin:22px 0 0}
.shelf-list-link{font-size:13px;white-space:nowrap;justify-self:end}
.book-room-stage{margin-top:0}
.book-room-canvas{height:max(390px,calc(100svh - 209px))}
.book-room-stage figcaption{margin-top:-56px;position:relative;pointer-events:none}
.book-room-stage button{pointer-events:auto}
.book-room-stage figcaption span{
  padding:9px 12px;
  background:rgba(24,24,22,.78);
  border-radius:3px;
}
@media(min-width:701px){
  .book-room-page .shelf-intro h1{font-size:clamp(30px,2.65vw,48px);opacity:.84}
}
@media(max-width:700px){
  .book-room-canvas{height:clamp(295px,87vw,420px)}
  .shelf-intro>div:first-child{display:flex;flex-direction:column;gap:1px;padding:16px 0 0}
  .book-room-page .shelf-intro h1{font-size:clamp(23px,6.2vw,38px)}
  .shelf-list-link{min-height:36px}
  .book-room-stage figcaption{gap:8px;font-size:12px;margin:0 auto;max-width:350px;padding:0 10px}
  .book-room-controls{gap:3px}
  .book-room-stage button{min-width:38px;min-height:38px;padding:0;font-size:16px}
}
@media(max-width:700px){
  .book-room-page .shelf-intro>p{margin-top:18px}
  .book-room-page .book-catalog{padding-top:26px}
}

.book-catalog-filter-row{
  display:flex;
  align-items:center;
  gap:16px;
  padding:12px 0;
  border-block:1px solid rgba(185,187,168,.24);
}
.book-category-filters{
  display:flex;
  flex:1;
  flex-wrap:wrap;
  gap:7px;
  min-width:0;
}
.book-category-filter,.book-map-shortcut{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:39px;
  padding:7px 11px;
  border:1px solid rgba(185,187,168,.34);
  background:transparent;
  color:#c7cab9;
  font:500 11px/1.25 'DM Mono',monospace;
  text-decoration:none;
  white-space:nowrap;
  transition:background .18s,color .18s,border-color .18s,transform .18s;
}
.book-category-filter{cursor:pointer}
.book-category-filter span{
  display:grid;
  place-items:center;
  min-width:20px;
  height:20px;
  padding:0 4px;
  border-radius:50%;
  background:rgba(185,187,168,.12);
  color:#aeb49b;
  font-size:9px;
}
.book-category-filter:hover,.book-map-shortcut:hover{transform:translateY(-1px);border-color:#d7ed89;color:#d7ed89}
.book-category-filter.is-active{border-color:#d7ed89;background:#d7ed89;color:#1b2116}
.book-category-filter.is-active span{background:#1b2116;color:#d7ed89}
.book-map-shortcut{flex:none;border-color:rgba(215,237,137,.5);color:#d7ed89}
.book-filter-results{margin:10px 0 18px;color:#aeb49b;font:11px/1.5 'DM Mono',monospace}
.book-category-filter:focus-visible,.book-map-shortcut:focus-visible{outline:2px solid #d7ed89;outline-offset:3px}
.book-catalog-grid article[hidden]{display:none!important}
#book-empty{margin:24px 0;padding:20px;border:1px solid rgba(185,187,168,.28);color:#d3d7c4}
@media(max-width:700px){
  .book-catalog-filter-row{align-items:stretch;flex-direction:column;gap:10px}
  .book-category-filters{flex:none;flex-wrap:nowrap;overflow-x:auto;padding:3px 1px 9px;scrollbar-width:thin;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
  .book-category-filter{flex:none;scroll-snap-align:start}
  .book-map-shortcut{align-self:flex-start}
}
