/* Seasonal hero for the original Homepage template. */
@font-face {
  font-family: "Lilita One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lilita-one-latin.woff2") format("woff2");
}

.homeTop.winterHero {
  isolation: isolate;
  height: clamp(740px, 66.667vw, 1100px);
  min-height: 0;
  background: #071a2d;
}

.homeTop.winterHero::before {
  /* Keep the white navigation readable above the Christmas scene. */
  height: 220px;
  inset: 0 0 auto;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgb(7 26 45 / 45%), transparent);
}

.homeTop.winterHero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(145deg, transparent 52%, rgb(7 26 45 / 20%) 76%, rgb(7 26 45 / 65%));
}

.winterHero__background,
.winterHero__background img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.winterHero__background img {
  object-fit: cover;
  object-position: center top;
}

.homeTop.winterHero .winterHero__copy {
  position: absolute;
  z-index: 2;
  right: 2.5%;
  bottom: 55px;
  display: block;
  width: min(38vw, 620px);
  height: auto;
  margin: 0;
  padding: 0;
  text-align: center;
  line-height: 1;
  transform: rotate(-9deg);
  transform-origin: 50% 60%;
  animation: winter-headline-arrive 700ms cubic-bezier(.16, 1, .3, 1) both;
}

.homeTop.winterHero .winterHero__tagline {
  margin: 0 0 4px;
  color: #fff8ed;
  font-family: "Inter", sans-serif;
  font-size: clamp(18px, 1.7vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgb(7 26 45 / 85%);
}

.homeTop.winterHero .winterHero__headline {
  margin: 0;
  padding: 0;
  line-height: 1;
}

.winterHero__lettering {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  font-family: "Lilita One", "Arial Rounded MT Bold", sans-serif;
  font-weight: 400;
  letter-spacing: -1.5px;
}

.winterHero__gift {
  font-size: 116px;
}

.winterHero__shewee {
  font-size: 143px;
}

.winterHero__letters {
  fill: #ed4c9f;
  stroke: #fff8ed;
  stroke-width: 13px;
  stroke-linejoin: round;
  paint-order: stroke fill;
  filter: drop-shadow(4px 7px 0 #602459);
}

.winterHero__letterStroke {
  fill: none;
  stroke: #fff0b3;
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: winter-outline-draw 2200ms ease-out 350ms forwards;
}

.winterHero__swoosh {
  fill: none;
  stroke: #fff0b3;
  stroke-width: 9px;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(2px 3px 0 #602459);
  animation: winter-underline-draw 1100ms ease-out 1100ms forwards;
}

.winterHero__sparkles {
  fill: #fff8ed;
  filter: drop-shadow(2px 2px 0 #602459);
  transform-box: fill-box;
  transform-origin: center;
  animation: winter-sparkle-arrive 900ms ease-out 1200ms both;
}

@keyframes winter-headline-arrive {
  from { opacity: 0; transform: translateY(18px) rotate(-5deg) scale(.95); }
  to { opacity: 1; transform: translateY(0) rotate(-9deg) scale(1); }
}

@keyframes winter-outline-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes winter-underline-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes winter-sparkle-arrive {
  from { opacity: 0; transform: scale(.6); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 991px) and (min-width: 768px) {
  .homeTop.winterHero .winterHero__copy {
    right: 4%;
    width: 46vw;
  }
}

@media (max-width: 767px) {
  .homeTop.winterHero {
    height: clamp(690px, 94svh, 850px);
  }

  .homeTop.winterHero::after {
    background: linear-gradient(180deg, transparent 40%, rgb(7 26 45 / 8%) 48%, #071a2d 77%);
  }

  .winterHero__background {
    top: 64px;
    bottom: auto;
    height: 68%;
    mask-image: linear-gradient(180deg, transparent, #000 9%, #000 76%, transparent);
  }

  .winterHero__background img {
    object-position: 44% top;
  }

  .homeTop.winterHero .winterHero__copy {
    right: 5%;
    bottom: 40px;
    width: min(88%, 460px);
  }

  .homeTop.winterHero .winterHero__tagline {
    font-size: clamp(18px, 4.7vw, 24px);
  }

  .winterHero__letters {
    stroke-width: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .homeTop.winterHero .winterHero__copy,
  .winterHero__letterStroke,
  .winterHero__swoosh,
  .winterHero__sparkles,
  .winterHero .waveSvg use {
    animation: none;
  }

  .winterHero__letterStroke,
  .winterHero__swoosh {
    stroke-dashoffset: 0;
  }
}
