.story-transport {
  display: none;
}
.about-trigger {
  color: inherit;
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 2px 0;
  background: transparent;
  font: 12px/1.2 var(--mono);
}
.about-book {
  width: min(720px, 92vw);
  padding: clamp(26px, 4vw, 55px);
  border: 0;
  background: var(--paper);
  color: var(--ink);
  max-height: 85dvh;
}
.about-book::backdrop {
  background: #0b231ddd;
}
.about-book .close {
  position: absolute;
  top: 8px;
  right: 8px;
}
.about-book .launch-note {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 0;
}

@media (scripting: enabled) {
  /* Paint the cover on the first frame, before modules set the active scene. */
  html:not(.story-ready) #story > [data-story-scene]:not(#book) {
    display: none;
  }
}
html.story-ready {
  overflow: hidden;
  overscroll-behavior: none;
  scroll-behavior: auto;
}
.story-ready .story-store {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}
.story-store .mast,
.story-store .notice,
.story-transport {
  flex: none;
}
.story-store .mast {
  background: var(--paper);
}
.story-store .mast-in {
  width: 94%;
  min-height: clamp(55px, 7.3vh, 72px);
}
.story-store .mast-in nav {
  gap: clamp(12px, 1.65vw, 30px);
}
.story-ready #story {
  flex: 1 1 0;
  min-height: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  container-type: size;
  background: #162e26;
}
.story-ready #story > [data-story-scene] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.story-ready #story > [hidden] {
  display: none !important;
}
.story-ready #story > [data-story-scene]:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: -4px;
}
.story-ready :is(#inside, #faq) {
  background: linear-gradient(#f8f6edea, #f8f6edea), url("/assets/paper.jpg");
  padding-inline: max(5vw, calc((100vw - 1280px) / 2));
}
.story-ready #book {
  --inset: clamp(16px, 2.8vw, 50px);
  padding: 0;
  overflow: hidden;
}
.story-ready #book .exhibit-label,
.story-ready #book .title-window,
.story-ready #book .gallery-offer {
  position: absolute;
  z-index: 2;
}
.story-ready #book .exhibit-label {
  inset: clamp(12px, 2.7cqh, 32px) var(--inset) auto;
  color: #fff8e4;
}
.story-ready #book .title-window {
  inset: clamp(38px, 6.2cqh, 68px) 0 auto;
  margin: 0;
  min-height: 0;
}
.story-ready #book .title-track {
  height: auto;
  min-height: 1px;
  padding-block: 3px;
}
.story-ready #book .title-track button {
  font-size: clamp(32px, min(5.3vw, 9.5cqh), 84px);
  color: #eee8d5ac;
  text-shadow: 0 1px 10px #112a246b;
}
.story-ready #book .title-track button[aria-pressed="true"] {
  color: #fffdf3;
}
.story-ready #book .title-track em {
  color: #ffdea3;
}
.story-ready #book .cover-gallery {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  align-self: stretch;
  margin: 0;
}
.story-ready #book .book-stage {
  height: 100%;
  width: 100%;
  border: none;
  border-radius: 0;
  min-height: 0;
  aspect-ratio: auto;
}
.story-ready #book .set-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #0c241ed9 0%,
    #0c241e96 14%,
    transparent 32%,
    transparent 70%,
    #0a201ba8 91%,
    #0a201bf0 100%
  );
}
.story-ready #book .book-position {
  top: 52%;
  width: auto;
  height: min(62cqh, 76cqw);
}
.story-ready #book .interior .book-position {
  top: 52%;
  left: calc(50% + min(19cqw, 19cqh));
  height: min(62cqh, 59cqw);
  width: auto;
}
.story-ready #book .inspecting .book-position {
  height: min(120cqh, 150cqw);
  top: 54%;
  width: auto;
}
.story-ready #book .cast-shadow {
  top: 81%;
}
.story-ready #book .scene-nav {
  inset: calc(50% - 22px) var(--inset) auto;
}
.story-ready #book .scene-nav button {
  width: 35px;
  height: 45px;
  border-radius: 30px;
  background-color: #1b33284f;
}
.story-ready #book .cover-gallery figcaption {
  position: absolute;
  inset: auto var(--inset) 20px auto;
  display: grid;
  justify-items: end;
  gap: 6px;
  background: transparent;
  color: #fff8e7;
  padding: 0;
}
.story-ready #book .gallery-offer {
  inset: auto auto 20px var(--inset);
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  align-items: start;
}
.story-ready #book .purchase-detail {
  max-width: none;
  color: #fff5df;
}
.story-ready #book .edition {
  color: #fff5df;
}
.story-ready #book .textlink {
  color: #fff9ed;
}
.story-ready #book .gallery-controls .open-volume {
  background-color: #19362de8;
}

