@font-face {
  font-family: DynaPuff;
  src: url("DynaPuff.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}

.bundle-poster {
  --poster-font: DynaPuff, "Arial Rounded MT Bold", system-ui, sans-serif;
  --burst: polygon(
    50% 0%, 54% 13%, 60% 24%, 68% 33%, 78% 41%, 89% 46%, 100% 50%,
    89% 54%, 78% 59%, 68% 67%, 60% 76%, 54% 87%, 50% 100%,
    46% 87%, 40% 76%, 32% 67%, 22% 59%, 11% 54%, 0% 50%,
    11% 46%, 22% 41%, 32% 33%, 40% 24%, 46% 13%
  );
  display: grid;
  grid-template:
    ". art" 1fr
    "copy art" auto
    "action art" auto
    ". art" 1fr / minmax(0, .84fr) minmax(0, 1.16fr);
  align-items: center;
  background: var(--cream);
  border: 1px solid var(--coral);
  border-radius: .65rem;
}

.bundle-promotion { margin-block-start: clamp(1.25rem, 4vw, 3.5rem); }
.bundle-promotion .section-head { justify-content: center; text-align: center; }

.bundle-poster-copy,
.bundle-poster-action { margin-inline: clamp(1.5rem, 4vw, 3.8rem) 0; }
.bundle-poster-copy { grid-area: copy; }

.bundle-poster-title {
  font: 700 clamp(1.45rem, 2.55vw, 2.25rem) / 1.1 var(--poster-font);
  letter-spacing: -.035em;
  text-wrap: wrap;
}

.bundle-poster-title span {
  display: block;
  margin-bottom: .08em;
  font-size: clamp(3.5rem, 7.5vw, 6.7rem);
  line-height: .98;
  white-space: nowrap;
}

.bundle-poster-copy p {
  margin-top: .9rem;
  font-weight: 700;
}

.bundle-poster-action { grid-area: action; margin-top: 1.45rem; }

.bundle-poster-art {
  grid-area: art;
  position: relative;
  aspect-ratio: 1.42;
  isolation: isolate;
}

.bundle-poster-art img {
  position: absolute;
  width: 97%;
  height: auto;
  inset: 4% 0 auto 2%;
  filter: drop-shadow(-2px 5px 4px rgb(61 27 28 / .26))
          drop-shadow(0 6px 9px rgb(61 27 28 / .15));
}

.bundle-poster-label {
  position: absolute;
  z-index: 1;
  padding: .15em .4em;
  border-radius: .2em;
  background: var(--cream);
  font-size: clamp(.9rem, 1.75vw, 1.25rem);
  font-weight: 800;
  white-space: nowrap;
}

.bundle-poster-label.savoury { inset: 24% auto auto 4%; transform: rotate(-10deg); }
.bundle-poster-label.sweet { inset: 7% 5% auto auto; transform: rotate(9deg); }

.bundle-poster-price {
  position: absolute;
  right: 5%;
  bottom: 4%;
  display: grid;
  width: 28.5%;
  max-width: 13rem;
  aspect-ratio: 1.08;
  place-items: center;
  font: 700 clamp(2.9rem, 5.6vw, 4.9rem) / 1 var(--poster-font);
  transform: rotate(-11deg);
}

.bundle-poster-price::before,
.bundle-poster-art::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--coral);
  content: "";
}

.bundle-poster-price::before {
  border-radius: 52% 48% 56% 44% / 47% 54% 46% 53%;
}

.bundle-poster-art::before {
  inset: 8% auto auto 11%;
  width: 9%;
  aspect-ratio: 1;
  clip-path: var(--burst);
  transform: rotate(17deg);
}

.bundle-poster-price span { white-space: nowrap; }
.bundle-poster-price small { font-size: .5em; }

@media (prefers-reduced-motion: no-preference) {
  .bundle-poster.is-in-view { animation: bundle-frame-pulse .75s ease-out; }
  .bundle-poster.is-in-view .bundle-poster-art img { animation: bundle-plates-lift .65s ease-out; }
  .bundle-poster.is-in-view .bundle-poster-price { animation: bundle-price-pop .55s ease-out .12s; }

  @keyframes bundle-frame-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgb(255 100 76 / 0); }
    30% { box-shadow: 0 0 0 5px rgb(255 100 76 / .24); }
  }

  @keyframes bundle-plates-lift {
    from { translate: 0 12px; scale: .985; }
  }

  @keyframes bundle-price-pop {
    0%, 100% { scale: 1; }
    55% { scale: 1.07; }
  }
}

@media (max-width: 739px) {
  .bundle-poster { grid-template: "copy" "art" "action" / minmax(0, 1fr); }
  .bundle-poster-copy, .bundle-poster-action { margin-inline: 1rem; text-align: center; }
  .bundle-poster-copy { padding-top: 1.55rem; }
  .bundle-poster-title span { font-size: clamp(3.4rem, 14vw, 5.8rem); }
  .bundle-poster-copy p { margin-top: .55rem; }
  .bundle-poster-art { margin-top: .7rem; }
  .bundle-poster-price { font-size: clamp(2.15rem, 9.9vw, 4.5rem); }
  .bundle-poster-action { margin-block: .5rem 1.4rem; }
}
