/* Every spread belongs to the same four-ink edition. The sheet, printed type
   and cast shadow are the scenery; each workspace stays fully interactive. */
#story > :is(#shelf, #exercise, #inside, #faq, #purchase) {
  --film-ink: #19171d;
  --film-orange: #fa684a;
  --film-bone: #f5eedc;
  --film-lilac: #c6b7fa;
  --film-gutter: clamp(20px, 4.2vw, 86px);
  --ink: var(--film-ink);
  --muted: #4a4449;
  --paper: var(--film-bone);
  --trim: var(--film-gutter);
  color: var(--film-ink);
}

#story :is(#shelf, #exercise, #inside, #faq, #purchase) h2 {
  color: inherit;
  font: 630 clamp(54px, min(7.2vw, 13cqh), 130px)/0.88 var(--display);
  letter-spacing: -0.08em;
  text-wrap: initial;
}
#story :is(#shelf, #exercise, #inside, #faq, #purchase) h2 em {
  color: inherit;
  font: italic 400 1.07em/0.92 var(--serif);
  letter-spacing: -0.068em;
}

/* A single rack spans the lilac set. Only its ruled foot and the shadows under
   the bindings meet the floor. The open folio extends toward the reader. */
#story > #shelf {
  display: grid;
  grid-template: "title" auto "rack" minmax(0, 1fr) "info" auto / minmax(0, 1fr);
  align-content: stretch;
  justify-content: stretch;
  align-items: stretch;
  padding: clamp(15px, 4.4cqh, 48px) 0 clamp(14px, 3.2cqh, 38px);
  gap: 0;
  background: var(--film-lilac);
}
#shelf .shelf-caption {
  grid-area: title;
  position: static;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 15px;
  width: auto;
  margin-inline: var(--film-gutter);
  padding: 0;
  border: 0;
}
#shelf .shelf-caption p {
  max-width: 23ch;
  margin: 0;
  font: 500 clamp(13px, 1.16vw, 19px)/1.25 var(--sans);
  color: var(--film-ink);
}
#shelf .shelf-scroll {
  --folio-height: clamp(160px, min(49cqh, 35vw), 650px);
  --folio-width: calc(var(--folio-height) * 0.77);
  --folio-depth: clamp(29px, 5.7vw, 105px);
  grid-area: rack;
  min-height: 0;
  margin: 0;
  display: grid;
  align-content: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  scrollbar-width: thin;
  scrollbar-color: #786ba8 transparent;
}
#shelf .shelf-row {
  --rack-pad: clamp(18px, 4cqw, 60px);
  width: max-content;
  min-width: 100%;
  padding: clamp(12px, 2.3cqh, 32px) var(--rack-pad) clamp(17px, 4cqh, 47px);
  isolation: isolate;
  gap: clamp(3px, 0.7vw, 11px);
}
#shelf .shelf-row::before {
  content: "";
  background: #7765a290;
  border-radius: 0;
  filter: none;
  opacity: 1;
  width: min(88%, calc(5.5 * var(--slot-width) + var(--folio-width) + 11vw));
  height: clamp(13px, 3cqh, 33px);
  bottom: clamp(9px, 1.8cqh, 23px);
  left: 50%;
  transform: translateX(-48%) skewX(48deg);
  z-index: -1;
}
#shelf .shelf-row::after {
  content: "";
  position: absolute;
  width: min(88%, calc(5.5 * var(--slot-width) + var(--folio-width) + 11vw));
  height: clamp(8px, 1.8cqh, 20px);
  left: 50%;
  bottom: clamp(18px, 3.3cqh, 39px);
  transform: translateX(-50%);
  background: var(--film-ink);
  z-index: -1;
}
#shelf .shelf-slot .folio-object {
  --cloth: #28232b;
}
#shelf .shelf-slot:nth-child(2) .folio-object {
  --cloth: #f4e9d2;
}
#shelf .shelf-slot:nth-child(3) .folio-object {
  --cloth: #fa684a;
}
#shelf .shelf-slot:nth-child(4) .folio-object {
  --cloth: #a695df;
}
#shelf .shelf-slot:nth-child(5) .folio-object {
  --cloth: #d2c6ae;
}
#shelf .shelf-slot:nth-child(6) .folio-object {
  --cloth: #4b4057;
}
#shelf .folio-spine {
  border-radius: 1px;
  background-color: var(--cloth);
  color: var(--film-bone);
}
#shelf .shelf-slot:nth-child(n + 2):nth-child(-n + 5) .folio-spine {
  color: var(--film-ink);
}
#shelf .folio-name {
  font: 580 clamp(17px, min(2vw, 4cqh), 33px)/1 var(--display);
  letter-spacing: -0.04em;
}
#shelf .folio-front {
  border-radius: 1px;
  box-shadow: inset 4px 0 2px #17111b63;
}
#shelf .shelf-slot.face-out .folio-object {
  transform: translate3d(7px, -5%, 29px) rotateY(-9deg) rotateX(-2deg);
}
#shelf .shelf-slot.face-out .folio-front {
  box-shadow:
    5px 8px 0 #29213685,
    inset 3px 0 2px #17111b63;
}
#shelf .shelf-info {
  grid-area: info;
  width: auto;
  margin-inline: var(--film-gutter);
  padding: clamp(10px, 2cqh, 20px) 0 0;
  border-top: 1px solid #19171d66;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "control description read";
  align-items: center;
  gap: clamp(16px, 3.1vw, 58px);
}
#shelf .shelf-controller {
  grid-area: control;
}
#shelf .shelf-description {
  grid-area: description;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.1fr);
  gap: clamp(12px, 2.2vw, 38px);
  align-items: center;
}
#shelf .shelf-description h3 {
  font: 580 clamp(20px, 2.2vw, 36px)/1.02 var(--display);
  letter-spacing: -0.052em;
}
#shelf .shelf-description p {
  margin: 0;
  max-width: 47ch;
  color: #312b36;
  font: 450 clamp(14px, 1.22vw, 19px)/1.36 var(--sans);
}
#shelf .shelf-controller button {
  border-color: #19171d80;
  color: var(--film-ink);
}
#shelf .shelf-number {
  color: var(--film-ink);
  white-space: nowrap;
}
#shelf .shelf-read {
  grid-area: read;
  background: var(--film-ink);
  border-color: var(--film-ink);
  color: var(--film-bone);
  border-radius: 100px;
}

