/* ==========================================================================
   Festive / Christmas theme — experiment.
   Everything here is scoped to html.xmas, so removing the class (or the two
   <link>/<script> tags for christmas.css / christmas.js) restores the site.
   ========================================================================== */

:root {
  --xmas-red: #e63946;
  --xmas-green: #2fbf71;
  --xmas-gold: #f5c542;
}

/* String lights hanging from the nav --------------------------------------- */
.xmas-lights {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 34px;
  padding: 0 14px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.xmas-lights::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.xmas-bulb {
  --c: var(--xmas-red);
  --stem: 8px;
  position: relative;
  display: block;
  width: 9px;
  height: 13px;
  margin-top: var(--stem);
  border-radius: 50% 50% 50% 50% / 55% 55% 45% 45%;
  background: var(--c);
  box-shadow: 0 0 10px 2px var(--c);
  animation: xmas-twinkle 2.4s ease-in-out infinite alternate;
}

.xmas-bulb::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 1px;
  height: var(--stem);
  background: rgba(255, 255, 255, 0.22);
}

.xmas-bulb:nth-child(4n + 1) { --c: var(--xmas-red); }
.xmas-bulb:nth-child(4n + 2) { --c: var(--xmas-gold); }
.xmas-bulb:nth-child(4n + 3) { --c: var(--xmas-green); }
.xmas-bulb:nth-child(4n + 4) { --c: #6cb8ff; }

@keyframes xmas-twinkle {
  from { opacity: 0.45; box-shadow: 0 0 4px 0 var(--c); }
  to { opacity: 1; box-shadow: 0 0 12px 3px var(--c); }
}

/* Snow ---------------------------------------------------------------------- */
.xmas-snow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 60;
}

/* Hero ---------------------------------------------------------------------- */
.xmas .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 55% at 12% 100%, rgba(230, 57, 70, 0.26), transparent 70%),
    radial-gradient(60% 55% at 88% 100%, rgba(47, 191, 113, 0.2), transparent 70%);
}

/* Small touches ------------------------------------------------------------ */
.xmas .site-header {
  border-bottom-color: rgba(230, 57, 70, 0.4);
}

.xmas .eyebrow::before {
  content: "\2744";
  margin-right: 0.8em;
  color: var(--xmas-red);
}

/* On / off switch ----------------------------------------------------------- */
.xmas-toggle {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 120;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--color-line);
  background: rgba(14, 14, 14, 0.9);
  color: var(--color-text-dim);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.xmas-toggle:hover {
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.3);
}

.xmas .xmas-toggle {
  color: var(--xmas-gold);
  border-color: rgba(245, 197, 66, 0.4);
}

@media (max-width: 620px) {
  .xmas-lights { height: 30px; padding: 0 10px; }
  .xmas-toggle { left: 12px; bottom: 12px; padding: 7px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .xmas-bulb { animation: none; }
}
