/* Christmas mode. Everything here only applies while <html> has the class "xmas",
   which the site adds when the switch in the admin panel is on. */
html.xmas{--blue:#c8202f}
html.xmas .hero{background:linear-gradient(180deg,#b81d2b,#d62839 60%,#c8202f)}
html.xmas .event{background:repeating-linear-gradient(135deg,#0d6b3b 0 22px,#0b5a32 22px 44px)}
html.xmas .event b{color:#fff}

/* string of lights under the event bar */
.xlights{display:none}
html.xmas .xlights{display:block;position:relative;height:44px;margin-bottom:-44px;z-index:3;pointer-events:none}
.xlights svg{width:100%;height:100%;display:block;overflow:visible}
.xlights .bulb{animation:xblink 1.6s ease-in-out infinite;transform-box:fill-box;transform-origin:center}
.xlights .bulb:nth-child(3n){animation-delay:.5s}.xlights .bulb:nth-child(3n+1){animation-delay:1s}
@keyframes xblink{50%{opacity:.35;filter:none}}

/* santa hat on the logo */
.xhat{display:none}
html.xmas .logo{position:relative}
html.xmas .xhat{display:block;position:absolute;left:-14px;top:-22px;width:46px;rotate:-14deg;pointer-events:none;animation:xhat 3s ease-in-out infinite}
@keyframes xhat{50%{rotate:-8deg}}

/* snow over the whole page */
.xsnow{display:none}
html.xmas .xsnow{display:block;position:fixed;inset:0;pointer-events:none;z-index:25;overflow:hidden}
.xsnow i{position:absolute;top:-12px;width:var(--s);height:var(--s);border-radius:50%;background:#fff;opacity:var(--o);box-shadow:0 0 4px rgba(255,255,255,.6);animation:xfall var(--d) linear var(--w) infinite}
@keyframes xfall{to{transform:translate(var(--x),105vh)}}

/* snow caps on cards and the featured picture */
html.xmas .card{overflow:visible;position:relative}
html.xmas .card .pic{border-radius:19px 19px 0 0}
html.xmas .card::before,html.xmas .fpic::before{content:"";position:absolute;left:-8px;right:-8px;top:-17px;height:30px;z-index:6;pointer-events:none;background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20400%2040%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20d%3D%22M2%2030C2%2018%2014%2012%2026%2015C34%204%2058%203%2068%2013C80%206%2098%208%20104%2016C118%202%20150%204%20158%2015C170%208%20186%2010%20192%2017C206%205%20236%206%20244%2016C256%209%20272%2010%20280%2017C294%204%20326%205%20334%2015C346%208%20364%209%20372%2016C384%2010%20398%2016%20398%2030L398%2032C390%2033%20386%2033%20384%2036C382%2040%20376%2040%20375%2035C372%2033%20340%2033%20320%2033C316%2034%20314%2039%20309%2038C305%2037%20306%2033%20300%2033L170%2033C166%2035%20166%2040%20160%2039C155%2038%20157%2033%20150%2033L60%2033C56%2034%2057%2038%2052%2038C47%2038%2048%2033%2044%2033L2%2033Z%22%20fill%3D%22%23fff%22%20stroke%3D%22%230a0a12%22%20stroke-width%3D%222.5%22%20stroke-linejoin%3D%22round%22%20vector-effect%3D%22non-scaling-stroke%22%2F%3E%3C%2Fsvg%3E") center/100% 100% no-repeat}
html.xmas .fpic{overflow:visible}
html.xmas .fpic>img{border-radius:22px}
html.xmas .fpic .wipe{display:none}
html.xmas .fpic::before{left:-10px;right:-10px;top:-20px;height:34px}
html.xmas .tag{z-index:7}

@media(prefers-reduced-motion:reduce){html.xmas .xsnow{display:none}.xlights .bulb,html.xmas .xhat{animation:none}}
