/* Yolk & Co — Christmas theme. Remove the <link>/<script> tags marked XMAS in each page to switch off. */
:root{--xred:#C8352B;--xpine:#2F5D46;--xgold:#D8A21A}
#xsnow{position:fixed;inset:0;width:100%;height:100%;z-index:950;pointer-events:none}

/* ---- Santa hat ---- */
.xwrap{position:relative;display:inline-block;line-height:0}
.xhat{position:absolute;height:auto;pointer-events:none;z-index:3;transform-origin:30% 95%;
  filter:drop-shadow(0 2px 2px rgba(35,35,35,.22));animation:xhat 6s ease-in-out infinite}
@keyframes xhat{0%,100%{transform:rotate(-9deg)}50%{transform:rotate(-4deg)}}

/* ---- string lights ---- */
.xlights{position:absolute;left:0;right:0;top:100%;height:24px;pointer-events:none;z-index:2}
.xlights svg{width:100%;height:24px;display:block}
.xlights .bulb{animation:xtw 3s ease-in-out infinite}
.xlights .bulb:nth-child(4n+2){animation-delay:.5s}.xlights .bulb:nth-child(4n+3){animation-delay:1.2s}.xlights .bulb:nth-child(4n){animation-delay:1.9s}
@keyframes xtw{0%,100%{opacity:1}50%{opacity:.4}}
.xlights.top{top:0}

/* ---- hanging baubles ---- */
.xorns{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:1}
.xorn{position:absolute;top:0;display:flex;flex-direction:column;align-items:center;transform-origin:50% 0;
  animation:xsway 4.8s ease-in-out infinite alternate}
.xorn i{display:block;width:1px;height:var(--len);background:rgba(35,35,35,.4)}
.xorn svg{width:var(--sz);height:auto;display:block;filter:drop-shadow(0 2px 2px rgba(35,35,35,.2))}
@keyframes xsway{from{transform:rotate(-5deg)}to{transform:rotate(5deg)}}

/* ---- snow caps ---- */
.xcap{position:absolute;left:0;right:0;top:-3px;height:18px;pointer-events:none;z-index:4;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 18'%3E%3Cpath d='M0 0H60V7Q56 15 49 9Q43 16 35 9Q28 17 21 9Q14 15 8 8Q3 12 0 7Z' fill='%23fff' stroke='%23b9c6d3' stroke-width='1'/%3E%3C/svg%3E") repeat-x left top/60px 18px;
  filter:drop-shadow(0 1px 1px rgba(35,35,35,.15))}
.xcap.in{top:0}

/* ---- garland ---- */
.xgarland{position:absolute;left:0;right:0;top:-2px;height:30px;pointer-events:none;z-index:3;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 30'%3E%3Cpath d='M-2 4Q30 30 62 4T122 4' fill='none' stroke='%232F5D46' stroke-width='7' stroke-linecap='round'/%3E%3Cpath d='M-2 4Q30 30 62 4T122 4' fill='none' stroke='%23447f62' stroke-width='2.5' stroke-dasharray='2 5' stroke-linecap='round'/%3E%3Ccircle cx='31' cy='19' r='3.4' fill='%23C8352B'/%3E%3Ccircle cx='38' cy='16.5' r='3' fill='%23C8352B'/%3E%3Ccircle cx='91' cy='19' r='3.4' fill='%23D8A21A'/%3E%3Ccircle cx='84' cy='16.5' r='3' fill='%23C8352B'/%3E%3C/svg%3E") repeat-x left top/120px 30px}
.xcandy{position:absolute;left:0;right:0;top:0;height:6px;pointer-events:none;z-index:2;
  background:repeating-linear-gradient(-45deg,var(--xred) 0 8px,#fff 8px 16px)}

/* ---- holly on headings ---- */
h2.xh{position:relative}
h2.xh::after{content:"";position:absolute;right:-46px;top:-18px;width:40px;height:34px;pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 34'%3E%3Cpath d='M20 18C14 6 4 6 1 10c1 7 9 11 19 8z' fill='%232F5D46'/%3E%3Cpath d='M20 18C27 5 37 5 39 9c-1 8-9 12-19 9z' fill='%23447f62'/%3E%3Ccircle cx='16' cy='23' r='5' fill='%23C8352B'/%3E%3Ccircle cx='24' cy='24' r='5' fill='%23C8352B'/%3E%3Ccircle cx='20' cy='28' r='5' fill='%23A82A22'/%3E%3Ccircle cx='14.5' cy='21.5' r='1.3' fill='%23fff' opacity='.6'/%3E%3C/svg%3E") no-repeat center/contain}
@media(max-width:760px){h2.xh::after{right:-34px;top:-14px;width:30px;height:26px}}

/* ---- greeting pill + footer message ---- */
.xgreet{display:inline-flex;align-items:center;gap:8px;margin-left:8px;font:700 11px/1 'Montserrat','Space Mono',sans-serif;
  letter-spacing:.1em;text-transform:uppercase;color:#fff;background:var(--xred);padding:9px 14px;border-radius:100px;vertical-align:top;
  box-shadow:0 4px 12px rgba(200,53,43,.28)}
.xgreet svg{width:14px;height:14px;display:block;flex:none}
.xgreet.block{display:flex;width:max-content;margin:14px auto 0}
.xmsg{margin-top:14px;font:600 12px/1.5 'Montserrat','Space Mono',sans-serif;letter-spacing:.08em;text-transform:uppercase;color:var(--xred);text-align:center}
.x-run footer .xmsg{color:#ff8a80}
@media(max-width:760px){.x-home .hero .xgreet{order:1;align-self:flex-start;margin:8px 0 0}}

@media(max-width:760px){.xorn.l{display:none}.xlights{height:18px}.xlights svg{height:18px}}
@media(prefers-reduced-motion:reduce){#xsnow{display:none}.xhat,.xorn,.xlights .bulb{animation:none}}

/* ---- page-specific room for the hat / garland ---- */
body.x-res header{padding-top:2.9rem;padding-bottom:1.5rem}
body.x-home .nav-in{padding-top:21px}
body.x-run .bar{padding-top:30px}
body.x-run .xgreet.block{margin-left:0}
.xcap.inset{left:18px;right:18px;top:-6px}

@media(max-width:760px){body.x-res header{padding-bottom:2.1rem}.x-run .bar .xorn:nth-child(n+3){display:none}}
