/* Christmas theme for the homepage (2026-11-12).
 *
 * Loaded only in season by templates/partials/_landing_xmas.html, and every
 * rule is scoped to html.tp-xmas. xmas.js builds the lights and the snow;
 * xmas-scene.js decorates the 3D world. Every layer here is decoration:
 * aria-hidden and pointer-events:none, so it never takes a click.
 */
html.tp-xmas {
  --xmas-red: #d7263d;
  --xmas-red-hover: #e8475b;
  --xmas-green: #1f8a4c;
  --xmas-gold: #ffd23f;
}
.xmas-layer { pointer-events: none !important; }

/* ---------- Greeting above the hero eyebrow ---------- */
html.tp-xmas .xmas-greeting {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  padding: 7px 14px 7px 10px;
  border-radius: 100px;
  border: 1px solid rgba(255, 210, 63, .32);
  background: linear-gradient(90deg, rgba(215, 38, 61, .28), rgba(31, 138, 76, .22));
  color: #ffe9b0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
html.tp-xmas .xmas-greeting svg { width: 16px; height: 16px; flex: none; }

/* ---------- Festive accents ---------- */
html.tp-xmas h1 span { text-shadow: 0 0 28px rgba(255, 190, 80, .35); }
html.tp-xmas .button { background: var(--xmas-red); color: #fff; box-shadow: 0 8px 26px -10px rgba(215, 38, 61, .8); }
html.tp-xmas .button:hover { background: var(--xmas-red-hover); }

/* Santa hat on the T of the wordmark, in the header and the footer. */
html.tp-xmas .brand { position: relative; display: inline-block; }
html.tp-xmas .brand::before {
  content: '';
  position: absolute;
  left: -.2em;
  top: -.4em;
  width: .95em;
  height: .8em;
  transform: rotate(-20deg);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 54'%3E%3Cpath d='M8 40 C14 18 30 4 50 8 C46 16 50 26 56 34 Z' fill='%23d7263d'/%3E%3Cpath d='M50 8 C40 9 30 16 24 30' fill='none' stroke='%23a3162a' stroke-width='3' stroke-linecap='round' opacity='.55'/%3E%3Crect x='2' y='36' width='58' height='13' rx='6.5' fill='%23f4f1ea'/%3E%3Ccircle cx='56' cy='34' r='7' fill='%23f4f1ea'/%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
}

/* ---------- String lights under the header ---------- */
html.tp-xmas .xmas-lights {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 8px);
  height: 30px;
  overflow: hidden;
  /* One 44px sag of wire per bulb; xmas.js hangs a bulb at each low point. */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='12'%3E%3Cpath d='M0 1 Q22 11 44 1' fill='none' stroke='%23263a2d' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x 0 0 / 44px 12px;
}
html.tp-xmas .xmas-bulb {
  position: absolute;
  top: 7px;
  width: 8px;
  height: 13px;
  margin-left: -4px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  background: var(--c);
  box-shadow: 0 0 10px 1px var(--c), inset 0 -2px 3px rgba(0, 0, 0, .22), inset 1px 1px 2px rgba(255, 255, 255, .6);
  animation: xmas-twinkle 2.6s ease-in-out var(--d, 0s) infinite;
}
html.tp-xmas .xmas-bulb::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 1.5px;
  width: 5px;
  height: 4px;
  border-radius: 1px;
  background: #3b4656;
}
@keyframes xmas-twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: .38; }
}

/* ---------- Falling snow, between the 3D world and the copy ---------- */
html.tp-xmas .xmas-snow {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

/* The scene's own pause button, reduced motion and a failed 3D scene all
   stop the motion; the decorations stay. */
html.tp-xmas.xmas-still .xmas-bulb { animation: none; }
html.tp-xmas.xmas-still .xmas-snow { display: none; }
@media (prefers-reduced-motion: reduce) {
  html.tp-xmas .xmas-bulb { animation: none; }
  html.tp-xmas .xmas-snow { display: none; }
}
@media (max-width: 760px) {
  html.tp-xmas .xmas-greeting { font-size: 11px; margin-bottom: 18px; padding: 6px 12px 6px 9px; }
}