/* The receipt emerges from a black platen. Its ink and its serrated edge come
   from the live worksheet, including when numbers replace the opening ribbon. */
#story > #exercise {
  color: var(--film-ink);
  background: var(--film-orange);
  padding: clamp(18px, 4cqh, 48px) 0;
}
#exercise > .wrap {
  width: min(1450px, calc(100% - var(--film-gutter) * 2));
}
#exercise .exercise-grid {
  grid-template: "question print" auto / minmax(0, 1fr) minmax(0, 0.98fr);
  gap: clamp(30px, 6.5vw, 134px);
  align-items: center;
}
#exercise .question {
  grid-area: question;
  align-self: center;
}
#story #exercise .question h2 {
  max-width: 8ch;
  font-size: clamp(70px, min(9vw, 17cqh), 175px);
  margin: 0 0 clamp(18px, 4.4cqh, 44px);
}
#exercise .question p:not(.eyebrow),
#exercise .question strong {
  color: var(--film-ink);
}
#exercise .mo-wh__text {
  --ink: var(--film-ink);
  --bg: var(--film-orange);
  --accent: var(--film-ink);
}
#exercise .choices {
  margin-top: clamp(16px, 3.8cqh, 37px);
}
#exercise .choices button {
  border: 1px solid var(--film-ink);
  border-radius: 100px;
  background: transparent;
  color: var(--film-ink);
}
#exercise .choices button:is(:hover, [aria-pressed="true"]) {
  background: var(--film-ink);
  color: var(--film-bone);
}
#exercise .snapshot {
  grid-area: print;
  overflow: visible;
  isolation: isolate;
  position: relative;
  transform: rotate(4deg);
  padding: clamp(20px, 3.2vw, 58px);
  background: var(--film-bone);
  color: var(--film-ink);
  box-shadow: 9px 14px 0 #62332b90;
}
#exercise .snapshot::before {
  content: "";
  position: absolute;
  top: -6px;
  left: -3%;
  width: 106%;
  height: 10px;
  border-radius: 99px;
  background: var(--film-ink);
}
#exercise .snapshot::after {
  content: "";
  position: absolute;
  inset: auto 0 -9px;
  height: 10px;
  background: linear-gradient(135deg, var(--film-bone) 49%, transparent 50%) 0 0/14px 14px repeat-x;
}
#exercise .snapshot-top {
  padding-bottom: 13px;
  border-bottom: 2px dotted #19171d77;
  color: var(--film-ink);
  font: 600 clamp(12px, 1.15vw, 17px)/1.2 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.065em;
}
#exercise .snapshot-body {
  padding: clamp(25px, 6.6cqh, 64px) 0 clamp(14px, 2.7cqh, 33px);
}
#exercise .big-value {
  color: var(--film-ink);
  font-size: clamp(58px, min(7.8vw, 15cqh), 138px);
}
#exercise .days strong,
#exercise .days span,
#exercise .snapshot-body p {
  color: var(--film-ink);
}
#exercise .days {
  border-color: #19171d75;
}
#exercise .stream {
  height: clamp(75px, 17cqh, 168px);
}
#exercise .adjuster {
  color: var(--film-ink);
  border-color: #19171d70;
}
#exercise .decision,
#exercise .exercise-end,
#exercise #answer {
  color: var(--film-ink);
}
#exercise:has(.adjuster:not([hidden])) .snapshot {
  transform: rotate(1deg);
}
#exercise:has(.adjuster:not([hidden])) .question h2 {
  font-size: clamp(53px, min(7vw, 12cqh), 103px);
}

