@font-face {
  font-family: "Winter Promo Nunito";
  src: url("../fonts/nunito-black.cde860028be8.ttf") format("truetype");
  font-weight: 900;
  font-display: swap;
}

.winter-promo.shell {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-areas: "tree title glass gold action ruby";
  grid-template-columns: auto minmax(0, 1fr) auto auto auto auto;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  background: linear-gradient(115deg, #0c503a, #176449 58%, #0c4938);
  color: #fff9e9;
  margin-block: 10px 14px;
  padding: 15px clamp(12px, 3vw, 28px) 9px;
  border: 1px solid #b4995f;
  border-radius: 16px;
  box-shadow: 0 4px 12px #123d3026;
  text-decoration: none;
  line-height: 1.2;
}

.winter-promo::before,
.winter-promo::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 3px 12px auto;
  block-size: 19px;
  background-repeat: repeat-x;
  background-size: 76px 19px;
  pointer-events: none;
}

.winter-promo::before {
  background-image: radial-gradient(circle at 19px 5px, #fff6c5 0 1.8px, #ffce72 2.5px, #ffc06a63 4px, transparent 8px);
}

.winter-promo::after {
  background-image: radial-gradient(circle at 57px 10px, #fff0b7 0 1.6px, #ffc473 2.3px, #ffbc5e65 4px, transparent 8px);
  opacity: .7;
}

@media (prefers-reduced-motion: no-preference) {
  .winter-promo::before {
    animation: winter-garland 2.4s ease-in-out 2;
  }

  .winter-promo::after {
    animation: winter-garland 2.4s ease-in-out -1.2s 2;
  }
}

@keyframes winter-garland {
  0%, 100% { opacity: 1; }
  50% { opacity: .48; }
}

.winter-promo .winter-promo__title {
  grid-area: title;
  font-family: "Winter Promo Nunito", Manrope, Arial, sans-serif;
  font-size: clamp(30px, 3.15vw, 46px) !important;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.winter-promo img {
  object-fit: contain;
}

.winter-promo__tree {
  grid-area: tree;
  inline-size: 70px;
  block-size: 82px;
}

.winter-promo__ornament--glass {
  grid-area: glass;
  align-self: start;
  margin-block-start: 9px;
  transform: rotate(-10deg);
}

.winter-promo__ornament--gold {
  grid-area: gold;
  justify-self: center;
  align-self: end;
  margin-block-end: 8px;
  transform: rotate(-15deg);
}

.winter-promo__ornament--ruby {
  grid-area: ruby;
  align-self: start;
  margin-block-start: 5px;
  transform: rotate(15deg);
}

.winter-promo__action {
  grid-area: action;
  justify-self: start;
  padding: 10px 16px;
  border-radius: 99px;
  background: #ffe3a5;
  color: #372812;
  font-size: 16px;
  font-weight: 650;
  text-align: center;
}

.winter-promo:hover .winter-promo__action {
  background: #fff0cb;
}

@media (max-width: 740px) {
  .winter-promo.shell {
    grid-template-areas: "tree title ruby" "tree action gold";
    grid-template-columns: clamp(40px, 11vw, 64px) minmax(0, 1fr) clamp(40px, 11vw, 64px);
    gap: 7px 6px;
    padding-block-start: 17px;
  }

  .winter-promo .winter-promo__title {
    align-self: end;
    font-size: clamp(27px, 6.3vw, 36px) !important;
    text-align: center;
    text-wrap: balance;
  }

  .winter-promo__tree {
    justify-self: center;
    inline-size: 100%;
  }

  .winter-promo__ornament {
    justify-self: center;
    inline-size: 22px;
    block-size: 26px;
    margin-block: 0;
  }

  .winter-promo__ornament--glass {
    grid-area: tree;
    justify-self: start;
    align-self: end;
    inline-size: 19px;
    block-size: 23px;
  }

  .winter-promo__action {
    justify-self: center;
    align-self: start;
    padding: 5px 10px;
  }
}

.winter-promo:focus-visible,
.template-item__preview.winter-cover:focus-visible {
  outline: 3px solid #9c471f;
  outline-offset: 4px;
}

.winter-theme--tree-secrets { --winter-card: #133c2d; --winter-title: #fff2d1; --winter-surface: #e9eee1; --winter-ink: #263a2e; }
.winter-theme--snowflake-post { --winter-card: #dcecf5; --winter-title: #193b52; --winter-surface: #eaf2f7; --winter-ink: #203949; }
.winter-theme--mandarin-mischief { --winter-card: #ffe0b1; --winter-title: #773315; --winter-surface: #fff1dc; --winter-ink: #573217; }
.winter-theme--ceiling-confetti { --winter-card: #f9dcdf; --winter-title: #742636; --winter-surface: #fbecef; --winter-ink: #552a37; }
.winter-theme--wake-up-holiday { --winter-card: #eee3f5; --winter-title: #4a2858; --winter-surface: #f6eff7; --winter-ink: #422b45; }

.template-art.winter-cover {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  place-items: center;
  gap: 8px;
  aspect-ratio: .82;
  overflow: hidden;
  padding: 8% 5%;
  background: var(--winter-card);
  color: var(--winter-title);
}

.winter-cover__title {
  font: 700 clamp(19px, 2.25vw, 31px)/1.15 Georgia, serif;
  text-align: center;
  text-wrap: balance;
}

.winter-cover img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
