#book-mockup {
  position: relative;
  width: 100%;
  min-height: 720px;
  height: min(82vh, 860px);
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 18%, rgba(21, 156, 175, 0.18), transparent 29rem),
    linear-gradient(135deg, #f7f4ec 0%, #e8eee9 48%, #f5f6f1 100%);
  color: #1f211c;
  font-family: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace;
}

#book-mockup * {
  box-sizing: border-box;
}

.book-mockup__stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.book-mockup__loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #f7f4ec;
  color: #6b6b63;
  transition: opacity 400ms ease;
  pointer-events: none;
}

.book-mockup__loader.is-hidden {
  opacity: 0;
}

.book-chevron {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 54px;
  height: 72px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(31, 173, 190, 0.7);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 70px;
  line-height: 1;
  font-weight: 200;
  cursor: pointer;
  transform: translateY(-50%);
  text-shadow: 0 8px 20px rgba(31, 173, 190, 0.14);
}

.book-chevron[hidden] {
  display: none;
}

#open-book {
  right: clamp(18px, 7vw, 104px);
}

#close-book {
  left: clamp(18px, 7vw, 104px);
}

.book-zoom-controls {
  position: absolute;
  right: clamp(14px, 3vw, 34px);
  bottom: clamp(14px, 3vw, 30px);
  z-index: 5;
  display: flex;
  gap: 8px;
}

.book-zoom-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(31, 33, 28, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: rgba(31, 33, 28, 0.74);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(28, 31, 28, 0.1);
  backdrop-filter: blur(16px);
}

.book-zoom-button:hover {
  background: #fff;
  color: #1f211c;
}

@media (max-width: 720px) {
  #book-mockup {
    min-height: 620px;
    height: 78vh;
  }
}
