/* Hardcover construction uses static geometry, so depth survives reduced motion. */
.mountain-site .book-layout > .book-figure {
  width: 100%;
  max-width: 350px;
  min-width: 0;
}
.mountain-site .book-figure::before { content: none; }
.book-object {
  --book-thickness: 32px;
  --book-rise: 12px;
  --book-spine-wrap: 9px;
  position: relative;
  isolation: isolate;
  padding: var(--book-rise) var(--book-thickness) 0 0;
  filter: drop-shadow(8px 18px 14px #27372b40);
}
/* The wrapped spine closes the head of the binding between both cover boards. */
.book-object::before {
  content: '';
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: calc(var(--book-thickness) + var(--book-spine-wrap));
  height: calc(var(--book-rise) + 3px);
  background: linear-gradient(110deg, #755034, #b58b5c 36%, #906541 68%, #513824);
  clip-path: polygon(var(--book-thickness) 0, 100% 0,
    var(--book-spine-wrap) var(--book-rise), var(--book-spine-wrap) 100%,
    0 100%, 0 var(--book-rise));
  pointer-events: none;
}
.book-object::after {
  content: '';
  position: absolute;
  z-index: -1;
  left: 5%;
  right: -3%;
  bottom: -13px;
  height: 24px;
  border-radius: 50%;
  background: #293a2b40;
  filter: blur(12px);
}
.book-back-board {
  position: absolute;
  inset: 0 0 var(--book-rise) var(--book-thickness);
  border-radius: 2px 4px 3px 2px;
  background: linear-gradient(90deg, #64442e, #38291f);
  box-shadow: 1px 1px 2px #251c1699, inset -2px 0 #a77950;
}
.book-page-block::before,
.book-page-block::after {
  content: '';
  position: absolute;
  pointer-events: none;
}
/* The top page edge sits just inside the rigid cover boards. */
.book-page-block::before {
  inset: 3px 3px auto 4px;
  height: var(--book-rise);
  background: repeating-linear-gradient(0deg, #d3c9b3 0 .5px, #f2ead8 .5px 2px);
  clip-path: polygon(var(--book-thickness) 0, 100% 0, calc(100% - var(--book-thickness)) 100%, 0 100%);
}
/* Fine vertical rules describe individual pages across the exposed fore-edge. */
.book-page-block::after {
  top: 4px;
  right: 3px;
  bottom: 4px;
  width: calc(var(--book-thickness) - 2px);
  background: linear-gradient(90deg, #76674d55, transparent 30%, #fff9e544 70%, #76674d44),
    repeating-linear-gradient(90deg, #ded7c6 0 .5px, #f4eedf .5px 2px);
  clip-path: polygon(0 var(--book-rise), 100% 0, 100% calc(100% - var(--book-rise)), 0 100%);
}
.book-front {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-radius: 3px 2px 2px 3px;
  background: #583b29;
  border: 1px solid #614329;
  box-shadow: 2px 2px 3px #2f241c66;
}
.mountain-site .book-front img {
  width: 100%;
  height: auto;
  box-shadow: none;
}
.book-front::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(90deg, #25190f70, #fbe9c133 1.4%, #26180c40 2.2%,
    #fff0 4.5%, #fff0 96%, #fff6 99%, #24180f44);
  box-shadow: inset 1px 0 1px #fff6, inset 0 -2px 1px #38291966;
}
.book-figure figcaption { padding-top: 30px; }
@media (max-width: 800px) {
  .book-object { --book-thickness: 25px; --book-rise: 10px; }
}
@media (max-width: 540px) {
  .mountain-site .book-layout > .book-figure { max-width: 270px; }
}
@media print {
  .book-object { filter: none; }
  .book-object::after { display: none; }
}
