/* The long scroll exists only after WebGL and the first two spreads are ready. */
.archive-index-label {
  margin-bottom: 28px;
  color: #b8c1b2;
}
.artbook-experience {
  --book-header: 76px;
  --book-travel: 840svh;
  position: relative;
  background: radial-gradient(ellipse at 50% 44%, #344332 0, #202c22 45%, #141e18 85%);
  border-block: 1px solid #b5bda42b;
}
.book-sticky {
  padding: 26px var(--gutter) 24px;
}
.book-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.book-topline .label {
  font-size: 10px;
  color: #bac5b1;
  letter-spacing: 0.1em;
}
.book-topline > a {
  font-size: 11px;
  min-height: 34px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.book-stage {
  position: relative;
  min-height: 0;
}
.book-canvas {
  position: absolute;
  inset: 0;
  display: none;
  touch-action: pan-y;
}
.book-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.book-fallback {
  max-width: 1300px;
  margin: 45px auto;
}
.book-fallback img {
  width: 100%;
  height: auto;
}
.book-fallback figcaption {
  display: block;
  text-align: center;
}
.book-controls {
  display: none;
}
.book-ready {
  height: calc(100svh + var(--book-travel));
}
.book-ready .book-sticky {
  position: sticky;
  top: var(--book-header);
  height: calc(100svh - var(--book-header));
  min-height: 530px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 8px;
}
.book-ready .book-canvas {
  display: block;
}
.book-ready .book-fallback {
  display: none;
}
.book-ready .book-controls {
  display: block;
}
.book-page-heading {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 24px;
  align-items: center;
}
.book-page-heading > .label {
  color: #b9c6ae;
  font-variant-numeric: tabular-nums;
}
.book-page-heading > p {
  font-family: var(--serif);
  font-size: clamp(23px, 2.4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.book-enlarge {
  background: none;
  border: 0;
  padding: 10px 0;
  font-size: 11px;
  min-height: 44px;
}
.book-enlarge:hover {
  color: #d6b98a;
}
.book-progress {
  height: 1px;
  background: #b8c4ab35;
  margin: 18px 0 5px;
}
.book-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: #cfb285;
  transform: scaleX(0);
  transform-origin: left;
}
.book-navigation {
  display: grid;
  grid-template-columns: 45px 1fr 45px;
  gap: 25px;
  align-items: center;
}
.book-arrow {
  font-size: 25px;
  min-height: 44px;
  min-width: 44px;
  background: none;
  border: 0;
  padding: 0;
}
.book-arrow:disabled {
  opacity: 0.25;
  cursor: default;
}
.book-chapters {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 4vw, 80px);
}
.book-chapters button {
  border: 0;
  background: none;
  padding: 10px 0;
  min-height: 44px;
  font: 500 10px/1.4 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #b6bfac;
}
.book-chapters button[aria-pressed='true'] {
  color: #f8e5bd;
}
.book-scroll-note {
  text-align: center;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #b6bfac;
  line-height: 1.5;
}
.book-scroll-note span {
  display: inline-block;
  margin-left: 8px;
  animation: scroll-cue 2.6s ease-in-out infinite;
}
@media (max-width: 1000px) {
  .book-page-heading {
    grid-template-columns: 75px 1fr auto;
    gap: 18px;
  }
  .book-chapters {
    gap: 24px;
  }
}
@media (max-width: 700px) {
  .artbook-experience {
    --book-header: 64px;
    --book-travel: 1000svh;
  }
  .book-sticky {
    padding: 18px 14px;
  }
  .book-topline {
    padding: 0 8px;
    gap: 15px;
  }
  .book-topline .label {
    max-width: 175px;
    font-size: 8px;
  }
  .book-topline > a {
    font-size: 9px;
  }
  .book-ready .book-sticky {
    min-height: 510px;
    gap: 0;
  }
  .book-stage {
    margin: 0 -14px;
  }
  .book-page-heading {
    grid-template-columns: 1fr auto;
    gap: 9px 18px;
    padding: 0 8px;
  }
  .book-page-heading > .label {
    grid-column: 1/-1;
    font-size: 9px;
  }
  .book-page-heading > p {
    font-size: 24px;
    max-width: 210px;
  }
  .book-enlarge {
    max-width: 95px;
    text-align: right;
    font-size: 10px;
    line-height: 1.6;
  }
  .book-navigation {
    grid-template-columns: 32px 1fr 32px;
    gap: 4px;
  }
  .book-chapters {
    justify-content: space-around;
    gap: 8px;
    flex-wrap: wrap;
  }
  .book-chapters button {
    font-size: 8px;
    letter-spacing: 0;
    min-height: 36px;
  }
  .book-arrow {
    min-width: 32px;
  }
  .book-progress {
    margin-top: 18px;
  }
  .book-scroll-note {
    font-size: 8px;
    margin-top: 4px;
  }
  .book-fallback {
    margin: 25px 14px;
  }
  .book-fallback figcaption {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .book-ready {
    height: auto;
  }
  .book-ready .book-sticky {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
    display: block;
  }
  .book-ready .book-canvas,
  .book-ready .book-controls {
    display: none;
  }
  .book-ready .book-fallback {
    display: block;
  }
  .book-scroll-note span {
    animation: none;
  }
}