/* The reader can grab either the exposed paper or its title. The three leaves
   have a shared pivot line and overlap before the reader opens one. */
#story > #inside {
  --sheet-h: clamp(230px, min(52cqh, 30cqw), 640px);
  display: grid;
  grid-template: "intro fan" auto / minmax(0, 0.78fr) minmax(0, 1.42fr);
  align-items: center;
  align-content: safe center;
  gap: clamp(11px, 2.3vw, 54px);
  padding: clamp(20px, 4cqh, 47px) var(--film-gutter);
  background: var(--film-ink);
  color: var(--film-bone);
}
#inside .section-intro {
  grid-area: intro;
  display: block;
  margin: 0;
}
#inside .section-intro h2 {
  max-width: 9ch;
}
#inside .section-intro p {
  max-width: 32ch;
  margin: clamp(18px, 4cqh, 39px) 0 0;
  color: var(--film-bone);
}
#inside .preview-grid {
  grid-area: fan;
  display: grid;
  grid-template: auto / repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 0;
  padding: clamp(14px, 4.8cqh, 48px) 0 0;
  margin: 0;
  min-width: 0;
}
#inside .preview-card {
  --fan-tilt: -12deg;
  --fan-lift: 2px;
  grid-area: auto;
  display: grid;
  grid-template: "page" auto "meta" auto "label" auto / minmax(0, 1fr);
  align-content: start;
  align-self: stretch;
  gap: 0;
  justify-items: start;
  position: relative;
  padding: 0;
  border: 0;
  margin: 0;
  background: transparent;
  color: var(--film-bone);
}
#inside .preview-card:nth-child(2) {
  --fan-tilt: -2deg;
  --fan-lift: -12px;
  z-index: 1;
}
#inside .preview-card:nth-child(3) {
  --fan-tilt: 9deg;
  --fan-lift: 3px;
  z-index: 2;
}
#inside .preview-card:is(:hover, :focus-visible) {
  z-index: 4;
}
#inside .preview-card:focus-visible {
  outline: 2px solid var(--film-orange);
  outline-offset: 6px;
}
#inside .mini-stage,
#inside .preview-card:nth-child(n) .mini-stage {
  grid-area: page;
  border: 0;
  border-radius: 0;
  padding: 0;
  position: relative;
  display: block;
  overflow: visible;
  left: 50%;
  width: calc(var(--sheet-h) * 0.7727);
  height: var(--sheet-h);
  translate: -50% var(--fan-lift);
  transform: rotate(var(--fan-tilt));
  transform-origin: center 95%;
  background: transparent;
  isolation: auto;
  box-shadow: 5px 7px 0 #0b091095;
}
#inside .mini-stage .thumb-page {
  width: 100%;
  height: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  box-shadow:
    1px 1px 0 #c2b99f,
    2px 2px 0 #eee6d0;
}
#inside .preview-card:hover .thumb-page {
  transform: translateY(-3px);
}
#inside .preview-card .zoom {
  display: none;
}
#inside .preview-meta,
#inside .preview-name {
  z-index: 2;
  position: relative;
}
#inside .preview-meta {
  grid-area: meta;
  margin: clamp(24px, 4.3cqh, 45px) 8px 5px 0;
  color: var(--film-lilac);
  font-size: clamp(11px, 0.86vw, 14px);
  letter-spacing: 0.01em;
}
#inside .preview-name {
  grid-area: label;
  margin: 0 11px 0 0;
  font: 520 clamp(18px, 1.65vw, 29px)/1.08 var(--display);
  letter-spacing: -0.041em;
  text-wrap: balance;
}
#inside .preview-card:hover .preview-name,
#inside .preview-card:focus-visible .preview-name {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

