/*
 * The home page's top while a Christmas appeal is open (19 Nov 2026). page-home.php shows it in place
 * of the photo top; it is not loaded at any other time. The lettering is Stay Home Script
 * (assets/fonts/README.md), the garland and lights are AI-made pictures of objects.
 */
@font-face {
  font-family: 'Stay Home Script'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/stayhomescript-latin.woff2) format('woff2');
}
.ch-v3 .hx-top {
  position: relative; overflow: hidden; color: #fff;
  padding: 150px 0 56px; min-height: 600px; display: flex; align-items: center;
  background: linear-gradient(90deg, rgba(10,47,32,.80) 0%, rgba(10,47,32,.48) 60%, rgba(10,47,32,.32) 100%),
              #0a2f20 url(img/home/xmas-lights.webp) center / cover no-repeat;
}
.ch-v3 .hx-garland {
  position: absolute; left: 0; right: 0; top: 0; height: 110px; pointer-events: none;
  background: url(img/home/xmas-garland.webp) repeat-x center top / auto 110px;
  filter: brightness(1.15) drop-shadow(0 5px 6px rgba(0,0,0,.5));
}
.ch-v3 .hx-snow { position: absolute; inset: 0; pointer-events: none; }
.ch-v3 .hx-snow i {
  position: absolute; top: -14px; border-radius: 999px; background: #fff;
  animation: hx-fall linear infinite;
}
@keyframes hx-fall { to { transform: translateY(900px); } }
.ch-v3 .hx-top .v3-container { position: relative; width: 100%; }
.ch-v3 .hx-row { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.ch-v3 .hx-words { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.ch-v3 .hx-h1 {
  margin: 0; font-family: 'Stay Home Script', 'Caveat', cursive; font-weight: 400;
  font-size: 104px; line-height: 1; color: #ffcc01; letter-spacing: 0;
}
.ch-v3 .hx-year {
  font-family: var(--v3-font-display, Jost, sans-serif); font-weight: 600; font-size: 30px;
  letter-spacing: .1em; color: #fff; white-space: nowrap;
}
.ch-v3 .hx-line {
  margin: 0; max-width: 600px; font-family: var(--v3-font-display, Jost, sans-serif);
  font-weight: 600; font-size: 28px; line-height: 1.2; color: #fff;
}
.ch-v3 .hx-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.ch-v3 .hx-give {
  display: inline-flex; align-items: center; min-height: 54px; padding: 0 26px; border-radius: 8px;
  background: #ffcc01; color: #14201b; text-decoration: none;
  font-family: var(--v3-font-display, Jost, sans-serif); font-weight: 700; font-size: 18px;
}
.ch-v3 .hx-give:hover, .ch-v3 .hx-give:focus-visible { background: #ffd83d; color: #14201b; }
.ch-v3 .hx-tray {
  flex: 0 1 310px; min-width: 0; width: 310px; max-width: 100%; height: auto; aspect-ratio: 1 / 1;
  object-fit: contain; background: #fff; border-radius: 999px; padding: 18px; box-sizing: border-box;
  border: 6px solid #ffcc01;
}
.ch-v3 .hx-strap { background: #14201b; color: #fff; padding: 22px 0; }
.ch-v3 .hx-strap .v3-container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.ch-v3 .hx-strap b { font-family: var(--v3-font-display, Jost, sans-serif); font-weight: 700; font-size: 24px; }
.ch-v3 .hx-strap span { color: #b6c5bd; }
@media (max-width: 760px) {
  .ch-v3 .hx-top { padding: 104px 0 40px; min-height: 0; }
  .ch-v3 .hx-garland { height: 78px; background-size: auto 78px; }
  .ch-v3 .hx-h1 { font-size: 64px; }
  .ch-v3 .hx-year { font-size: 22px; }
  .ch-v3 .hx-line { font-size: 22px; }
  .ch-v3 .hx-row { gap: 24px; }
  .ch-v3 .hx-tray { flex-basis: 180px; width: 180px; padding: 10px; border-width: 4px; margin: 0 auto; }
  .ch-v3 .hx-snow i:nth-child(n+19) { display: none; }
  .ch-v3 .hx-strap b { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .ch-v3 .hx-snow { display: none; } }
/* The second button is the quiet one here: an outline, so the gold one leads. */
.ch-v3 .hx-btns .v3-btn-on-ink { background: transparent; color: #fff; border: 2px solid #fff; }
.ch-v3 .hx-btns .v3-btn-on-ink:hover, .ch-v3 .hx-btns .v3-btn-on-ink:focus-visible { background: rgba(255,255,255,.16); color: #fff; }
