/* Christmas season. Loaded only inside the window (src/lib/season.ts);
   Layout puts .season-xmas on <html>. */

/* Hat on the first S of every SLSSAS wordmark. Sized in em, so it scales with
   the wordmark and rides the letter's key-press animation. */
.season-xmas .slssas-letter:first-child {
  position: relative;
}
.season-xmas .slssas-letter:first-child::before {
  content: "";
  position: absolute;
  left: -0.16em;
  top: -0.54em;
  width: 0.9em;
  aspect-ratio: 120 / 104;
  background: url("/images/season/santa-hat.svg") center / contain no-repeat;
  transform: rotate(-14deg);
  transform-origin: 45% 85%;
  pointer-events: none;
}

/* Snowfall behind the hero content. */
.season-snow {
  position: absolute;
  inset: 0;
  z-index: -5;
  overflow: hidden;
  pointer-events: none;
}
.season-snow i {
  position: absolute;
  top: -32px;
  color: #cbd5e1;
  animation: season-fall linear infinite;
}
@keyframes season-fall {
  from { transform: translateY(0) rotate(0deg); }
  to { transform: translateY(1100px) rotate(180deg); }
}
@media (prefers-reduced-motion: reduce) {
  .season-snow { display: none; }
}