/* A printed colophon and the blank plan share a fold. The darker gutter and
   the individual leaves remain visible even on very small screens. */
#story > #faq {
  display: grid;
  grid-template: auto / minmax(0, 1fr);
  place-items: center;
  align-content: safe center;
  gap: 0;
  padding: clamp(15px, 4cqh, 52px) var(--film-gutter);
  color: var(--film-ink);
  background: #b6a4e9;
}
#faq .colophon-spread {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  width: min(100%, 143cqh, 1460px);
  align-items: stretch;
  position: relative;
  isolation: isolate;
  box-shadow: clamp(7px, 0.8vw, 16px) clamp(9px, 1.2vw, 20px) 0 #6e5d9b;
  background: var(--film-bone);
}
#faq .colophon-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(20px, min(3.5vw, 4.8cqh), 66px);
  background: linear-gradient(90deg, transparent 96%, #342d3520), var(--film-bone);
}
#faq .faq-heading {
  display: block;
  margin: 0 0 clamp(14px, 3cqh, 42px);
}
#story #faq h2 {
  font-size: clamp(43px, min(5.3vw, 10cqh), 86px);
}
#faq .faq-list details {
  border-color: #19171d55;
}
#faq .faq-list summary {
  font: 550 clamp(15px, min(1.5vw, 3.5cqh), 25px)/1.13 var(--display);
  padding: clamp(12px, 2.7cqh, 28px) 0;
}
#faq .faq-list summary::after {
  color: var(--film-ink);
  width: 24px;
  height: 24px;
}
#faq .faq-list p {
  color: #453d46;
  font: 420 clamp(14px, 1.1vw, 18px)/1.4 var(--sans);
}
#faq .faq-sheet {
  height: clamp(325px, 76cqh, 850px);
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: none;
  width: 100%;
  display: grid;
  align-items: center;
  background: #f6f4e9;
}
#faq .faq-sheet img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  box-shadow: none;
}
#faq .faq-sheet::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: 54%;
  width: 11px;
  background: linear-gradient(90deg, #20172128, transparent);
  pointer-events: none;
}