.story-ready #shelf {
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  padding: clamp(15px, 4cqh, 55px) 0;
  border: 0;
}
.story-ready .shelf-caption,
.story-ready .shelf-info {
  flex: none;
}
.story-ready .shelf-caption h2 {
  font-size: clamp(38px, min(5.2vw, 8.7cqh), 80px);
}
.story-ready .shelf-scroll {
  flex: none;
  --folio-height: clamp(170px, min(51cqh, 35vw), 540px);
  --folio-depth: clamp(36px, min(5.8cqh, 5vw), 78px);
  margin-block: min(1.8cqh, 20px);
}
.story-ready .shelf-row {
  padding-block: min(3.6cqh, 34px);
}
.story-ready .shelf-info {
  padding-top: min(2.4cqh, 22px);
}

.story-ready #reviews {
  display: flex;
  background:
    linear-gradient(115deg, #f1e1c9e8, #f5eddeed 57%, #e5e8d9f0), url("/assets/paper.jpg");
  padding: clamp(16px, 4vw, 48px);
}
.story-ready #exercise,
.story-ready #inside,
.story-ready #purchase {
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  padding-block: clamp(18px, 4.7cqh, 64px);
}
.story-ready #exercise > .wrap,
.story-ready #inside > *,
.story-ready .final-grid {
  flex: none;
}
.story-ready .question h2,
.story-ready .section-intro h2,
.story-ready #faq h2,
.story-ready .closing h2 {
  font-size: clamp(43px, min(5.6vw, 10.5cqh), 88px);
}
.story-ready .section-intro {
  margin-block: min(2.5cqh, 26px) min(5cqh, 48px);
}
.story-ready .mini-stage {
  height: clamp(140px, 39cqh, 410px);
}
.story-ready #faq {
  align-items: start;
  align-content: safe center;
  padding-block: clamp(20px, 7cqh, 80px);
}
.story-ready #purchase .final-grid {
  padding-block: 0;
}
.story-ready .final-grid img {
  height: min(70cqh, 49vw);
}

