/* Holiday themes. <html> gets "xmas" (Nov 25 to Dec 30), "newyear" (Dec 31 to Jan 31) or "valentine" (February) from the script in index.html. */
.xmas-only,.newyear-only,.valentine-only{display:none}
html.xmas .xmas-only,html.newyear .newyear-only,html.valentine .valentine-only{display:grid}

/* Patterned sky */
html.xmas body,html.xmas .top{background-image:url(img/xmas/snowflakes.svg);background-attachment:fixed}
html.newyear body,html.newyear .top{background-image:url(img/newyear/sparkles.svg);background-attachment:fixed}
html.valentine body,html.valentine .top{background-image:url(img/valentine/hearts.svg);background-attachment:fixed}

/* Decoration strung under the header: lights, party bunting, or hearts */
html.xmas .top::after,html.newyear .top::after,html.valentine .top::after{content:"";position:absolute;left:0;right:0;top:100%;height:30px;background:url(img/xmas/lights.svg) repeat-x 0 0/140px 32px;pointer-events:none}
html.newyear .top::after{background-image:url(img/newyear/bunting.svg)}
html.valentine .top::after{background-image:url(img/valentine/garland.svg)}

/* Hats on the logo and the 403 sign: Santa hats, party hats, or heart headbands */
.hat{display:none;position:absolute;pointer-events:none;background:url(img/xmas/santa-hat.svg) no-repeat center/contain}
html.xmas .hat,html.newyear .hat,html.valentine .hat{display:block}
.brand{position:relative}
.brand .hat{width:42px;height:35px;left:4px;top:-14px;transform:rotate(-18deg)}
.sign .hat{width:17%;aspect-ratio:1.2;left:4.5%;top:-6%;transform:rotate(-14deg)}
html.newyear .hat{background-image:url(img/newyear/party-hat.svg)}
html.newyear .brand .hat{width:30px;height:36px;left:2px;top:-22px}
html.newyear .sign .hat{width:11%;aspect-ratio:.83;left:10%;top:1%;transform:rotate(-20deg)}
html.valentine .hat{background-image:url(img/valentine/heart-bopper.svg)}
html.valentine .brand .hat{width:44px;height:40px;left:6px;top:-12px;transform:rotate(-10deg)}
html.valentine .sign .hat{width:15%;aspect-ratio:1.09;left:7%;top:5%;transform:rotate(-16deg)}

/* Holiday section on the home page */
.holly,.cheers,.sweet{color:#fff;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:clamp(24px,5vw,80px);padding:clamp(32px,5vw,72px) var(--gut)}
.holly{background:#0b6b45 url(img/xmas/snowflakes.svg)}
.cheers{background:#0b1a33 url(img/newyear/sparkles.svg)}
.sweet{background:#7a0b3a url(img/valentine/hearts.svg)}
.holly img,.cheers img,.sweet img{width:min(100%,520px);justify-self:center}
.kicker{font-weight:700;color:var(--sun);margin-bottom:10px}
.holly h2,.cheers h2,.sweet h2{margin-bottom:18px}
.holly .btn,.cheers .btn,.sweet .btn{background:var(--sun);color:var(--navy)}.holly .btn:hover,.cheers .btn:hover,.sweet .btn:hover{background:#fff}
.holly :focus-visible,.cheers :focus-visible,.sweet :focus-visible{outline-color:#fff;box-shadow:none}

/* Snow piled on top of the footer (Christmas only) */
html.xmas footer{position:relative}
html.xmas footer::before{content:"";position:absolute;left:0;right:0;top:-1px;height:30px;background:url(img/xmas/snowdrift.svg) repeat-x 0 0/400px 30px}
html.xmas .foot{padding-top:72px}

/* Falling snow, confetti or hearts */
#fall{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:4}

@media(max-width:820px){
.holly,.cheers,.sweet{grid-template-columns:minmax(0,1fr)}
.sign .hat{width:22%;left:3%;top:-5%}
html.newyear .sign .hat{width:14%;left:9%;top:2%}
html.valentine .sign .hat{width:19%;left:5%;top:5%}
}
