/* www.sneeze.it: December (Hanukkah and Christmas) and New Year. Loaded after season.css and leans on
   its shared :root[data-season] rules (dark hero type, the greeting pill, the closing band, falling
   pieces, the footer opt-out); this file only paints what is new. Same rule as every holiday: only the
   hero and the closing call to action change, and the magenta buttons stay magenta. */

/* The homepage hero is light and shows the real work, so it stays as it is: the season adds the greeting,
   a string of lights along the top and snow (or confetti). The painted scene goes into the dark closing
   section (.close2), where the art sits under the call to action. */

/* ---------- string lights along the top of the hero ---------- */
.sx-lights{position:absolute;left:0;right:0;top:0;height:52px;z-index:3;pointer-events:none;overflow:visible}
.sx-lights svg{display:block;width:100%;height:100%;overflow:visible}
.sx-lights .wire{fill:none;stroke:#3a4256;stroke-width:1.6;opacity:.75}
.sx-lights .cap{fill:#5b6478}
.sx-lights .b{pointer-events:auto;cursor:pointer;transform-box:fill-box;transform-origin:50% 0;animation:sx-twinkle var(--t,2.6s) ease-in-out var(--dl,0s) infinite alternate}
@keyframes sx-twinkle{0%{opacity:.55;filter:drop-shadow(0 0 1px var(--g))}100%{opacity:1;filter:drop-shadow(0 0 7px var(--g)) drop-shadow(0 0 14px var(--g))}}
.sx-lights .b.pop{animation:sx-pop .7s ease-out}
@keyframes sx-pop{0%{transform:scale(1)}30%{transform:scale(1.6) rotate(12deg);filter:drop-shadow(0 0 16px #fff)}100%{transform:scale(1)}}
:root:is([data-season="holidays"],[data-season="newyear"]) .hero2{padding-top:calc(clamp(28px,4vh,52px) + 34px)}

/* ---------- the greeting pill on the light hero ---------- */
:root[data-season="holidays"] .sx-greet{color:#fff3dc;background:linear-gradient(180deg,#1d2b55,#0f1630);
  border:1px solid rgba(160,190,240,.7);box-shadow:0 8px 26px -10px rgba(20,40,90,.55)}
:root[data-season="newyear"] .sx-greet{color:#fff1c9;background:linear-gradient(180deg,#24183e,#0b0a18);
  border:1px solid rgba(255,211,107,.7);box-shadow:0 8px 26px -10px rgba(236,46,145,.6)}

/* ---------- the closing section carries the painting ---------- */
:root:is([data-season="holidays"],[data-season="newyear"]) .close2{position:relative;overflow:hidden;padding-bottom:calc(max(100vw,1100px) * .424 * .78)}
:root[data-season="holidays"] .close2{background:
    linear-gradient(180deg, var(--i0,#0d0d12) 0%, rgba(13,13,18,.55) 28%, rgba(13,13,18,0) 55%) 50% 100%/100% calc(max(100vw,1100px) * .424) no-repeat,
    url("/assets/winter/holidays-band.webp") 50% 100%/max(100vw,1100px) auto no-repeat, var(--i0,#0d0d12)}
:root[data-season="newyear"] .close2{background:
    linear-gradient(180deg, var(--i0,#0d0d12) 0%, rgba(13,13,18,.55) 28%, rgba(13,13,18,0) 55%) 50% 100%/100% calc(max(100vw,1100px) * .424) no-repeat,
    url("/assets/winter/ny-band.webp") 50% 100%/max(100vw,1100px) auto no-repeat, var(--i0,#0d0d12)}
:root:is([data-season="holidays"],[data-season="newyear"]) .close2::after{content:"";position:absolute;inset:0;pointer-events:none;mix-blend-mode:screen;
  background:radial-gradient(40% 16% at 50% 92%, rgba(255,180,90,.3), transparent 70%);animation:sx-candle 3s infinite}
:root:is([data-season="holidays"],[data-season="newyear"]) .close2 > *{position:relative;z-index:1}
:root[data-season="holidays"] .sx-note{color:#ffd9a0!important}
:root[data-season="newyear"] .sx-note{color:#ffd36b!important}
.close2 .sx-note{margin:18px 0 0!important;text-align:left;max-width:none}

/* ---------- the greeting: clickable for a flurry, and during Hanukkah it holds the menorah ---------- */
:root:is([data-season="holidays"],[data-season="newyear"]) p.sx-greet{cursor:pointer}
.sx-greet-menorah{padding-left:14px;padding-top:6px;padding-bottom:6px}
.sx-mwrap{display:block;width:60px;height:41px;flex:0 0 auto;margin-top:-4px}
.sx-menorah{display:block;width:100%;height:100%;overflow:visible}
.sx-flame{transform-box:fill-box;transform-origin:50% 90%;animation:sx-flicker 1.6s ease-in-out infinite alternate;filter:drop-shadow(0 0 3px rgba(255,190,90,.9))}
@keyframes sx-flicker{0%{transform:scale(1,1) rotate(-2deg);opacity:.95}35%{transform:scale(.92,1.08) rotate(2deg);opacity:1}70%{transform:scale(1.05,.94) rotate(-1deg);opacity:.9}100%{transform:scale(.97,1.04) rotate(1.5deg);opacity:1}}
.sx-flare .sx-flame{animation:sx-flare .9s ease-out, sx-flicker 1.6s ease-in-out .9s infinite alternate}
@keyframes sx-flare{0%{transform:scale(1)}35%{transform:scale(1.7,2.1);filter:drop-shadow(0 0 8px #ffd36b)}100%{transform:scale(1)}}

/* ---------- the logo wears a snowflake, then a party hat ---------- */
.sx-charm{position:absolute;pointer-events:none;filter:drop-shadow(0 1px 1px rgba(20,40,90,.55)) drop-shadow(0 3px 5px rgba(0,0,0,.25));transition:transform .3s cubic-bezier(.34,1.56,.64,1)}
.sx-charm-holidays{left:-14px;top:-14px;width:30px;transform:rotate(-12deg)}
.sx-charm-newyear{left:-10px;top:-24px;width:24px;transform:rotate(-24deg);transform-origin:50% 100%}
@media (hover:hover) and (pointer:fine){
  :root[data-season="holidays"] .nav-logo:hover .sx-charm{transform:rotate(48deg) scale(1.1)}
  :root[data-season="newyear"] .nav-logo:hover .sx-charm{transform:rotate(-40deg) translateY(-3px)}
}

/* snow falls slower and turns less than leaves, with a soft edge so it shows on the light page too */
.sx-snow svg{animation-duration:6s!important;filter:drop-shadow(0 0 1.5px rgba(40,70,130,.45))}

@media (max-width:760px){
  .sx-lights{height:40px}
  .sx-charm-holidays{left:-11px;top:-11px;width:24px}
  .sx-charm-newyear{left:-8px;top:-19px;width:20px}
  .sx-mwrap{width:50px;height:34px}
}
@media (prefers-reduced-motion: reduce){
  .sx-flame,.sx-flare .sx-flame,.sx-lights .b{animation:none}
  :root[data-season] .close2::after{animation:none}
}