.story-ready .story-transport {
  position: relative;
  z-index: 2;
  display: block;
  background: #f6f3e8;
  color: #214136;
  border-top: 1px solid #213b2924;
  padding-inline: 3%;
  padding-bottom: env(safe-area-inset-bottom);
}
.transport-inner {
  min-height: 50px;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(130px, 420px) minmax(200px, 1fr);
  align-items: center;
  gap: 20px;
}
.transport-hint,
[data-story-status] {
  font: 11px/1.15 var(--mono);
}
.transport-hint,
.transport-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.transport-hint > span:first-child {
  font: 17px var(--sans);
}
.transport-controls {
  justify-content: end;
}
.transport-controls button {
  border: 1px solid #b5bdad;
  border-radius: 50%;
  background: transparent;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  font-size: 17px;
  padding: 0;
}
.transport-controls button:hover:not(:disabled) {
  background: #1d4439;
  color: #fffbed;
}
.transport-controls button:disabled {
  opacity: 0.32;
}
[data-story-status] {
  margin-right: 8px;
}
.story-track {
  display: flex;
  align-items: center;
  gap: 4px;
}
.story-track a {
  padding-block: 14px;
  display: block;
  flex: 1;
  min-width: 8px;
}
.story-track a span {
  display: block;
  height: 3px;
  background: #bcc3b5;
  transition: background-color 250ms;
}
.story-track
  a:is(:hover, [aria-current="step"], [aria-current="page"], [aria-current="true"])
  span {
  background: #245541;
}
.swipe-hint {
  display: none;
}
@media (pointer: coarse) {
  .swipe-hint {
    display: inline;
  }
  .wheel-hint {
    display: none;
  }
}
@media (min-width: 801px) and (max-width: 1030px) {
  .story-store .mast-in {
    width: 96%;
    gap: 8px;
  }
  .story-store .mast-in nav {
    gap: 10px;
  }
  .story-store .mast-in nav a {
    font-size: 12px;
  }
  .story-store .brand {
    font-size: 22px;
  }
}
@media (max-width: 640px) {
  .story-store .mast-in {
    min-height: 58px;
  }
  .story-store .mast .test-label:not(:empty) {
    top: auto;
    bottom: 3px;
    left: 35px;
    max-width: none;
    white-space: nowrap;
  }
  .story-ready #book .exhibit-label {
    inset-block-start: 13px;
  }
  .story-ready #book .about-trigger {
    font-size: 10px;
  }
  .story-ready #book .title-window {
    top: 44px;
  }
  .story-ready #book .title-track button {
    font-size: clamp(33px, 8.8vw, 50px);
  }
  .story-ready #book .book-position {
    height: min(55cqh, 92cqw);
    top: 47%;
  }
  .story-ready #book .interior .book-position {
    top: 47%;
    left: 72%;
    height: min(55cqh, 54cqw);
  }
  .story-ready #book .inspecting .book-position {
    top: 49%;
    height: min(94cqh, 132cqw);
  }
  .story-ready #book .cast-shadow {
    top: 70%;
  }
  .story-ready #book .scene-nav {
    inset: calc(47% - 15px) 12px auto;
  }
  .story-ready #book .scene-nav button {
    width: 29px;
    height: 38px;
  }
  .story-ready #book .gallery-offer {
    inset: auto 16px 13px;
    align-items: center;
    gap: 6px;
  }
  .story-ready #book .cover-gallery figcaption {
    inset: auto 16px 89px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
  }
  .story-ready #book .set-art::after {
    background: linear-gradient(
      #0b261fcd,
      #0b261f77 12%,
      transparent 29% 64%,
      #0b261fb3 83%,
      #0b261ff7
    );
  }
  .story-ready .shelf-scroll {
    --folio-height: clamp(150px, min(48cqh, 87vw), 400px);
    --folio-depth: clamp(31px, 9.2vw, 47px);
    margin-block: min(2cqh, 12px);
  }
  .story-ready .shelf-row {
    padding-block: min(3.5cqh, 26px);
  }
  .story-ready .shelf-info {
    gap: 13px;
  }
  .story-ready .shelf-description h3 {
    font-size: clamp(23px, 6.8vw, 32px);
  }
  .story-ready #inside,
  .story-ready #faq {
    padding-inline: 18px;
  }
  .story-ready .section-intro {
    margin: 10px 0 min(4cqh, 25px);
  }
  .story-ready .section-intro p {
    font-size: 14px;
    line-height: 1.45;
    margin-top: 9px;
  }
  .story-ready .preview-grid {
    gap: min(2.4cqh, 15px);
  }
  .story-ready .preview-card {
    display: grid;
    grid-template-columns: 29% minmax(0, 1fr);
    grid-template-rows: 1fr 1.8fr;
    column-gap: 16px;
    border-top: 1px solid var(--line);
    padding-top: min(2cqh, 14px);
  }
  .story-ready .mini-stage {
    height: clamp(58px, 12cqh, 105px);
    grid-row: span 2;
    padding-top: 8px;
  }
  .story-ready .mini-stage .thumb-page {
    width: 83%;
  }
  .story-ready .preview-card .zoom {
    width: 20px;
    height: 20px;
    font-size: 14px;
    right: 3px;
    bottom: 3px;
  }
  .story-ready .preview-meta {
    align-self: end;
    font-size: 9px;
    margin: 0 0 4px;
  }
  .story-ready .preview-name {
    align-self: start;
    font-size: clamp(21px, 6vw, 29px);
  }
  .story-ready #exercise {
    padding-block: min(3cqh, 22px);
  }
  .story-ready .exercise-grid {
    gap: min(2.4cqh, 20px);
  }
  .story-ready .question h2 {
    margin-block: min(1.7cqh, 12px);
  }
  .story-ready .question p:not(.eyebrow) {
    font-size: 15px;
    line-height: 1.45;
  }
  .story-ready .choices {
    margin-top: 12px;
  }
  .story-ready .choices button {
    padding: 6px 10px;
    min-height: 36px;
  }
  .story-ready .snapshot {
    padding-top: 13px;
  }
  .story-ready .snapshot-top {
    padding-bottom: 8px;
  }
  .story-ready .chart {
    padding: 3px 0 7px;
  }
  .story-ready .chart-row {
    margin: 5px 0;
    gap: 2px;
    font-size: 12px;
  }
  .story-ready .bar-track {
    height: 5px;
  }
  .story-ready .chart-row:last-child {
    padding-top: 4px;
  }
  .story-ready .adjuster {
    padding-top: 10px;
    margin-top: 12px;
    gap: 8px;
  }
  .story-ready .adjuster label {
    font-size: 13px;
  }
  .story-ready .price-fields {
    margin-top: 4px;
  }
  .story-ready .decision,
  .story-ready .exercise-end {
    font-size: 12px;
    line-height: 1.4;
  }
  .story-ready .exercise-end {
    margin-top: 8px;
  }
  .story-ready #answer {
    font-size: 14px;
    line-height: 1.4;
  }
  .story-ready .final-grid {
    gap: min(3.5cqh, 26px);
  }
  .story-ready .final-grid img {
    height: clamp(70px, 28cqh, 230px);
  }
  .story-ready .closing h2 {
    margin-block: 10px;
  }
  .story-ready .closing p:not(.eyebrow, .purchase-detail) {
    font-size: 15px;
  }
  .story-ready .closing form {
    margin: 13px 0 8px;
  }
  .story-ready .story-transport {
    padding-inline: 16px;
  }
  .transport-inner {
    grid-template-columns: 1fr auto;
    gap: 2px 12px;
    padding: 5px 0;
    min-height: 47px;
  }
  .transport-controls {
    grid-column: 2;
    grid-row: 1/3;
    gap: 5px;
  }
  .transport-hint,
  [data-story-status] {
    font-size: 9px;
  }
  .transport-hint {
    gap: 5px;
    align-self: end;
  }
  .transport-hint > span:first-child {
    font-size: 11px;
  }
  .story-track {
    grid-column: 1;
    max-width: 185px;
    gap: 3px;
  }
  .story-track a {
    padding-block: 4px;
  }
  .story-track a span {
    height: 2px;
  }
  [data-story-status] {
    margin-right: 2px;
  }
}
@media (max-width: 375px) {
  .story-store .test-label {
    max-width: 31px;
    white-space: normal;
    line-height: 1.1;
  }
  .story-ready #book .exhibit-label .view-navigation {
    gap: 6px;
  }
  .story-ready #book .gallery-offer .hero-actions {
    gap: 10px;
  }
  .story-ready #book .gallery-offer .buy {
    font-size: 12px;
  }
}
@media (max-height: 550px) and (min-width: 641px) {
  .story-store .mast-in {
    min-height: 44px;
  }
  .story-ready .transport-inner {
    min-height: 36px;
  }
  .story-ready #book .exhibit-label {
    top: 7px;
  }
  .story-ready #book .title-window {
    top: 25px;
  }
  .story-ready #book .gallery-offer,
  .story-ready #book .cover-gallery figcaption {
    bottom: 7px;
  }
  .story-ready #book .gallery-offer,
  .story-ready #book .cover-gallery figcaption {
    gap: 3px;
  }
}
