.holiday-garland {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(3px, 2vw, 24px);
  min-height: 30px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 35%, #243a2b, #111710 62%, #0c0c0a);
  border-block: 1px solid #362d21;
}

.holiday-sprig {
  position: relative;
  display: block;
  width: clamp(47px, 12vw, 112px);
  height: 24px;
  flex: 0 0 auto;
  background:
    linear-gradient(0deg, #725a35, #bc9651) center / 100% 1px no-repeat,
    repeating-linear-gradient(34deg, transparent 0 3px, #28482e 3.5px 4px, #75a46b 4.5px 5px, #3e7148 5.5px 6px, transparent 7px 9px) top / 100% 12px no-repeat,
    repeating-linear-gradient(-34deg, transparent 0 3px, #172f24 3.5px 4px, #5c9060 4.5px 5px, #365c3d 5.5px 6px, transparent 7px 9px) bottom / 100% 12px no-repeat;
  clip-path: polygon(0 50%, 15% 24%, 46% 0, 88% 22%, 100% 50%, 87% 79%, 48% 100%, 14% 76%);
}

.holiday-sprig i {
  position: absolute;
  inset: 7px auto auto 47%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #ffdf99, #b28245 57%, #68421f);
  box-shadow: 0 0 4px #e5c38166;
}

.holiday-garland .holiday-sprig:nth-child(even) i {
  background: repeating-linear-gradient(150deg, #805c3e 0 2px, #4a3023 2px 3px);
  box-shadow: none;
  transform: rotate(-30deg);
}

.foundation-event {
  position: relative;
}

.holiday-event-trim {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.holiday-event-trim .holiday-sprig {
  position: absolute;
  width: 38px;
  top: -5px;
  left: 3px;
  transform: rotate(-15deg);
}

.holiday-event-trim .holiday-sprig:last-child {
  inset: auto 3px -5px auto;
  transform: rotate(165deg);
}

.holiday-event-trim i {
  border-radius: 65% 25% 65% 25%;
  background: #9a3449;
  box-shadow: 4px 2px #6f2335;
}

.holiday-snow {
  position: fixed;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
}

.holiday-snow span {
  position: absolute;
  top: -12px;
  left: var(--snow-x);
  width: var(--snow-size, 3px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fffaf0;
  box-shadow: 0 0 4px #fffaf066;
  opacity: .65;
  animation: holiday-snow-drift var(--snow-duration) linear var(--snow-delay) infinite;
}

.holiday-snow span:nth-child(1) { --snow-x: 3%; --snow-duration: 11s; --snow-delay: -0s; --snow-size: 2px; }
.holiday-snow span:nth-child(2) { --snow-x: 9%; --snow-duration: 16s; --snow-delay: -7s; --snow-size: 3px; }
.holiday-snow span:nth-child(3) { --snow-x: 15%; --snow-duration: 11s; --snow-delay: -14s; --snow-size: 4px; }
.holiday-snow span:nth-child(4) { --snow-x: 19.200000000000003%; --snow-duration: 16s; --snow-delay: -2s; --snow-size: 5px; }
.holiday-snow span:nth-child(5) { --snow-x: 25.200000000000003%; --snow-duration: 11s; --snow-delay: -9s; --snow-size: 2px; }
.holiday-snow span:nth-child(6) { --snow-x: 31.2%; --snow-duration: 16s; --snow-delay: -16s; --snow-size: 3px; }
.holiday-snow span:nth-child(7) { --snow-x: 35.400000000000006%; --snow-duration: 11s; --snow-delay: -4s; --snow-size: 4px; }
.holiday-snow span:nth-child(8) { --snow-x: 41.400000000000006%; --snow-duration: 16s; --snow-delay: -11s; --snow-size: 5px; }
.holiday-snow span:nth-child(9) { --snow-x: 47.400000000000006%; --snow-duration: 11s; --snow-delay: -18s; --snow-size: 2px; }
.holiday-snow span:nth-child(10) { --snow-x: 51.6%; --snow-duration: 16s; --snow-delay: -6s; --snow-size: 3px; }
.holiday-snow span:nth-child(11) { --snow-x: 57.6%; --snow-duration: 11s; --snow-delay: -13s; --snow-size: 4px; }
.holiday-snow span:nth-child(12) { --snow-x: 63.60000000000001%; --snow-duration: 16s; --snow-delay: -1s; --snow-size: 5px; }
.holiday-snow span:nth-child(13) { --snow-x: 67.80000000000001%; --snow-duration: 11s; --snow-delay: -8s; --snow-size: 2px; }
.holiday-snow span:nth-child(14) { --snow-x: 73.8%; --snow-duration: 16s; --snow-delay: -15s; --snow-size: 3px; }
.holiday-snow span:nth-child(15) { --snow-x: 79.80000000000001%; --snow-duration: 11s; --snow-delay: -3s; --snow-size: 4px; }
.holiday-snow span:nth-child(16) { --snow-x: 84%; --snow-duration: 16s; --snow-delay: -10s; --snow-size: 5px; }
.holiday-snow span:nth-child(17) { --snow-x: 90%; --snow-duration: 11s; --snow-delay: -17s; --snow-size: 2px; }
.holiday-snow span:nth-child(18) { --snow-x: 96.00000000000001%; --snow-duration: 16s; --snow-delay: -5s; --snow-size: 3px; }

@keyframes holiday-snow-drift {
  0% { transform: translate3d(-8px, 0, 0); opacity: 0; }
  12%, 85% { opacity: .65; }
  50% { transform: translate3d(14px, 50vh, 0); }
  100% { transform: translate3d(-5px, calc(100vh + 24px), 0); opacity: 0; }
}

body:has(#holidayLightMotion:not(:checked)) .holiday-snow {
  display: none;
}

.footer-premium > .holiday-footer {
  grid-column: 1 / -1;
  padding: 0 8px 12px;
  text-align: center;
}

.holiday-footer .holiday-greeting {
  margin: 0;
  color: #e4c48d;
  text-align: center;
  font: 600 clamp(1.25rem, 3vw, 1.75rem)/1.25 "Cormorant Garamond", Georgia, serif;
}

.holiday-light-control {
  color: #e7d5b3;
  font-size: .75rem;
}

.holiday-light-control input { accent-color: #d6aa65; }

@media (max-width: 600px) {
  .holiday-garland .holiday-sprig:nth-child(n + 6),
  .holiday-snow span:nth-child(even) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .holiday-snow {
    display: none;
  }

  .holiday-light-control { display: none; }
}
