/* Hero (sections/hero.liquid): the flyer's top half. Glittery script wordmark with a Santa hat,
   crimson caps line, green italic lede, bow rule, body line, two buttons; portrait photo in an
   arched frame with a thin gold offset line. Warm cream glow behind the text. */

.hero {
  position: relative;
  overflow-x: clip;
  padding-block: clamp(40px, 4.5vw, 60px) clamp(24px, 3.5vw, 48px);
  background-image:
    radial-gradient(circle at 9% 16%, rgba(244, 204, 140, .34) 0 10px, rgba(244, 204, 140, 0) 34px),
    radial-gradient(circle at 44% 9%, rgba(255, 222, 160, .4) 0 8px, rgba(255, 222, 160, 0) 26px),
    radial-gradient(circle at 36% 58%, rgba(244, 204, 140, .22) 0 16px, rgba(244, 204, 140, 0) 46px),
    radial-gradient(circle at 5% 72%, rgba(255, 222, 160, .3) 0 12px, rgba(255, 222, 160, 0) 36px),
    radial-gradient(ellipse 58% 62% at 24% 38%, var(--c-glow) 0%, rgba(255, 244, 220, .62) 42%, rgba(255, 244, 220, 0) 72%),
    radial-gradient(ellipse 42% 48% at 82% 64%, rgba(255, 244, 220, .8), rgba(255, 244, 220, 0) 70%);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "intro" "media" "details";
  row-gap: clamp(18px, 4vw, 32px);
  align-items: center;
}
.hero__intro { grid-area: intro; }
.hero__details { grid-area: details; }
.hero__media { grid-area: media; }

/* ---------- Text column ---------- */
.hero__content {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 3.4cqi, 22px);
  text-align: center;
}

.hero__title {
  display: flex;
  flex-direction: column;
  align-items: inherit;
  gap: clamp(14px, 3cqi, 20px);
  width: 100%;
  margin: 0;
  font-size: 1rem;
  line-height: 1;
  text-wrap: initial;
}

/* The lockup: "Naples" over "Elves", sized from the column width */
.hero__lockup {
  position: relative;
  isolation: isolate;
  display: inline-block;
  padding-top: .3em;
  font-size: clamp(3rem, 22cqi, 6.4rem);
  line-height: 1;
}
.hero__wordmark {
  font-size: 1em;
  filter: drop-shadow(0 2px 2px rgba(90, 20, 20, .16));
}
/* The hat's size, placement on the N and fur outline come from base.css (.wordmark__hat); only its
   shadow differs here */
.hero__wordmark .wordmark__hat { filter: drop-shadow(0 .025em .03em rgba(60, 20, 20, .38)); }

/* Glitter: layered crimson (and green) gradients with fine sparkle flecks, clipped to the letters.
   Padding with matching negative margins keeps the script swashes inside the painted box. */
