/* One calm catalogue, with the original objects and captions kept intact. */
.shop-section { max-width: 1100px; padding-block: 76px 128px; scroll-margin-top: 28px; }
.shop-text-link { text-decoration: underline; text-decoration-color: rgb(36 32 24 / 35%); text-underline-offset: 5px; }
.shop-grid { --shop-column-gap: 96px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--shop-column-gap); row-gap: 96px; }
.shop-grid > .product-section { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "caption" "visual" "copy"; grid-template-rows: auto auto 470px auto; align-content: start; align-items: start; gap: 0; width: 100%; padding: 0; margin: 0; scroll-margin-top: 32px; }
.shop-grid > .product-section:nth-child(odd)::before { content: ''; position: absolute; top: 8px; bottom: 8px; right: calc(var(--shop-column-gap) / -2 - 4px); width: 8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 400' preserveAspectRatio='none'%3E%3Cpath d='M4 2C2.6 110 5.2 242 3.8 398' fill='none' stroke='%23242018' stroke-width='1.1' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; opacity: .36; pointer-events: none; }
.shop-grid > .product-section::after { content: ''; position: absolute; left: 0; right: 0; bottom: -50px; height: 7px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 7' preserveAspectRatio='none'%3E%3Cpath d='M1 4C94 2.3 224 5 399 3' fill='none' stroke='%23242018' stroke-width='1.05' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; opacity: .36; pointer-events: none; }
.shop-grid > .product-section:nth-last-child(-n + 2)::after { display: none; }
.shop-grid .product-copy { grid-area: copy; padding: 0; }
.shop-grid .product-heading { grid-area: title; margin: 0; font-size: clamp(38px, 3.6vw, 44px); }
.shop-grid .product-caption { grid-area: caption; min-height: 56px; }
.shop-grid .product-availability { margin-top: 28px; }
.shop-product-visual, .shop-grid > .product-section > .tote-image, .shop-grid > .product-section > .legacy-image, .shop-grid > .product-section > .print-animation { grid-area: visual; display: grid; place-items: center; align-content: center; width: 100%; height: 470px; min-width: 0; margin: 0 auto; }
.shop-grid .tote-image img { max-height: 395px; }
.shop-grid .print-animation { max-width: 370px; }
.shop-grid .print-stage { width: 100%; }
.shop-grid .legacy-image { max-width: 480px; }
.shop-cutout { width: min(100%, calc(400px * var(--shop-cutout-ratio))); height: auto; aspect-ratio: var(--shop-cutout-ratio); max-width: 100%; max-height: 400px; object-fit: contain; filter: drop-shadow(3px 9px 7px rgb(36 32 24 / 12%)); }
.shop-product-visual > div { width: 100%; min-width: 0; }
.shop-product-visual .shop-gallery-stage, .shop-product-visual .moonlamp-stage, .shop-product-visual .soundcard-stage { --gallery-stage-height: 320px; height: 320px; min-height: 0; max-width: 100%; aspect-ratio: auto; }
.shop-product-visual .soundcard-stage [data-soundcard-hero], .shop-product-visual .soundcard-stage [data-soundcard-canvas] { width: auto; max-width: 100%; height: 320px; object-fit: contain; }
.shop-product-visual .shop-gallery-title { display: grid; align-items: center; min-height: 72px; margin: 6px auto 0; max-width: 420px; padding-inline: 4px; font-size: 14px; }
.shop-product-visual .shop-choices { width: fit-content; max-width: 100%; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; margin-top: 8px; padding: 3px 2px 7px; scrollbar-width: thin; scrollbar-color: rgb(36 32 24 / 30%) transparent; }
.shop-choices button { flex: 0 0 47px; }
.shop-range-link { display: flex; align-items: center; gap: 14px; width: fit-content; margin-top: 24px; font-size: 15px; }
.shop-range-link > img { width: 58px; height: 64px; object-fit: cover; object-position: center; border-radius: 2px; box-shadow: 2px 3px 6px rgb(36 32 24 / 13%); }
.shop-range-link > span { text-decoration: underline; text-decoration-color: rgb(36 32 24 / 35%); text-underline-offset: 5px; }
.shop-text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 16px; font-size: 15px; line-height: 1.5; }
.shop-credit, .shop-artist-note { margin: 8px 0 0; font-size: 13px; line-height: 1.6; }
.shop-credit { opacity: .7; }
.shop-artist-note { margin-top: 28px; font-size: 15px; }
.shop-pumpkin-photo { width: min(100%, calc(370px * var(--shop-cutout-ratio))); height: auto; aspect-ratio: var(--shop-cutout-ratio); max-height: 370px; max-width: 100%; object-fit: contain; border: 6px solid #f5ebd0; box-shadow: 3px 8px 10px rgb(36 32 24 / 16%); transform: rotate(1deg); }

@media (hover: hover) and (pointer: fine) {
  .shop-text-link:hover, .shop-range-link:hover > span { text-decoration-color: currentColor; }
}

@media (min-width: 761px) {
  .shop-grid {
    --shop-visual-height: clamp(270px, calc(100svh - 370px), 350px);
    --shop-image-height: calc(var(--shop-visual-height) - 32px);
    --shop-gallery-height: calc(var(--shop-visual-height) - 100px);
    row-gap: 72px;
  }
  .shop-grid > .product-section { grid-template-rows: auto auto minmax(var(--shop-visual-height), auto) auto; scroll-margin-top: 24px; }
  .shop-grid > .product-section::after { bottom: -38px; }
  .shop-grid .product-heading { font-size: clamp(32px, 3vw, 38px); }
  .shop-grid .product-caption { min-height: 56px; margin: 16px 0 18px; }
  .shop-grid .product-availability { margin-top: 16px; }
  .shop-product-visual, .shop-grid > .product-section > .tote-image, .shop-grid > .product-section > .legacy-image, .shop-grid > .product-section > .print-animation { height: auto; min-height: var(--shop-visual-height); }
  .shop-grid .tote-image picture { width: min(100%, calc(var(--shop-image-height) * .509915)); }
  .shop-grid .tote-image img { width: 100%; max-height: var(--shop-image-height); }
  .shop-grid .print-animation { max-width: min(312px, var(--shop-image-height)); }
  .shop-grid .legacy-image { max-width: min(400px, calc(var(--shop-image-height) * 1.5)); }
  .shop-cutout { width: min(90%, calc(var(--shop-image-height) * var(--shop-cutout-ratio))); max-height: var(--shop-image-height); max-width: 90%; }
  .shop-pumpkin-photo { width: min(100%, calc(min(312px, var(--shop-image-height)) * var(--shop-cutout-ratio))); max-height: min(312px, var(--shop-image-height)); }
  .shop-product-visual > .shop-gallery, .shop-product-visual > [data-soundcard], .shop-product-visual > [data-moonlamp] { display: grid; grid-template-rows: minmax(0, 1fr) auto auto; height: var(--shop-visual-height); }
  .shop-product-visual .shop-gallery-stage, .shop-product-visual .moonlamp-stage, .shop-product-visual .soundcard-stage { --gallery-stage-height: var(--shop-gallery-height); height: 100%; }
  .shop-product-visual .soundcard-stage [data-soundcard-hero], .shop-product-visual .soundcard-stage [data-soundcard-canvas] { height: 100%; }
  .shop-product-visual .shop-gallery-title { min-height: 32px; margin-top: 4px; }
  .shop-range-link { margin-top: 12px; }
  .shop-text-link { margin-top: 12px; }
  .shop-credit { margin-top: 0; }
  .shop-artist-note { margin-top: 20px; }
  .shop-grid .print-progress { margin-top: 8px; }
}

@media (max-width: 1000px) and (min-width: 761px) {
  .shop-grid { --shop-column-gap: 64px; }
  .shop-grid .product-caption { gap: 18px; font-size: 16px; }
}

@media (max-width: 760px) {
  .shop-section { padding-block: 48px 80px; }
  .shop-grid { grid-template-columns: minmax(0, 1fr); row-gap: 70px; }
  .shop-grid > .product-section { grid-template-areas: "title" "caption" "visual" "copy"; grid-template-rows: auto auto auto auto; gap: 24px; }
  .shop-grid > .product-section:nth-child(odd)::before { display: none; }
  .shop-grid > .product-section::after, .shop-grid > .product-section:nth-last-child(-n + 2)::after { display: block; bottom: -37px; }
  .shop-grid > .product-section:last-child::after { display: none; }
  .shop-product-visual, .shop-grid > .product-section > .tote-image, .shop-grid > .product-section > .legacy-image, .shop-grid > .product-section > .print-animation { height: auto; min-height: 0; }
  .shop-grid .product-copy { text-align: center; }
  .shop-grid .product-heading { margin: 0; font-size: 36px; text-align: center; }
  .shop-grid .product-caption { min-height: 0; margin: 0 auto; gap: 24px; font-size: 16px; }
  .shop-grid .product-availability { justify-content: center; margin-top: 24px; }
  .shop-grid .tote-image picture { width: min(100%, calc(320px * .509915)); }
  .shop-grid .tote-image img { width: 100%; max-height: 320px; }
  .shop-grid .print-animation { max-width: 264px; }
  .shop-grid .legacy-image { max-width: 340px; }
  .shop-cutout { width: min(100%, calc(306px * var(--shop-cutout-ratio))); max-height: 306px; }
  .shop-product-visual .shop-gallery-stage, .shop-product-visual .moonlamp-stage, .shop-product-visual .soundcard-stage { --gallery-stage-height: 264px; height: 264px; }
  .shop-product-visual .soundcard-stage [data-soundcard-hero], .shop-product-visual .soundcard-stage [data-soundcard-canvas] { height: 264px; }
  .shop-product-visual .shop-gallery-title { min-height: 56px; }
  .shop-product-visual [data-moonlamp] > .shop-choices {
    display: grid;
    grid-template-columns: repeat(5, 44px);
    gap: 6px;
    overflow: visible;
    padding: 4px;
  }
  .shop-product-visual [data-moon-color]::before { width: 20px; height: 20px; }
  .shop-range-link { margin-inline: auto; }
  .shop-text-link { justify-content: center; }
  .shop-pumpkin-photo { width: min(100%, calc(306px * var(--shop-cutout-ratio))); max-height: 306px; }
}

@media (prefers-reduced-motion: reduce) {
  .shop-pumpkin-photo { transform: none; }
}
