/* ==========================================================================
   Christmas theme (seasonal). Loaded after style.css; nothing in style.css changes.
   To remove it: delete the christmas.css <link> and the christmas.js <script> in index.html.
   ========================================================================== */

:root { --pine: #1f6b43; --snow: #fff; }

/* Santa hat on the logo stamp in the top bar */
.stamp { position: relative; top: 12px; } /* nudged down so the hat isn't cut off at the top of the screen */
.stamp::before {
  content: ""; position: absolute; z-index: 1; pointer-events: none;
  top: -15px; left: -13px; width: 42px; height: 36px;
  transform: rotate(-22deg);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 42 36'%3E%3Cpath d='M5 27 C9 12 20 3 33 6 L36 22 Z' fill='%23cc0202' stroke='%23111' stroke-width='2' stroke-linejoin='round'/%3E%3Crect x='2' y='24' width='36' height='9' rx='4.5' fill='%23fff' stroke='%23111' stroke-width='2'/%3E%3Ccircle cx='35' cy='7' r='5' fill='%23fff' stroke='%23111' stroke-width='2'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* The red marquee band turns pine green, so the two bands read red/green */
.band-alt { background: var(--pine); }

/* Festive greeting in the hero (added by js/christmas.js) */
.xmas-hi {
  width: fit-content; margin: 0 0 12px; padding: 6px 14px;
  background: var(--pine); color: var(--snow);
  border: 2px solid var(--black); border-radius: 20px;
  font: 800 22px/1.1 "Display", sans-serif; text-transform: uppercase; letter-spacing: .04em;
}
.js .hero .col > :nth-child(6) { animation-delay: .7s; }

/* Gentle falling snow over the page; clicks pass straight through.
   .snow is a screen-sized frame that clips its contents, so the falling layers can never
   add page height or scroll. The layers move with transform only (GPU-composited, no
   repaint per frame), so it stays light on phones. Each layer starts above the frame by
   exactly the distance it travels, so the loop is seamless. */
.snow {
  position: fixed; inset: 0; z-index: 20; pointer-events: none; overflow: hidden; contain: strict;
  --flakes:
    radial-gradient(3px 3px at 20px 30px, var(--snow) 50%, transparent 51%),
    radial-gradient(2px 2px at 90px 120px, var(--snow) 50%, transparent 51%),
    radial-gradient(4px 4px at 160px 60px, var(--snow) 50%, transparent 51%),
    radial-gradient(2px 2px at 230px 170px, var(--snow) 50%, transparent 51%),
    radial-gradient(3px 3px at 60px 210px, var(--snow) 50%, transparent 51%);
}
.snow::before, .snow::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  background-image: var(--flakes);
  will-change: transform;
}
.snow::before { top: -780px; background-size: 260px 260px; opacity: .85; animation: snow 18s linear infinite; }
.snow::after  { top: -760px; background-size: 380px 380px; opacity: .5;  animation: snow-far 28s linear infinite; }
@keyframes snow     { to { transform: translate3d(0, 780px, 0); } }  /* 3 × 260px tile */
@keyframes snow-far { to { transform: translate3d(0, 760px, 0); } }  /* 2 × 380px tile */

@media (prefers-reduced-motion: reduce) {
  .snow::before, .snow::after { animation: none; }
}