/* Last impression: one sheet on the desk with the only purchase decision. */
#story > #purchase {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  align-items: stretch;
  padding: 0;
  background: var(--film-ink);
}
#purchase .final-grid {
  isolation: isolate;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(14px, 3cqh, 35px) var(--film-gutter);
  margin: 0;
  min-height: 100%;
  gap: 0;
}
#purchase .order-art {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
}
#purchase .order-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 63% 50%;
}
#purchase .order-copy {
  position: relative;
  max-width: min(50%, 750px);
  margin: 0;
  padding: clamp(25px, min(3.3vw, 5.3cqh), 64px);
  background: var(--film-bone);
  color: var(--film-ink);
  box-shadow: 9px 11px 0 #19171d;
  transform: rotate(-1.8deg);
  transform-origin: center center;
}
#story #purchase .order-copy h2 {
  max-width: 11ch;
  font-size: clamp(49px, min(5.75vw, 10.4cqh), 103px);
  margin: 0 0 clamp(18px, 3.5cqh, 36px);
}
#purchase .order-copy > p:not(.purchase-detail) {
  max-width: 40ch;
  color: #3a333c;
  font-size: clamp(15px, min(1.4vw, 3cqh), 21px);
  line-height: 1.42;
}
#purchase .order-copy .purchase-action {
  margin: clamp(17px, 3.2cqh, 34px) 0 9px;
}
#purchase .buy {
  min-height: 48px;
  width: 100%;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: var(--film-ink);
  color: var(--film-bone);
  font-size: clamp(16px, 1.3vw, 21px);
}
#purchase .buy:hover:where(:not(:disabled)) {
  background: var(--film-orange);
  color: var(--film-ink);
}
#purchase .purchase-detail {
  color: var(--muted);
}

@media (min-width: 701px) and (max-aspect-ratio: 1/1) {
  #story > #shelf {
    padding-top: 6cqh;
    padding-bottom: 4cqh;
  }
  #shelf .shelf-scroll {
    --folio-height: min(46cqh, 49cqw);
    --folio-depth: 6.1cqw;
  }
  #shelf .shelf-description {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  #story > #inside {
    --sheet-h: min(45cqh, 41cqw);
    grid-template: "intro" auto "fan" auto / 1fr;
    gap: 4cqh;
  }
  #inside .section-intro {
    width: 85%;
  }
  #inside .section-intro h2 {
    max-width: none;
  }
  #inside .section-intro p {
    max-width: 42ch;
  }
  #inside .preview-grid {
    margin-inline: 2cqw;
  }
  #story #exercise .question h2 {
    font-size: 9vw;
  }
  #exercise .exercise-grid {
    gap: 3.3cqw;
  }
  #purchase .order-copy {
    max-width: 66%;
  }
}

