@charset "UTF-8";

/* A seasonal closing card; all styling stays inside this final section. */
.christmas-section {
  --christmas-red: #781c26;
  --christmas-red-deep: #58151d;
  --christmas-cream: #fff3dc;
  --christmas-gold: #e3bf80;
  position: relative;
  isolation: isolate;
  padding-block: 45px 82px;
  scroll-margin-top: 105px;
}

.christmas-section .christmas-wrap {
  position: relative;
}

.christmas-section .christmas-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  grid-template-areas: "copy video";
  align-items: center;
  gap: 26px 56px;
  padding: 101px 61px 61px;
  border: 1px solid #9a3841;
  border-radius: 4px;
  background-color: var(--christmas-red);
  background-image: radial-gradient(ellipse at 5% 0%, #bd495133 0, transparent 52%),
    radial-gradient(ellipse at 100% 100%, #34091135 0, transparent 58%),
    linear-gradient(125deg, #8b26302e, #58151d3d);
  color: var(--christmas-cream);
  box-shadow: 0 13px 35px #5b321c21, 0 2px 6px #5b321c13;
}

.christmas-section .christmas-card::before {
  position: absolute;
  z-index: 0;
  inset: 12px;
  content: "";
  border: 1px solid #e3bf8073;
  border-radius: 1px;
  pointer-events: none;
}

/* The optional SVG replaces this quiet string of warm, static lights. */
.christmas-section .christmas-card::after {
  position: absolute;
  top: 30px;
  right: 34px;
  left: 34px;
  height: 22px;
  content: "";
  border-top: 1px solid #e3bf805c;
  background-image: radial-gradient(circle at 12px 8px, #fff4c9 0 3px, #e8bd6573 4px, transparent 8px);
  background-position: 18px 0;
  background-repeat: repeat-x;
  background-size: 72px 22px;
  pointer-events: none;
}

.christmas-section .christmas-card:has(.christmas-garland)::after {
  display: none;
}

.christmas-section .christmas-card > :not(.christmas-garland) {
  position: relative;
  z-index: 1;
}

.christmas-section .christmas-garland {
  position: absolute;
  z-index: 0;
  top: 11px;
  left: 22px;
  display: block;
  width: calc(100% - 44px);
  height: 72px;
  overflow: hidden;
  color: var(--christmas-gold);
  pointer-events: none;
}

.christmas-section .christmas-kicker {
  grid-area: kicker;
  justify-self: start;
  max-width: 100%;
  color: #f1d6aa;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.christmas-section .christmas-copy {
  grid-area: copy;
  min-width: 0;
  padding-bottom: 4px;
}

.christmas-section .christmas-intro {
  margin: 0 0 17px;
  color: #fff3dce8;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -.015em;
}

.christmas-section .christmas-copy h2 {
  max-width: 500px;
  margin: 0;
  color: var(--christmas-cream);
  font-family: var(--serif);
  font-size: clamp(54px, 5.5vw, 82px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.christmas-section .christmas-wish {
  max-width: 31ch;
  margin: 23px 0 0;
  color: #fff3dce8;
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -.02em;
  text-wrap: pretty;
}

.christmas-section .christmas-signature {
  display: inline-block;
  margin: 33px 0 0;
  padding-top: 18px;
  border-top: 1px solid #e3bf807d;
  color: #f1d6aa;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -.035em;
}

.christmas-section .christmas-video-frame {
  grid-area: video;
  position: relative;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 12px 12px 15px;
  border: 1px solid #f9eddb;
  background-color: #fbf5e9;
  background-image: url("assets/paper-texture.svg");
  background-size: 650px;
  color: var(--brown);
  box-shadow: 1px 9px 24px #2c080d45;
}

.christmas-section .christmas-video-frame::before {
  position: absolute;
  top: -11px;
  left: calc(50% - 46px);
  width: 92px;
  height: 24px;
  content: "";
  background: #d7bc8dbc;
  clip-path: polygon(1% 3%, 99% 0, 100% 94%, 2% 100%, 0 66%, 2% 32%);
  transform: rotate(-3deg);
  pointer-events: none;
}

.christmas-section .christmas-video-frame::after {
  position: absolute;
  right: -1px;
  bottom: -8px;
  left: -1px;
  height: 12px;
  content: "";
  background-color: #fbf5e9;
  background-image: url("assets/paper-texture.svg");
  background-size: 650px;
  clip-path: polygon(0 0, 100% 0, 100% 60%, 96% 78%, 92% 58%, 88% 84%, 84% 65%, 80% 91%, 76% 65%, 72% 82%, 68% 61%, 64% 94%, 60% 67%, 56% 84%, 52% 60%, 48% 88%, 44% 64%, 40% 94%, 36% 66%, 32% 82%, 28% 60%, 24% 90%, 20% 64%, 16% 85%, 12% 62%, 8% 92%, 4% 69%, 0 84%);
  pointer-events: none;
}

.christmas-section .christmas-video-stage {
  position: relative;
  width: 100%;
  background: #211614;
}

.christmas-section .christmas-video-stage > video {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(66vh, 600px);
  margin: 0;
  background: #211614;
  object-fit: contain;
}

.christmas-section .christmas-video-stage > video:focus-visible {
  outline: 3px solid var(--christmas-gold);
  outline-offset: 4px;
}

.christmas-section .christmas-video-frame figcaption {
  display: block;
  margin: 11px 5px 0;
  color: #775531;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .015em;
  text-align: center;
}

@media (max-width: 1100px) {
  .christmas-section .christmas-card {
    grid-template-columns: .9fr 1.1fr;
    column-gap: 34px;
    padding: 94px 42px 49px;
  }

  .christmas-section .christmas-copy h2 {
    font-size: 62px;
  }

  .christmas-section .christmas-intro {
    font-size: 16px;
  }

  .christmas-section .christmas-wish {
    font-size: 18px;
  }
}

@media (max-width: 780px) {
  .christmas-section {
    padding-block: 25px 58px;
    scroll-margin-top: 91px;
  }

  .christmas-section .christmas-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "video";
    gap: 24px;
    padding: 87px 29px 38px;
  }

  .christmas-section .christmas-card::before {
    inset: 9px;
  }

  .christmas-section .christmas-card::after {
    top: 25px;
    right: 22px;
    left: 22px;
    background-size: 57px 22px;
  }

  .christmas-section .christmas-garland {
    top: 8px;
    left: 15px;
    width: calc(100% - 30px);
    height: 62px;
  }

  .christmas-section .christmas-kicker {
    max-width: 340px;
    font-size: 9px;
    line-height: 1.75;
    letter-spacing: .11em;
  }

  .christmas-section .christmas-copy {
    padding-bottom: 8px;
  }

  .christmas-section .christmas-intro {
    margin-bottom: 15px;
    font-size: 16px;
  }

  .christmas-section .christmas-copy h2 {
    max-width: 480px;
    font-size: clamp(49px, 10vw, 67px);
    line-height: 1.04;
  }

  .christmas-section .christmas-wish {
    max-width: 32ch;
    margin-top: 20px;
    font-size: 18px;
  }

  .christmas-section .christmas-signature {
    margin-top: 26px;
    padding-top: 16px;
    font-size: 24px;
  }

  .christmas-section .christmas-video-frame {
    margin-top: 4px;
    padding: 9px 9px 12px;
  }

  .christmas-section .christmas-video-frame figcaption {
    margin-top: 10px;
    font-size: 10px;
  }
}

@media (max-width: 380px) {
  .christmas-section .christmas-card {
    padding-inline: 23px;
  }

  .christmas-section .christmas-copy h2 {
    font-size: 44px;
  }

  .christmas-section .christmas-intro,
  .christmas-section .christmas-wish {
    font-size: 16px;
  }
}
