/* Christmas hero (/christmas/): templates/partials/christmas-hero.html. Colours are the Advent calendar's
   (assets/advent/advent.css: pine #143628, night #0c2219, gold #ecd08a) so the two pages read as one season.
   The tree, its star and the snow canvas also serve the Carol Sing-Along hero (.sa-hero, Guy 2026-11-18); :is() keeps
   the /christmas/ specificity unchanged. */
.xh{position:relative;overflow:hidden;color:#f6ecd6;isolation:isolate;
  background:radial-gradient(120% 90% at 70% 0%,#1d4a37 0%,#143628 40%,#0c2219 80%)}
.xh ~ article.page{padding-top:var(--sp-7)}
.xh .in{position:relative;z-index:4;max-width:1120px;margin:0 auto;display:grid;grid-template-columns:1.2fr 1fr;
  align-items:center;gap:1rem;padding:2.4rem 1.25rem 0}
.xh h1{font-family:var(--font-serif);font-weight:400;line-height:1.06;margin:0;color:#fff;text-wrap:balance;
  font-size:clamp(2.1rem,4.8vw,3.6rem);text-align:left}
.xh .xh-nb{white-space:nowrap}
.xh .xh-rule{width:9rem;height:1px;margin:1.1rem 0 0;background:linear-gradient(to right,#d9b877,transparent)}
:is(.xh,.sa-hero) .xt{position:relative;align-self:end}
:is(.xh,.sa-hero) .xt-tree{display:block;width:100%;max-width:400px;margin:0 auto 18px;position:relative;z-index:2}
:is(.xh,.sa-hero) .xh-star{position:absolute;left:50%;top:-1.6rem;width:5.2rem;height:5.2rem;transform:translateX(-50%);z-index:3;
  color:#f3dfae;filter:drop-shadow(0 0 14px #f3dfae99)}
:is(.xh,.sa-hero) .xh-star svg{width:100%;height:100%;display:block}
.xh .ground{position:absolute;left:0;right:0;bottom:0;height:58px;z-index:3;
  background:linear-gradient(#e9eef6,#c9d3e3);border-radius:50% 50% 0 0/100% 100% 0 0}
:is(.xh,.sa-hero) canvas.xh-snow{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none;z-index:5}
:is(.xh,.sa-hero) .xt-l{opacity:.9}
@media (prefers-reduced-motion:no-preference){
  :is(.xh,.sa-hero) .xt-l{animation:xtl 2.8s ease-in-out infinite}
  :is(.xh,.sa-hero) .xh-star{animation:xhs 4.5s ease-in-out infinite alternate}
  @keyframes xtl{0%,100%{opacity:.25}50%{opacity:1}}
  @keyframes xhs{from{filter:drop-shadow(0 0 8px #f3dfae66)}to{filter:drop-shadow(0 0 24px #f3dfaecc)}}
}
@media (max-width:700px){
  .xh .in{grid-template-columns:1fr;text-align:center}
  .xh h1{text-align:center}
  .xh .xh-rule{margin:1.1rem auto 0;background:linear-gradient(to right,transparent,#d9b877,transparent)}
  .xh .xt-tree{max-width:260px}
}
