html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}
.home-subtitle {
  font-family: var(--serif);
  font-size: 1.45rem;
  color: var(--muted);
  margin: 0 0 24px;
}
.collection-card.is-opening .cover-wrap {
  transition: none;
  transform: none;
  scale: 1;
}
.collection-card.portal-active .cover-wrap {
  visibility: hidden;
}
.transitioning {
  overscroll-behavior: none;
}
#transition {
  position: fixed;
  inset: 0;
  z-index: 80;
  overflow: hidden;
  pointer-events: all;
}
#transition[hidden] {
  display: none;
}
#transition.turning-collection {
  perspective: 1800px;
}
.camera-world {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  will-change: transform;
  pointer-events: none;
}
.book-world {
  z-index: 2;
}
.camera-canvas {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--paper);
}
.snapshot-content {
  position: absolute;
  left: 0;
}
.portal-destination {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  overflow: hidden;
  isolation: isolate;
  background: var(--paper);
  will-change: clip-path;
}
.portal-frame {
  position: absolute;
  z-index: 1;
  border: 1px solid #cec7b5;
  box-shadow: inset 0 0 0 2px #f5f1e6;
  pointer-events: none;
}
.portal-frame.book {
  border-radius: 0 2px 2px 0;
}
.portal-frame.art {
  border-color: var(--line);
  border-radius: 2px;
  box-shadow: inset 0 0 0 2px var(--paper);
}
.destination-scene {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  transform-origin: 0 0;
  background: var(--paper);
  will-change: transform;
}
.portal {
  position: absolute;
  z-index: 2;
  perspective: 900px;
  transform-style: preserve-3d;
}
.portal-cover,
.flying-page {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: left center;
}
.portal-cover {
  transform-style: preserve-3d;
}
.cover-front,
.cover-inside {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 1px;
  box-shadow: 3px 6px 14px #1e384033;
  transition: box-shadow 650ms ease-in-out;
}
.cover-front {
  object-fit: fill;
  transform: translateZ(0.2px);
}
.cover-inside {
  transform: rotateY(180deg);
  background: linear-gradient(90deg, #f5f1e6 88%, #d9d4c5);
  border: 1px solid #cec7b5;
}
.cover-inside:after {
  content: '';
  position: absolute;
  inset: 5%;
  border: 1px solid #e4dece;
}
.flying-page {
  top: 2px;
  width: calc(100% - 2px);
  height: calc(100% - 4px);
  background: linear-gradient(90deg, #d4d4ca, #fffef9 13%, #fffef9 85%, #dfdfd4);
  border: 1px solid #dcddd3;
  border-radius: 0 2px 2px 0;
  box-shadow: 2px 3px 8px #1e38401a;
  transition: box-shadow 650ms ease-in-out;
  backface-visibility: visible;
}
.portal.shadows-fading .cover-front,
.portal.shadows-fading .cover-inside {
  box-shadow: 3px 6px 14px #1e384000;
}
.portal.shadows-fading .flying-page {
  box-shadow: 2px 3px 8px #1e384000;
}
.image-particle {
  position: absolute;
  z-index: 35;
  background-repeat: no-repeat;
  backface-visibility: hidden;
  transform-origin: center;
  will-change: transform, opacity;
}
.collection-arrow {
  position: fixed;
  top: 50%;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fafbf9f0;
  color: var(--accent);
  box-shadow: 0 3px 12px #192c3b08;
}
.collection-arrow.previous {
  left: 18px;
}
.collection-arrow.next {
  right: 18px;
}
.arrow-icon {
  display: block;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
a.collection-arrow:is(:focus-visible, .is-held) .arrow-icon {
  animation: wiggle 0.65s steps(1, end) infinite;
}
.collection-arrow.is-opening .arrow-icon {
  animation: none !important;
}
.collection-arrow[aria-disabled='true'] {
  opacity: 0.25;
  box-shadow: none;
}
.page-turn-sheet {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  overflow: hidden;
  background: var(--paper);
  backface-visibility: hidden;
  will-change: transform;
  pointer-events: none;
}
.outgoing-sheet {
  box-shadow: 12px 0 45px #142b3b26;
}
.page-turn-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
@media (max-width: 650px) {
  .collection-arrow {
    top: auto;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    width: 42px;
    height: 42px;
  }
  .collection-arrow.previous {
    left: 16px;
  }
  .collection-arrow.next {
    right: 16px;
  }
}
@media (hover: hover) and (pointer: fine) {
  a.collection-arrow:hover .arrow-icon {
    animation: wiggle 0.65s steps(1, end) infinite;
  }
}