@media (max-width: 700px) {
  #story > :is(#shelf, #exercise, #inside, #faq, #purchase) {
    --film-gutter: clamp(16px, 5cqw, 30px);
  }
  #story :is(#shelf, #exercise, #inside, #faq, #purchase) h2 {
    font-size: clamp(35px, min(12.5cqw, 9.4cqh), 64px);
  }
  #story > #shelf {
    padding-block: clamp(14px, 4.5cqh, 38px);
  }
  #shelf .shelf-caption {
    display: block;
    width: auto;
  }
  #shelf .shelf-caption p {
    max-width: none;
    margin-top: 9px;
    font-size: 14px;
  }
  #shelf .shelf-scroll {
    --folio-height: min(42cqh, 65cqw);
    --folio-depth: clamp(26px, 8.6cqw, 48px);
  }
  #shelf .shelf-row {
    padding-block: 18px 28px;
    gap: 5px;
  }
  #shelf .shelf-row::after {
    bottom: 22px;
    height: 10px;
  }
  #shelf .shelf-row::before {
    bottom: 12px;
    height: 15px;
  }
  #shelf .folio-name {
    font-size: clamp(15px, min(4.8cqw, 3.3cqh), 25px);
  }
  #shelf .shelf-info {
    grid-template: "description description" auto "control read" auto / minmax(0, 1fr) auto;
    justify-items: start;
    gap: 12px;
    padding-top: 10px;
  }
  #shelf .shelf-description {
    display: block;
  }
  #shelf .shelf-description h3 {
    font-size: clamp(22px, min(6.8cqw, 4.8cqh), 34px);
  }
  #shelf .shelf-description p {
    margin-top: 5px;
    font-size: 15px;
  }
  #shelf .shelf-read {
    justify-self: end;
  }

  #exercise .exercise-grid {
    grid-template: "question" auto "print" auto / minmax(0, 1fr);
    gap: clamp(20px, 3.8cqh, 34px);
  }
  #story #exercise .question h2 {
    max-width: none;
    font-size: clamp(39px, min(12.8cqw, 10.2cqh), 70px);
    margin-bottom: clamp(12px, 2.2cqh, 20px);
  }
  #exercise .question p:not(.eyebrow) {
    font-size: clamp(16px, 4.4cqw, 23px);
  }
  #exercise .choices {
    margin-top: 13px;
  }
  #exercise .snapshot {
    justify-self: center;
    width: 92%;
    transform: rotate(2.3deg);
    padding: clamp(15px, 4.5cqw, 27px);
    box-shadow: 5px 9px 0 #62332b90;
  }
  #exercise .snapshot-top {
    padding-bottom: 7px;
    font-size: 12px;
  }
  #exercise .snapshot-body {
    padding: min(3cqh, 26px) 0 min(1.5cqh, 13px);
  }
  #exercise .big-value {
    font-size: clamp(49px, min(16cqw, 10cqh), 82px);
  }
  #exercise .stream {
    height: clamp(46px, 10.5cqh, 90px);
  }
  #exercise:has(.adjuster:not([hidden])) .snapshot {
    width: 100%;
    transform: none;
  }

  #story > #inside {
    --sheet-h: min(42cqh, 52cqw);
    grid-template: "intro" auto "fan" auto / minmax(0, 1fr);
    gap: clamp(14px, 3cqh, 26px);
    padding: min(3.5cqh, 28px) var(--film-gutter);
    overflow-x: clip;
  }
  #inside .section-intro h2 {
    max-width: none;
  }
  #inside .section-intro p {
    max-width: 46ch;
    margin-top: 10px;
    font-size: 15px;
  }
  #inside .preview-grid {
    width: 100%;
  }
  #inside .preview-card:first-child .mini-stage {
    left: calc(50% + 8cqw);
  }
  #inside .preview-card:last-child .mini-stage {
    left: calc(50% - 8cqw);
  }
  #inside .preview-meta {
    font: 500 clamp(10px, 2.5cqw, 14px)/1.3 var(--mono);
  }
  #inside .preview-name {
    font-size: clamp(16px, 4.3cqw, 24px);
    margin-right: 8px;
    text-wrap: initial;
  }

  #story > #faq {
    padding: clamp(22px, 5cqh, 40px) var(--film-gutter);
  }
  #faq .colophon-spread {
    display: block;
    width: 93%;
    background: transparent;
    box-shadow: none;
  }
  #faq .colophon-copy {
    padding: clamp(18px, 5.5cqw, 36px);
    background: var(--film-bone);
    box-shadow: -2px 4px 0 #6e5d9b;
    transform: rotate(-1.2deg);
  }
  #faq .faq-heading {
    margin-bottom: 17px;
  }
  #story #faq h2 {
    font-size: clamp(37px, min(10.8cqw, 9.6cqh), 57px);
  }
  #faq .faq-sheet {
    position: absolute;
    z-index: -1;
    width: 96%;
    height: 103%;
    inset: auto -2.8% -1.7% auto;
    transform: rotate(4.5deg);
    box-shadow: 3px 5px 0 #6e5d9b;
  }
  #faq .faq-sheet::before {
    display: none;
  }
  #faq .faq-sheet img {
    object-fit: cover;
    object-position: top;
  }
  #faq .faq-list summary {
    min-height: 45px;
    padding: min(2cqh, 16px) 0;
    font-size: clamp(17px, 4.2cqw, 22px);
  }

  #purchase .final-grid {
    align-items: flex-end;
    justify-content: center;
    padding: clamp(14px, 3.4cqh, 32px) var(--film-gutter);
  }
  #purchase .order-art img {
    object-position: 65% 28%;
  }
  #purchase .order-copy {
    width: min(100%, 500px);
    max-width: none;
    padding: clamp(19px, 5.1cqw, 35px);
    box-shadow: 5px 7px 0 #19171d;
    transform: rotate(-1.1deg);
    align-self: flex-end;
  }
  #story #purchase .order-copy h2 {
    max-width: 14ch;
    font-size: clamp(36px, min(10.7cqw, 8.5cqh), 56px);
    margin-bottom: 12px;
  }
  #purchase .order-copy > p:not(.purchase-detail) {
    font-size: 15px;
    line-height: 1.39;
  }
  #purchase .order-copy .purchase-action {
    margin: 13px 0 7px;
  }
  #purchase .buy {
    min-height: 45px;
  }
}

