.holiday-banner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: radial-gradient(ellipse at 50% 110%, #c5373e, transparent 68%),
              linear-gradient(110deg, #760e26, #ae1836 48%, #7f102b);
}

.holiday-banner-inner {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 178px;
  padding: 15px 0 53px;
}

.holiday-greeting { display: grid; justify-items: center; gap: 6px; margin: 0; text-align: center; }

.holiday-title {
  font: 400 clamp(48px, 5vw, 75px)/1 var(--serif);
  letter-spacing: -.052em;
  text-shadow: 0 2px 8px #630a2044;
}
.holiday-title em { font-weight: 400; }

.holiday-signature {
  display: flex;
  align-items: center;
  gap: 6px;
  font: italic 15px/1.25 var(--serif);
}
.holiday-signature strong { font: 700 12px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.holiday-signature::before, .holiday-signature::after {
  content: "";
  width: clamp(12px, 2vw, 30px);
  height: 1px;
  margin-inline: 3px;
  background: #f0cbba;
}

/* A continuous cut-paper landscape at the lower edge of the banner. */
.holiday-forest { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.holiday-forest::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 7px;
  background: #f7f7ef;
  border-radius: 60% 40% 0 0 / 40% 65% 0 0;
}
.holiday-ridge {
  position: absolute;
  bottom: 3px;
  left: -13px;
  right: -13px;
  display: flex;
  align-items: end;
}
.holiday-ridge.distant { height: 62px; color: #b9c8c0; }
.holiday-ridge.near { left: -34px; height: 49px; color: #244c48; }
.holiday-ridge i {
  position: relative;
  flex: 1 0 29px;
  height: 72%;
  margin-right: -3px;
  background: currentColor;
  clip-path: polygon(50% 0,62% 28%,57% 26%,71% 44%,63% 42%,82% 62%,72% 60%,98% 89%,57% 89%,57% 100%,43% 100%,43% 89%,2% 89%,28% 60%,18% 62%,37% 42%,29% 44%,43% 26%,38% 28%);
}
.holiday-ridge.near i { flex-basis: 43px; }
.holiday-ridge i:nth-child(3n) { height: 95%; }
.holiday-ridge i:nth-child(4n + 1) { height: 55%; }
.holiday-ridge i:nth-child(5n + 2) { height: 82%; }
.holiday-ridge i:nth-child(7n) { height: 100%; }
.holiday-ridge i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fbfaf1;
  clip-path: polygon(0 0,100% 0,100% 26%,51% 18%,63% 36%,46% 30%,68% 53%,48% 44%,71% 72%,48% 64%,81% 88%,54% 78%,37% 84%,44% 73%,12% 88%,34% 61%,16% 71%,38% 47%,26% 53%,47% 24%,31% 32%,0 45%);
}

.holiday-snow-toggle {
  position: absolute;
  right: 0;
  top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 5px 11px;
  color: inherit;
  background: transparent;
  border: 1px solid #ffffffa6;
  border-radius: 999px;
  font: 600 .875rem/1.2 var(--sans);
  cursor: pointer;
}

.holiday-snow-toggle::before {
  content: "";
  width: 8px;
  height: 10px;
  border-inline: 2px solid currentColor;
}

.holiday-snow-toggle.is-paused::before {
  width: 0;
  height: 0;
  border: 5px solid transparent;
  border-left: 8px solid currentColor;
  border-right: 0;
}

.holiday-snow-toggle:hover { background: #ffffff20; }
.holiday-snow-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.holiday-snow {
  position: fixed;
  inset: 0;
  z-index: 6;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  contain: strict;
}

.holiday-snow > span {
  position: absolute;
  top: -12px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: #f5faff;
  box-shadow: 0 0 2px #58718c66;
  animation: holiday-snowfall 15s linear infinite;
}

.holiday-snow > span:nth-child(7n) {
  width: 1.5px;
  height: calc(var(--size) + 5px);
  border-radius: 2px;
}

.holiday-snow > span:nth-child(7n)::before,
.holiday-snow > span:nth-child(7n)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  border-radius: inherit;
  transform: rotate(60deg);
}

.holiday-snow > span:nth-child(7n)::after { transform: rotate(-60deg); }

@keyframes holiday-snowfall {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(var(--drift), 50vh, 0) rotate(48deg); }
  to { transform: translate3d(0, calc(100vh + 24px), 0) rotate(96deg); }
}

.holiday-banner[hidden], .holiday-snow[hidden], .holiday-snow-toggle[hidden] { display: none; }

@media (max-width: 900px) {
  .holiday-snow > span:nth-child(n + 41) { display: none; }
}

@media (max-width: 600px) {
  .holiday-banner-inner { min-height: 149px; padding: 21px 0 53px; }
  .holiday-title { font-size: clamp(38px, 10vw, 54px); }
  .holiday-ridge.near { height: 36px; }
  .holiday-ridge.distant { height: 44px; }
  .holiday-snow-toggle { top: 5px; right: -9px; width: 32px; min-height: 32px; height: 32px; padding: 0; }
  .holiday-snow-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .holiday-snow > span:nth-child(n + 27) { display: none; }
}

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