/* Christmas on Jellyn (js/season.js): everything here applies only while html[data-season="christmas"], which the
   script sets from 1 December to 6 January. The snow is a canvas the script draws; here are the lights along the
   header, the hat on the jelly, and the snow switch beside the theme button. */
.season-snow{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:2147483000}

/* Lights hanging under the header bar, each twinkling at its own pace. */
html[data-season="christmas"] .site-header .header-inner{position:relative}
.season-lights{position:absolute;left:18px;right:18px;bottom:-8px;height:14px;display:flex;justify-content:space-between;align-items:flex-start;pointer-events:none;z-index:2}
.season-lights::before{content:"";position:absolute;left:-6px;right:-6px;top:1px;height:1px;background:color-mix(in oklab,var(--text) 26%,transparent)}
.season-lights i{position:relative;top:3px;width:6px;height:9px;border-radius:50% 50% 46% 46%;background:var(--bulb);box-shadow:0 0 7px 1px color-mix(in oklab,var(--bulb) 70%,transparent);animation:season-twinkle 2.6s ease-in-out infinite}
.season-lights i::before{content:"";position:absolute;left:1px;top:-2px;width:4px;height:3px;border-radius:1px;background:color-mix(in oklab,var(--text) 40%,transparent)}
.season-lights i:nth-child(4n+1){--bulb:#ff5c72}
.season-lights i:nth-child(4n+2){--bulb:#ffd166}
.season-lights i:nth-child(4n+3){--bulb:#4fdc9b}
.season-lights i:nth-child(4n){--bulb:#7fb2ff}
.season-lights i:nth-child(3n+1){animation-delay:-.9s}
.season-lights i:nth-child(3n+2){animation-delay:-1.7s}
.season-lights i:nth-child(5n){animation-duration:3.4s}
.season-lights i:nth-child(7n){animation-duration:2.1s}
@keyframes season-twinkle{0%,100%{opacity:1}50%{opacity:.4;box-shadow:0 0 2px 0 color-mix(in oklab,var(--bulb) 40%,transparent)}}
@media (max-width:640px){.season-lights{left:12px;right:12px}.season-lights i:nth-child(n+12){display:none}}

/* A hat on the jelly in the header. */
html[data-season="christmas"] .site-header .brand{position:relative}
.season-hat{position:absolute;left:13px;top:-11px;width:26px;height:23px;transform:rotate(16deg);pointer-events:none;filter:drop-shadow(0 1px 1px rgb(0 0 0 / .25))}

/* The snow switch: dimmed while the snow is stopped. */
.season-toggle[aria-pressed="false"] .icon{opacity:.45}

@media (prefers-reduced-motion:reduce){.season-lights i{animation:none}}