@media (max-width: 700px) and (max-height: 680px) {
  #story > #shelf {
    padding-block: 10px;
  }
  #shelf .shelf-caption p {
    font-size: 13px;
    margin-top: 4px;
  }
  #shelf .shelf-scroll {
    --folio-height: min(32cqh, 54cqw);
  }
  #shelf .shelf-row {
    padding: 14px 16px 21px;
  }
  #shelf .shelf-row::after {
    bottom: 15px;
  }
  #shelf .shelf-row::before {
    bottom: 6px;
  }
  #shelf .shelf-info {
    row-gap: 6px;
    padding-top: 7px;
  }
  #shelf .shelf-description h3 {
    font-size: 21px;
  }
  #shelf .shelf-description p {
    font-size: 14px;
    line-height: 1.3;
  }
  #story > #exercise {
    padding-block: 12px;
  }
  #exercise .exercise-grid {
    gap: 16px;
  }
  #exercise .snapshot {
    padding: 14px;
  }
  #story #exercise .question h2 {
    font-size: clamp(33px, 10.4cqw, 55px);
    margin-bottom: 9px;
  }
  #exercise .choices {
    margin-top: 9px;
  }
  #exercise .stream {
    height: clamp(39px, 9.2cqh, 55px);
  }
  #story > #inside {
    --sheet-h: min(34cqh, 52cqw);
    padding-block: 10px;
    gap: 7px;
  }
  #inside .section-intro p {
    margin-top: 6px;
    font-size: 14px;
  }
  #inside .preview-name {
    font-size: 15px;
  }
  #inside .preview-meta {
    margin: 12px 5px 5px 0;
  }
  #faq .colophon-copy {
    padding: 16px;
  }
  #faq .faq-list summary {
    font-size: 16px;
    min-height: 44px;
  }
  #purchase .order-copy {
    padding: 15px;
  }
  #story #purchase .order-copy h2 {
    font-size: clamp(32px, min(10cqw, 8cqh), 49px);
    margin-bottom: 7px;
  }
  #purchase .order-copy > p:not(.purchase-detail) {
    font-size: 14px;
    line-height: 1.32;
  }
}

/* Keep the spread inside the stage without clipping any exposed page or label.
   Wider sheets need a larger inward offset as their corners swing out. */
@media (min-width: 701px) {
  #inside .preview-card:first-child .mini-stage {
    left: calc(50% + 5.5cqw);
  }
  #inside .preview-card:last-child .mini-stage {
    left: calc(50% - 5.5cqw);
  }
}

@media (max-width: 700px) {
  #inside .preview-grid {
    --fan-inset: max(4cqw, calc(var(--sheet-h) * 0.35 - 12px));
  }
  /* The illustrated sheets overlap, but each tap belongs to its button's column. */
  #inside .mini-stage {
    pointer-events: none;
  }
  #inside .preview-card:first-child .mini-stage {
    left: calc(50% + var(--fan-inset));
  }
  #inside .preview-card:last-child .mini-stage {
    left: calc(50% - var(--fan-inset));
  }
  #story #purchase .final-grid {
    padding-block: clamp(14px, 3.4cqh, 32px);
  }
}
@media (max-width: 700px) and (max-height: 680px) {
  #story #inside .section-intro {
    margin: 0;
  }
  #story #inside h2 {
    font-size: clamp(29px, 9.1cqw, 48px);
  }
  #inside .preview-grid {
    padding-top: 12px;
  }
}
@media (max-width: 700px) and (max-height: 440px) and (orientation: landscape) {
  #story #inside h2 {
    font-size: 34px;
  }
  #inside .section-intro p {
    max-width: none;
  }
  #inside .preview-grid {
    padding-top: 6px;
  }
}
