/* Christmas on kavro.pro (25 November to 6 January): pine and red, lights under the header, snow.
   The server adds data-season to <html>; js/season.js draws the snow. */
html[data-season="christmas"] {
  --bg: #08100d;
  --bg-1: #0b1511;
  --surface: #101c17;
  --surface-2: #16261f;
  --surface-3: #1f3329;
  --line: rgba(226, 255, 240, .085);
  --line-2: rgba(226, 255, 240, .14);
  --line-3: rgba(226, 255, 240, .22);
  --text-2: #a9b8b0;
  --muted: #7b8c83;
  --accent: #ff6b62;
  --accent-ink: #2c0606;
  --accent-soft: rgba(255, 107, 98, .12);
  --accent-line: rgba(255, 107, 98, .46);
  --gold: #f2c14e;
}
[data-season="christmas"] ::selection { background: rgba(255, 107, 98, .34); }
[data-season="christmas"] .btn.primary { background: linear-gradient(180deg, #f5544b, #d8342f); border-color: transparent; color: #fff; }
[data-season="christmas"] .btn.primary:hover { background: linear-gradient(180deg, #ff6a61, #e23d37); border-color: transparent; }
[data-season="christmas"] .tag .dot { background: var(--gold); box-shadow: 0 0 0 3px rgba(242, 193, 78, .16); }
[data-season="christmas"] .hero h1 em { color: #ff7d75; }
[data-season="christmas"] .nav-item .icon { color: var(--gold); }
[data-season="christmas"] .nav-grid { background: #101c17; }
[data-season="christmas"] .site-header.scrolled { background: rgba(8, 16, 13, .86); }
[data-season="christmas"] .cta { background: radial-gradient(ellipse 60% 120% at 50% 0%, rgba(255, 107, 98, .1), transparent 70%); }
[data-season="christmas"] .bill-toggle .save { background: rgba(242, 193, 78, .16); color: var(--gold); }

/* ---- the string of lights */
.season-lights { position: absolute; left: 0; right: 0; top: 100%; height: 26px; overflow: hidden; pointer-events: none; }
.season-lights svg { display: block; width: 100%; height: 26px; max-width: none; }
.season-lights .wire { fill: none; stroke: #24352d; stroke-width: 1.4; }
.season-lights .bulb { animation: seasonBulb 2.6s ease-in-out infinite; }
.season-lights .bulb:nth-of-type(4n+1) { fill: #ff5a50; } .season-lights .bulb:nth-of-type(4n+2) { fill: #f2c14e; animation-delay: -.65s; }
.season-lights .bulb:nth-of-type(4n+3) { fill: #4ade80; animation-delay: -1.3s; } .season-lights .bulb:nth-of-type(4n) { fill: #60a5fa; animation-delay: -1.95s; }
@keyframes seasonBulb { 0%, 100% { opacity: 1; filter: drop-shadow(0 0 5px currentColor); } 50% { opacity: .35; } }
@media (max-width: 940px) { .site-header.open .season-lights { display: none; } }

/* ---- hat on the logo, snow, switch */
[data-season="christmas"] .site-header .brand { position: relative; }
.season-hat { position: absolute; left: -8px; top: -13px; width: 25px; height: 21px; transform: rotate(-17deg); pointer-events: none; }
.season-snow { position: fixed; inset: 0; z-index: 45; width: 100%; height: 100%; max-width: none; pointer-events: none; }
.season-switch { display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--text-2); cursor: pointer; transition: color .15s, background .15s; }
.season-switch:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.season-switch svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; }
.season-switch[aria-pressed="false"] { opacity: .5; }
/* snow lying on the live demo and the footer */
[data-season="christmas"] .site-footer { position: relative; }
[data-season="christmas"] .site-footer::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 30px; background: radial-gradient(ellipse 130px 26px at 130px 100%, #e9f2ee 99%, transparent) 0 0 / 380px 100% repeat-x, radial-gradient(ellipse 190px 18px at 190px 100%, #d7e5de 99%, transparent) 120px 0 / 520px 100% repeat-x; opacity: .1; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .season-lights .bulb { animation: none; } }
