/* The next three stops in Courtney's illustrated story worlds. */
.story-spread {
  --scene-light: #fff2cf;
  --scene-mid: #d7eaf0;
  --scene-line: #91b6c7;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  scroll-margin-top: 7rem;
  background: radial-gradient(ellipse at 76% 34%, #fffaf0 0%, transparent 48%), linear-gradient(165deg, var(--scene-light), var(--scene-mid));
}
.story-spread::after {
  content: "";
  position: absolute;
  inset: auto -4% -.8rem;
  height: 2.2rem;
  z-index: -1;
  background: var(--cream);
  border-radius: 50% 65% 0 0;
}
.story-spread.friends { --scene-light: #f8edd3; --scene-mid: #eadfed; --scene-line: #bda5b8; }
.story-spread.regiftmas { --scene-light: #faf0d0; --scene-mid: #dbe8d8; --scene-line: #96b093; }
.story-spread-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 6vw, 5.5rem); padding-block: clamp(3.5rem, 7vw, 6rem); }
.story-text { max-width: 32rem; }
.story-spread h2 { font-size: clamp(2.15rem, 4.2vw, 3.65rem); text-wrap: balance; margin-bottom: .3em; }
.story-subtitle { font: italic 500 clamp(1.2rem, 2vw, 1.55rem)/1.3 var(--font-head); }
.story-description { font-size: clamp(1.08rem, 1.4vw, 1.21rem); max-width: 43ch; }
.story-scene { position: relative; isolation: isolate; display: grid; place-items: center; min-width: 0; }
.story-scene::before { content: ""; position: absolute; z-index: -1; width: 91%; height: 90%; border: 1px dashed var(--scene-line); border-radius: 48% 50% 46% 54%; transform: rotate(-13deg); }
.story-cover { display: block; width: min(80%, 22rem); border-radius: 3px 9px 9px 3px; overflow: hidden; transform: rotate(-3deg); box-shadow: 2px 3px 0 #f7efdd, 3px 5px 0 #d1c7af, 5px 6px 0 #f6efd9, 7px 8px 0 #d2c6ad, 9px 17px 27px rgb(54 71 64 / 24%); }
.story-cover img { display: block; width: 100%; height: auto; }
.friends .story-scene { order: -1; }
.friends .story-cover { transform: rotate(3deg); }
.regiftmas .story-cover { width: min(61%, 15rem); }
.story-motif { position: absolute; width: clamp(2.8rem, 6vw, 4.5rem); right: 1%; bottom: 8%; transform: rotate(9deg); pointer-events: none; }
.friends .story-motif { right: 3%; bottom: 6%; }
.regiftmas .story-motif { right: 7%; top: 10%; bottom: auto; }
.story-question { margin-top: 1rem; max-width: 29rem; }
.story-question summary { cursor: pointer; color: var(--ink); font-weight: 800; padding-block: .35rem; }
.story-question p { padding: .65rem 1rem; margin: .25rem 0 0; background: #fffaf0; border-left: 3px solid var(--scene-line); border-radius: 0 .7rem .7rem 0; }
.book-card .full-cover img, .buyband .full-cover img { object-fit: contain; }
.book-card .full-cover, .buyband .full-cover { background: #f6efdf; }
.catalog-author { text-align: center; margin: 2.3rem 0 0; }
.buyband.many .buyband-covers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }
.buyband.many .buyband-item { width: 100%; }
@media (max-width: 700px) {
  .story-spread-inner { grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-block: 2.8rem 3.6rem; }
  .story-scene, .friends .story-scene { order: -1; width: min(100%, 24rem); justify-self: center; }
  .story-cover { width: min(70%, 15rem); }
  .regiftmas .story-cover { width: min(49%, 10.75rem); }
  .story-text { justify-self: center; width: min(100%, 31rem); }
  .story-motif { right: 5%; }
}
@media (max-width: 480px) { .buyband.many .buyband-covers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Little keepsakes sit on the endpapers, outside the cover art. */
.story-motif { aspect-ratio: 1; }
.story-motif::before, .story-motif::after { position: absolute; content: ""; }
.thinking .story-motif::before, .thinking .story-motif::after { width: 42%; height: 52%; top: 16%; background: #efb55a; border: 3px solid #89683f; box-shadow: inset 0 0 0 3px #ffe4a8; }
.thinking .story-motif::before { left: 10%; border-radius: 75% 85% 30% 85%; transform: rotate(-23deg); }
.thinking .story-motif::after { left: 49%; border-radius: 85% 75% 85% 30%; transform: rotate(24deg); }
.friends .story-motif::before, .friends .story-motif::after { border-radius: 50%; border: 2px solid #867760; box-shadow: inset 0 0 0 3px #f8efd68c, inset 0 0 0 5px #8d796366, 1px 3px 0 #87735d; }
.friends .story-motif::before { width: 56%; height: 56%; background: #c78f65; left: 0; top: 38%; }
.friends .story-motif::after { width: 69%; height: 69%; background: #c7c1b5; left: 30%; top: 1%; }
.regiftmas .story-motif::before { width: 76%; height: 66%; top: 30%; left: 12%; border-radius: 4px; background: linear-gradient(90deg, transparent 40%, #a4404b 40% 58%, transparent 58%), linear-gradient(#487e6c 27%, #305d4d 27% 32%, #65937b 32%); }
.regiftmas .story-motif::after { width: 43%; height: 23%; top: 9%; left: 28%; border: 4px solid #a4404b; border-radius: 50% 50% 16% 16%; transform: rotate(-8deg); }
