.collection{padding-block:clamp(40px,5vw,78px)}
.collection-head,.reading-strip{display:flex;align-items:center;justify-content:space-between;gap:20px}
.collection-head h2{font:690 clamp(2.6rem,5vw,4.8rem)/1 var(--type);letter-spacing:-.075em}
.collection .codex-book{--cloth:#133765;--foil:#e9f0db;--w:clamp(132px,18cqw,218px);--h:clamp(196px,26cqw,304px);position:absolute;top:50%;left:50%;width:var(--w);height:var(--h);border:none;padding:0;background:none;color:var(--foil);cursor:pointer;transform-style:preserve-3d;text-align:left}
.collection .tone-1{--cloth:#285d95;--foil:#fff3d1}.collection .tone-2{--cloth:#213249;--foil:#d9c593}.collection .tone-3{--cloth:#b4d2ed;--foil:#142943}.collection .tone-4{--cloth:#245983;--foil:#d8eafe}.collection .tone-5{--cloth:#294750;--foil:#e6d9ae}.collection .tone-6{--cloth:#e1e7e8;--foil:#172e4e}
.bookfront,.binding{position:absolute;inset:0;color:var(--foil);border-radius:2px 5px 4px 2px;background:repeating-linear-gradient(90deg,#ffffff08 0 1px,transparent 1px 3px),linear-gradient(90deg,#0005,#fff1 3%,#0003 5%,transparent 8%),var(--cloth);box-shadow:inset 0 0 0 1px #0004,2px 3px 4px #1233}
.bookfront{padding:9% 10% 8% 13%;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden}
.bookfront:after{content:"";position:absolute;inset:4% 4% 4% 8%;border:1px solid currentColor;opacity:.44;pointer-events:none}
.bookfront small,.imprint{font:600 clamp(8px,.76cqw,11px)/1.18 var(--code);letter-spacing:.07em;text-transform:uppercase}
.bookfront strong{font:600 clamp(16px,2.05cqw,29px)/1.03 Georgia,serif;letter-spacing:-.035em;overflow-wrap:anywhere}
.cover-print{height:41%;position:relative;overflow:hidden;border-block:1px solid currentColor;display:grid;place-items:center}
.cover-print img{display:block;width:100%;height:100%;object-fit:cover;filter:grayscale(.65);mix-blend-mode:luminosity}
.cover-print i{width:62%;aspect-ratio:1;border-radius:50%;background:repeating-radial-gradient(ellipse at 40% 80%,transparent 0 4px,currentColor 5px,transparent 6px);transform:rotate(-22deg)}
.motif-1 .cover-print i{border-radius:0;transform:rotate(40deg) scale(.8);background:repeating-linear-gradient(35deg,transparent 0 4px,currentColor 5px,transparent 6px)}
.motif-2 .cover-print i{border-radius:50% 0;transform:rotate(35deg)}
.binding{width:19px;inset:0 auto 0 0;transform-origin:left;display:grid;place-items:center;font:600 11px/1 Georgia,serif}
.binding span{writing-mode:vertical-rl}
.codex-book:focus-visible .bookfront{outline:3px solid #3588ff;outline-offset:3px}
.reading-strip{align-items:flex-start}.book-pager{display:flex;align-items:center;gap:8px}.book-pager button{border:1px solid var(--rule);border-radius:50%;background:white;color:var(--cobalt);width:40px;height:40px;font:26px/1 var(--type);cursor:pointer}.book-pager button:hover{background:var(--cobalt);color:white}.book-count,.reading-note small{font:.76rem var(--code);color:var(--cobalt)}.reading-note{flex:1;max-width:55ch;min-height:130px}.reading-note h3{font:680 clamp(1.5rem,3vw,2.3rem)/1.12 var(--type);margin:5px 0;letter-spacing:-.05em}.reading-note p{line-height:1.5;color:var(--muted)}.reading-note a{display:inline-block;color:var(--cobalt);font-weight:650;text-decoration:underline;margin-top:8px}.collection [hidden]{display:none}
@media(max-width:680px){.collection-head{align-items:start;flex-direction:column;gap:12px}.book-pager{align-self:end;gap:4px}}
@media not all{.collection .codex-book{transition:none}}


.bookstage {
  container-type:inline-size;
  position:relative;
  isolation:isolate;
  overflow:hidden;
  width:100%;
  margin-block:clamp(10px,2vw,22px);
  height:clamp(268px,32vw,425px);
  perspective:1050px;
  perspective-origin:50% 38%;
}
.bookstage::before {
  content:"";
  position:absolute;
  inset:auto 0 6% 0;
  height:16%;
  pointer-events:none;
  background:
    radial-gradient(ellipse 29% 44% at 50% 52%,#16315138,transparent 100%),
    radial-gradient(ellipse 49% 48% at 50% 44%,#2b496220,transparent 100%);
}
.collection .codex-book {
  --w:clamp(125px,18cqw,218px);
  --h:calc(var(--w) * 1.42);
  --depth:clamp(17px,2.7cqw,32px);
  --half-depth:calc(var(--depth) / 2);
  transform-style:preserve-3d;
}
.bookfront,.bookback,.binding,.bookedge { backface-visibility:hidden; }
.bookfront { transform:translateZ(var(--half-depth)); }
.bookback {
  position:absolute; inset:0; border-radius:5px 2px 2px 4px;
  transform:translateZ(calc(-1 * var(--half-depth))) rotateY(180deg);
  background:linear-gradient(90deg,transparent 83%,#0005),var(--cloth);
  box-shadow:inset 0 0 0 1px #07152f45;
}
.binding {
  inset:0 auto 0 0; width:var(--depth); transform-origin:center;
  transform:translateX(-50%) rotateY(-90deg);
  border-radius:2px;
  background:linear-gradient(90deg,#0005,#fff2 45%,#0004),var(--cloth);
  box-shadow:inset 0 0 0 1px #07152f55;
}
.binding span { max-height:86%; overflow:hidden; }
.bookedge {
  position:absolute; display:block; border:solid var(--cloth);
  background:repeating-linear-gradient(90deg,#ece5d7 0 2px,#b7ab96 2px 3px,#f9f5e9 3px 5px);
  box-shadow:inset 0 0 0 1px #16264329;
}
.bookedge--fore {
  inset:0 auto 0 100%; width:var(--depth); border-width:2px;
  transform:translateX(-50%) rotateY(90deg);
}
.bookedge--top,.bookedge--bottom {
  left:0; width:100%; height:var(--depth); border-width:2px;
  background:repeating-linear-gradient(0deg,#f6efe1 0 2px,#c5baa6 2px 3px,#ece4d5 3px 5px);
}
.bookedge--top { top:0; transform:translateY(-50%) rotateX(90deg); }
.bookedge--bottom {
  top:100%; transform:translateY(-50%) rotateX(-90deg);
  background-color:#9c907d; background-blend-mode:multiply;
}
.reading-strip { justify-content:flex-start; }
@media(max-width:680px) {
  .bookstage { height:clamp(230px,51vw,320px); }
  .reading-strip { display:flex; flex-direction:column; align-items:stretch; gap:14px; }
  .reading-note { min-height:0; }
  .book-pager { align-self:flex-start; }
}

