/* Christmas site theme "Gold" (public-site/christmas.js). Only active while christmas.js has put .xmas on <body> (owner-only
   preview until he says release). christmas.js rewrites every purple in the site's style sheets to gold; this file adds the
   rest. The logo is never filtered (owner 11/29: the recolored logo "fucks the logo up"). Prefix xm-. */
/* (no body background: a body colour painted a grey-ish frame over the constellation backdrop, owner 11/29) */
.xm-snow { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 50; pointer-events: none; }

/* home hero: the snowy-night photo; the site's shade is tuned for the dark gate art, keep only what the title needs */
body.xmas .home-hero-img { object-position: 60% 62%; filter: brightness(.95) contrast(1.05) saturate(1.05); }
body.xmas .home-hero-overlay { background: linear-gradient(to right, rgba(4,5,8,.8) 0%, rgba(4,5,8,.5) 28%, rgba(4,5,8,.1) 50%, transparent 62%), linear-gradient(to top, rgba(8,8,8,.7) 0%, transparent 26%); }

/* every other page's banner art: a winter night grade */
body.xmas .xm-graded { filter: saturate(.75) brightness(.92) contrast(1.06); }

/* "AFTERLIFE." in gold foil */
body.xmas .home-h-purple { background: linear-gradient(180deg, #fffaf0 0%, #f6dc93 34%, #c8952e 70%, #f3d98c 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 22px rgba(240,205,124,.3)); }

/* string lights hung along the top edge of a banner / the sidebar (canvas drawn by christmas.js) */
.xm-lights { position: absolute; left: 0; width: 100%; z-index: 6; pointer-events: none; }
/* side strands: the same drawing turned 90°, bulbs hanging inward */
.xm-lights.e-left { left: 0; transform-origin: 0 0; transform: rotate(90deg) scaleY(-1); will-change: transform; }
.xm-lights.e-right { left: 100%; transform-origin: 0 0; transform: rotate(90deg); will-change: transform; }
/* gold baubles hanging from the home banner on thin gold threads, swaying */
.xm-baubles { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; border-radius: inherit; }
.xm-baubles i { position: absolute; top: 0; width: var(--s); margin-left: calc(var(--s) / -2); height: calc(var(--len) + var(--s) * 1.06); transform-origin: 50% 0; animation: xmSway var(--t) ease-in-out infinite; animation-delay: var(--d); }
.xm-baubles i::before { content: ""; position: absolute; left: 50%; top: 0; width: 1px; height: calc(var(--len) + 4px); background: linear-gradient(180deg, rgba(240,205,124,.2), rgba(240,205,124,.85)); }
.xm-baubles b { position: absolute; left: 0; bottom: 0; width: var(--s); height: calc(var(--s) * 1.06); background: center / contain no-repeat; filter: drop-shadow(0 8px 14px rgba(0,0,0,.6)) drop-shadow(0 0 10px rgba(240,205,124,.22)); }
@keyframes xmSway { 0%, 100% { transform: rotate(-3.5deg); } 50% { transform: rotate(3.5deg); } }
@media (max-width: 760px) { .xm-baubles i:nth-child(2n) { display: none; } .xm-baubles i { --s: 34px !important; } }

@media (prefers-reduced-motion: reduce) { .xm-baubles i { animation: none; } }
