/* Christmas, 1 December to 6 January: html.xmas is set in each homepage's
   <head>. Shared by both looks; the snow itself is ui/xmas.js. */

:root:not(.xmas) [data-xmas] { display: none !important; }

.snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* Need You: behind the copy, over the ghost source. Sounding: over the sky plates. */
.snow--glyph { z-index: 1; }
.snow--flake { z-index: 50; }
.need-you-on .snow, .vibe-on .snow { display: none; }

/* Need You: the seasonal line in the hero, where the countdown was. */
.xmas-cmd { font: .8125rem/1.6 var(--mono); letter-spacing: .06em; }
.xmas-cmd span { color: var(--white-dim); }

/* Sounding: the wordmark frosts over, snow-white along the tops of the
   letters and ice-blue towards the baseline. */
.xmas .hero__word {
  background: linear-gradient(to bottom, var(--light) 0 40%, #cfe1f2 58%, #9dbcdb 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* Sounding: a Santa hat on the C (brand/xmas-hat.svg), sized in em so it
   follows the wordmark at every width. The middle of the fur band's lower
   edge (51% across, 91.25% down the hat) rests on the crown of the C, which
   in Libre Caslon Display sits .375em in and .264em below the text's top;
   it sinks .026em in so the hat sits rather than hovers. */
.xmas .hero__word { position: relative; }
.xmas .hero__word::before {
  content: ""; position: absolute; left: .11em; top: -.09em;
  width: .52em; height: .416em;
  background: url("/brand/xmas-hat.svg") no-repeat center / contain;
  transform: rotate(8deg); transform-origin: 51% 91.25%;
}
/* The wordmark's reveal clips to just above the letters; leave room for the hat. */
.xmas.js .hero__mark.reveal.is-in { clip-path: inset(-40% -4% -20% -3%); }