.hero__glitter {
  display: inline-block;
  padding: .32em .3em .36em .42em;
  margin: -.32em -.3em -.36em -.42em;
  color: var(--c-red);
}
.hero__wordmark .wordmark__rest .hero__glitter { color: var(--c-green); }

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__glitter {
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat, repeat, repeat, repeat, repeat, no-repeat;
    background-size: 100% 100%, 100% 100%, 100% 100%, 13px 17px, 19px 11px, 3px 4px, 5px 7px, 7px 5px, 11px 13px, 100% 100%;
    background-position: 0 0, 0 0, 0 0, 5px 3px, 11px 8px, 0 0, 1px 2px, 3px 1px, 4px 6px, 0 0;
    -webkit-text-stroke: .012em rgba(92, 8, 20, .5);
  }
  .hero__wordmark .wordmark__rest .hero__glitter { -webkit-text-stroke-color: rgba(4, 40, 22, .45); }
  /* layers: sheen, two specular glints, four fine glitter grains on co-prime grids, base gradient */
  .hero__wordmark .wordmark__first .hero__glitter {
    background-image:
      linear-gradient(160deg, rgba(255, 255, 255, .24) 16%, rgba(255, 255, 255, 0) 36%),
      radial-gradient(circle at 30% 42%, rgba(255, 255, 255, .9) 0, rgba(255, 255, 255, 0) .045em),
      radial-gradient(circle at 70% 38%, rgba(255, 240, 230, .8) 0, rgba(255, 240, 230, 0) .035em),
      radial-gradient(circle, rgba(255, 250, 244, .75) 0 .7px, rgba(255, 250, 244, 0) 1.5px),
      radial-gradient(circle, rgba(255, 150, 160, .6) 0 .6px, rgba(255, 150, 160, 0) 1.3px),
      radial-gradient(circle, rgba(255, 255, 255, .42) 0 .3px, rgba(255, 255, 255, 0) .7px),
      radial-gradient(circle, rgba(255, 138, 149, .5) 0 .4px, rgba(255, 138, 149, 0) .85px),
      radial-gradient(circle, rgba(255, 214, 160, .42) 0 .35px, rgba(255, 214, 160, 0) .8px),
      radial-gradient(circle, rgba(120, 8, 20, .35) 0 .5px, rgba(120, 8, 20, 0) 1px),
      linear-gradient(180deg, #E42C40 26%, #C4182A 56%, #9A1222 88%);
    background-image:
      linear-gradient(160deg, rgba(255, 255, 255, .24) 16%, rgba(255, 255, 255, 0) 36%),
      radial-gradient(circle at 30% 42%, rgba(255, 255, 255, .9) 0, rgba(255, 255, 255, 0) .045em),
      radial-gradient(circle at 70% 38%, rgba(255, 240, 230, .8) 0, rgba(255, 240, 230, 0) .035em),
      radial-gradient(circle, rgba(255, 250, 244, .75) 0 .7px, rgba(255, 250, 244, 0) 1.5px),
      radial-gradient(circle, rgba(255, 150, 160, .6) 0 .6px, rgba(255, 150, 160, 0) 1.3px),
      radial-gradient(circle, rgba(255, 255, 255, .42) 0 .3px, rgba(255, 255, 255, 0) .7px),
      radial-gradient(circle, rgba(255, 138, 149, .5) 0 .4px, rgba(255, 138, 149, 0) .85px),
      radial-gradient(circle, rgba(255, 214, 160, .42) 0 .35px, rgba(255, 214, 160, 0) .8px),
      radial-gradient(circle, rgba(120, 8, 20, .35) 0 .5px, rgba(120, 8, 20, 0) 1px),
      linear-gradient(180deg, color-mix(in srgb, var(--c-red) 62%, #FF4A5C) 26%, color-mix(in srgb, var(--c-red) 88%, #E0283A) 56%, color-mix(in srgb, var(--c-red) 70%, var(--c-red-deep)) 88%);
  }
  .hero__wordmark .wordmark__rest .hero__glitter {
    background-image:
      linear-gradient(160deg, rgba(255, 255, 255, .18) 16%, rgba(255, 255, 255, 0) 36%),
      radial-gradient(circle at 24% 40%, rgba(255, 255, 255, .7) 0, rgba(255, 255, 255, 0) .04em),
      radial-gradient(circle at 78% 44%, rgba(246, 230, 190, .7) 0, rgba(246, 230, 190, 0) .035em),
      radial-gradient(circle, rgba(246, 236, 206, .6) 0 .7px, rgba(246, 236, 206, 0) 1.5px),
      radial-gradient(circle, rgba(230, 207, 148, .6) 0 .6px, rgba(230, 207, 148, 0) 1.3px),
      radial-gradient(circle, rgba(255, 255, 255, .34) 0 .3px, rgba(255, 255, 255, 0) .7px),
      radial-gradient(circle, rgba(230, 207, 148, .55) 0 .4px, rgba(230, 207, 148, 0) .85px),
      radial-gradient(circle, rgba(130, 210, 160, .4) 0 .35px, rgba(130, 210, 160, 0) .8px),
      radial-gradient(circle, rgba(4, 40, 22, .35) 0 .5px, rgba(4, 40, 22, 0) 1px),
      linear-gradient(180deg, #1C7A4A 24%, #0F5A36 54%, #0C4A2C 86%);
    background-image:
      linear-gradient(160deg, rgba(255, 255, 255, .18) 16%, rgba(255, 255, 255, 0) 36%),
      radial-gradient(circle at 24% 40%, rgba(255, 255, 255, .7) 0, rgba(255, 255, 255, 0) .04em),
      radial-gradient(circle at 78% 44%, rgba(246, 230, 190, .7) 0, rgba(246, 230, 190, 0) .035em),
      radial-gradient(circle, rgba(246, 236, 206, .6) 0 .7px, rgba(246, 236, 206, 0) 1.5px),
      radial-gradient(circle, rgba(230, 207, 148, .6) 0 .6px, rgba(230, 207, 148, 0) 1.3px),
      radial-gradient(circle, rgba(255, 255, 255, .34) 0 .3px, rgba(255, 255, 255, 0) .7px),
      radial-gradient(circle, rgba(230, 207, 148, .55) 0 .4px, rgba(230, 207, 148, 0) .85px),
      radial-gradient(circle, rgba(130, 210, 160, .4) 0 .35px, rgba(130, 210, 160, 0) .8px),
      radial-gradient(circle, rgba(4, 40, 22, .35) 0 .5px, rgba(4, 40, 22, 0) 1px),
      linear-gradient(180deg, color-mix(in srgb, var(--c-green) 78%, #3FAE70) 24%, var(--c-green) 54%, color-mix(in srgb, var(--c-green) 55%, var(--c-green-deep)) 86%);
  }
}
@media (forced-colors: active) {
  .hero__glitter { -webkit-text-fill-color: currentColor; color: CanvasText; background: none; }
}

/* Sparkles around the lockup sit behind the letters; more sparkle around the photo frame */
.hero__frame-sparkles { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero__lockup-sparkles {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero__lockup-sparkles .sparkle { opacity: .85; }

.hero__caps {
  display: block;
  font-size: clamp(.78rem, 3.05cqi, 1.18rem);
  letter-spacing: .19em;
  line-height: 1.45;
  margin-right: -.19em;
}

.hero__lede {
  font-size: clamp(1.4rem, 4.8cqi, 1.95rem);
  line-height: 1.22;
}

.hero__rule { margin-block: 2px; }

.hero__text {
  max-width: 26em;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.18rem, 3.5cqi, 1.36rem);
  line-height: 1.45;
  color: var(--c-ink);
  text-wrap: balance;
}
.hero__text p { margin: 0 0 .6em; }
.hero__text p:last-child { margin-bottom: 0; }

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 14px;
  width: 100%;
  margin-top: 6px;
}
@media (max-width: 559px) {
  .hero__buttons .btn { flex: 1 1 100%; max-width: 380px; }
}

@media (min-width: 990px) {
  .hero__lockup { font-size: clamp(3.3rem, 15.2cqi, 7.4rem); }
  .hero__details { margin-top: clamp(16px, 3.4cqi, 22px); }
  .hero--align-left .hero__content { align-items: flex-start; text-align: left; }
  .hero--align-left .hero__rule { margin-inline: 0; }
  .hero--align-left .hero__buttons { justify-content: flex-start; }
  .hero--align-left .hero__caps { margin-right: 0; }
}

/* ---------- Photo ---------- */
.hero__media {
  container-type: inline-size;
  display: flex;
  justify-content: center;
  padding: 14px;
}

.hero__frame {
  --r: min(50cqi - 14px, 256px);
  --r-bottom: var(--radius-media);
  position: relative;
  width: 100%;
  max-width: 512px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-media);
  background: var(--c-parchment);
  box-shadow: var(--shadow-lift);
}
.hero--arch .hero__frame { border-radius: var(--r) var(--r) var(--r-bottom) var(--r-bottom); }

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focal, 50% 40%);
  border-radius: inherit;
}

/* thin gold line offset around the photo, concentric with its shape */
.hero__frame::before {
  content: "";
  position: absolute;
  inset: -12px;
  z-index: -1;
  border: 1px solid var(--c-gold);
  border-radius: calc(var(--radius-media) + 12px);
  opacity: .8;
  pointer-events: none;
}
.hero--arch .hero__frame::before {
  border-radius: calc(var(--r) + 12px) calc(var(--r) + 12px) calc(var(--r-bottom) + 12px) calc(var(--r-bottom) + 12px);
}
/* a soft glow behind the frame */
.hero__frame::after {
  content: "";
  position: absolute;
  inset: -12% -16%;
  z-index: -2;
  background: radial-gradient(ellipse at center, rgba(255, 244, 220, .95) 0%, rgba(255, 244, 220, .5) 45%, rgba(255, 244, 220, 0) 70%);
  pointer-events: none;
}

/* Soft edges: the photo dissolves into the cream like on the flyer */
.hero--soft .hero__frame {
  background: none;
  box-shadow: none;
  border-radius: 0;
  -webkit-mask-image: radial-gradient(closest-side, #000 58%, rgba(0, 0, 0, 0) 100%);
  mask-image: radial-gradient(closest-side, #000 58%, rgba(0, 0, 0, 0) 100%);
}
.hero--soft .hero__frame::before { display: none; }

@media (min-width: 750px) {
  .hero__frame { --r: min(50cqi - 14px, 270px); max-width: 540px; }
}

@media (min-width: 990px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas: ". media" "intro media" "details media" ". media";
    column-gap: clamp(36px, 4.4vw, 80px);
    row-gap: 0;
  }
  .hero__media { justify-content: flex-end; }
}
