.frame { --offer-seam-overlap: 15.25cqw; }

.glow-format:has(+ .glow-offer) { padding-bottom: var(--offer-seam-overlap); }

.glow-offer {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1199 / 1312;
  background: #360504;
  color: #ffeac4;
  text-align: center;
}

.glow-offer::before {
  position: absolute;
  z-index: -1;
  inset: calc(-1 * var(--offer-seam-overlap)) 0 auto;
  aspect-ratio: 872 / 184;
  /* Frame the wave between the reference's annotation and the portrait. */
  background: url("./glow-up-card-assets/offer-transition-reference.png")
    64.706% 35.745% / calc(889 / 872 * 100%) auto no-repeat;
  -webkit-mask-image: linear-gradient(transparent, #000 21%, #000 89%, transparent);
  mask-image: linear-gradient(transparent, #000 21%, #000 89%, transparent);
  pointer-events: none;
  content: "";
}

.offer-art {
  position: absolute;
  z-index: -2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.offer-title,
.offer-brand,
.offer-outro {
  position: absolute;
  inset-inline: 46.5% 7.3%;
  margin: 0;
}

.offer-title {
  top: 9.5%;
  font: italic 600 clamp(17px, 5.86cqw, 29px)/.97 var(--display);
}

.offer-title span {
  display: block;
  margin-top: .11em;
  font-size: .84em;
}

.offer-brand { top: 25.9%; }

.offer-kicker {
  display: block;
  margin-bottom: 1.05cqw;
  font: 500 clamp(8px, 2.45cqw, 12px)/1.15 var(--body);
  letter-spacing: .57em;
  text-indent: .57em;
  text-transform: uppercase;
}

.offer-wordmark {
  display: inline-block;
  /* The italic P extends past the text box and still needs the gold fill. */
  padding-inline: .24em;
  margin-inline: -.24em;
  color: #ffd882;
  font: italic 500 clamp(27px, 9.9cqw, 48px)/1.04 "Bodoni Moda", "Times New Roman", serif;
  letter-spacing: -.036em;
  white-space: nowrap;
  background: linear-gradient(#fff5ca 21%, #ffdb86 45%, #e79c35 72%, #bb701b 94%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: .22px #ffd987;
  filter: drop-shadow(0 0 .95cqw #ff8e4260);
}

.offer-price {
  position: absolute;
  inset: 43.25% 13.9% auto 52.7%;
  margin: 0;
  color: #5c0c07;
}

.offer-amount {
  display: block;
  font: italic 700 clamp(27px, 8.9cqw, 43px)/.95 "Times New Roman", serif;
  font-variant-numeric: lining-nums;
}

.offer-daily {
  display: block;
  margin-top: .2cqw;
  font: 400 clamp(8px, 2.2cqw, 10.6px)/1.15 Arial, var(--body);
  white-space: nowrap;
}

.offer-daily::before {
  display: block;
  width: 87%;
  margin: 0 auto .65cqw;
  border-top: 1px solid #6f240e80;
  content: "";
}

.offer-daily strong { font-weight: 700; }

.offer-cta.cta {
  position: absolute;
  inset: 64% auto auto 45%;
  transform: translateY(-50%);
  width: 49%;
  min-height: 0;
  height: 10cqw;
  padding: 0 3px;
  font-size: clamp(13px, 4.12cqw, 19.8px);
  border-color: #ffdd91;
  border-top-color: #fff3c9;
  background: linear-gradient(112deg, #ffb54d 3%, #fff0c4 46%, #ffd27b 71%, #f5a233 100%);
  box-shadow: inset 0 1px 5px #fff3d4, inset 0 -2px 6px #b951252b,
    0 2px 4px #28040580, 0 0 3.6cqw #ffa04970;
}

.offer-cta::after {
  position: absolute;
  inset: 50% 0 auto;
  height: max(100%, 44px);
  transform: translateY(-50%);
  content: "";
}

.offer-cta:hover { filter: brightness(1.05); }

.offer-outro {
  top: 70.7%;
  font: italic 600 clamp(12px, 3.64cqw, 17.5px)/1.05 var(--display);
}

.offer-outro strong {
  display: block;
  color: #ffc354;
  font-size: 1.29em;
  font-weight: 600;
}

.offer-outro strong span { font-size: .76em; }

@media (forced-colors: active) {
  .offer-wordmark {
    -webkit-text-fill-color: currentColor;
    -webkit-text-stroke: 0;
  }
}
