/* ===================================================================
   USO Holiday Card Drive (uso-holiday-cards.html, Scott 16 Nov 2026)

   A winter-holiday page: an evergreen hero with falling snow, holly and
   snowflakes drawn as inline SVG (crisp at any size, nothing to download),
   then the five sample messages laid out as holiday cards. The red and green
   live only here and in the homepage pill (.btn-holiday in components.css);
   the rest of the site stays indigo and gold.
   =================================================================== */

:root {
  --uso-red:         #b3122e;
  --uso-red-dark:    #7d0c1f;
  --uso-green:       #1d5a45;
  --uso-green-dark:  #0f3a2c;
  --uso-green-deep:  #0a281f;
  --uso-paper:       #fffdf8;
  /* Night sky for the header and banner (Scott, 16 Nov 2026: "night time /
     blueish"), matched to his Thank You for Your Service picture. */
  --uso-night-top:   #071029;
  --uso-night:       #0d1f4a;
  --uso-night-low:   #1b3a78;
}

/* The <symbol> sheet: takes no space, but must not be display:none, or
   some browsers draw nothing for the <use> copies. */
.uso-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ── Holly and snowflake artwork ─────────────────────────────── */

.uso-holly__leaf   { fill: #2f7d4f; }
.uso-holly__leaf--b { fill: #24683f; }
.uso-holly__vein   { fill: none; stroke: #174d2e; stroke-width: 1.2; stroke-linecap: round; }
.uso-holly__berry  { fill: #d4213d; stroke: #8c0f22; stroke-width: 1; }
.uso-holly__shine  { fill: rgba(255, 255, 255, 0.75); }

/* ── Hero ────────────────────────────────────────────────────── */

.uso-hero {
  position: relative;
  overflow: hidden;
  /* The extra room at the bottom is for the trees: enough that the tallest
     (with its star, about 130px) stands clear below the tilted cards. */
  padding: calc(var(--header-total) + var(--space-16)) 0 calc(var(--space-16) + 100px);
  text-align: center;
  color: var(--color-white);
  background-color: var(--uso-night);
  /* Stars and snow over a night sky that lightens toward the horizon, where
     a soft glow sits behind the trees. */
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.60) 0 1.5px, transparent 2.3px),
    radial-gradient(circle, rgba(255, 255, 255, 0.32) 0 1px, transparent 1.8px),
    radial-gradient(ellipse 70% 45% at 50% 100%, rgba(120, 160, 230, 0.35) 0%, rgba(120, 160, 230, 0) 100%),
    linear-gradient(180deg, var(--uso-night-top) 0%, var(--uso-night) 55%, var(--uso-night-low) 100%);
  background-size: 96px 96px, 54px 54px, 100% 100%, 100% 100%;
  background-position: 0 0, 27px 31px, 0 0, 0 0;
  /* A ribbon along the bottom edge: a gold line (::after) over red. */
  border-bottom: 10px solid var(--uso-red);
}

.uso-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--color-gold-light);
}

/* The heading between Scott's two pictures (16 Nov 2026): a portrait card on
   the left and a landscape scene on the right, so the right column is wider.
   Each picture leans in toward the heading. The hero uses the wide container
   (1400px) so the heading has room between them (Scott: "so the title isn't
   scrunched"). */
/* ── Christmas trees along the bottom of the banner ──
   A few trees (Scott: "sparsely and randomly placed"), each its own small
   SVG: left from --x, height from --h. The ground is the one stretched
   piece, and it is only a snow drift. --k scales the trees down on phones. */
.uso-trees {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  pointer-events: none;
}

.uso-trees__ground {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 30px;
}

.uso-trees__snow  { fill: #dfe8f6; }
.uso-trees__shade { fill: #c6d5ec; }

.uso-tree {
  position: absolute;
  left: var(--x);
  /* The trunk ends 6/64 of the way up from the drawing's foot; sink it a
     little into the snow. */
  bottom: calc(16px - var(--h) * var(--k, 1) * 0.094);
  height: calc(var(--h) * var(--k, 1));
  aspect-ratio: 40 / 64;
  overflow: visible;
  transform: translateX(-50%);
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.3));
}

/* The star version is drawn 73 units tall instead of 64, so the tree
   itself keeps the same size and the star sits above it. */
.uso-tree--star {
  height: calc(var(--h) * var(--k, 1) * 73 / 64);
  aspect-ratio: 40 / 73;
}

.uso-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 210px) minmax(0, 1fr) minmax(0, 306px);
  align-items: center;
  gap: var(--space-8);
}

/* Centred in its column: with only max-width it would sit at the column's
   left edge, crowding the left card and leaving a gap on the right. */
.uso-hero__text { max-width: 680px; justify-self: center; }

.uso-hero__card {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.45));
}

.uso-hero__card--left  { justify-self: end;   transform: rotate(-6deg); }
.uso-hero__card--right { justify-self: start; transform: rotate(4deg); }

/* The landscape scene has a solid edge, not a cut-out shape: round its
   corners a little, like a printed card. 306px = 15% under the first
   size (Scott, 16 Nov 2026). */
.uso-hero__card--wide {
  max-width: 306px;
  border-radius: var(--radius-sm);
}

.uso-hero__holly {
  display: block;
  width: 120px;
  height: 66px;
  margin: 0 auto var(--space-4);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

.uso-hero__eyebrow { color: var(--color-gold-light); }

/* Between the two pictures the heading and line under it wrap; these keep
   "Card Drive" and "deployed overseas." together so neither ends on one
   lonely word. */
.uso-nowrap { white-space: nowrap; }

.uso-hero__title {
  color: var(--color-white);
  margin-bottom: var(--space-4);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.uso-hero__lead {
  max-width: 640px;
  margin: 0 auto;
  font-size: var(--text-2xl);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

/* Big, faint snowflakes in the corners. */
.uso-hero__flake {
  position: absolute;
  color: rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.uso-hero__flake--1 { width: 180px; height: 180px; top: 18%;  left: 4%;  transform: rotate(12deg); }
.uso-hero__flake--2 { width: 90px;  height: 90px;  top: 62%;  left: 16%; transform: rotate(-20deg); }
.uso-hero__flake--3 { width: 150px; height: 150px; top: 24%;  right: 6%; transform: rotate(-8deg); }
.uso-hero__flake--4 { width: 70px;  height: 70px;  top: 70%;  right: 20%; transform: rotate(25deg); }

/* The two small flakes fell between the pictures and the title once the
   pictures went in, so they are off; the big corner ones stay. */
.uso-hero__flake--2,
.uso-hero__flake--4 { display: none; }

/* ── The sample messages, as holiday cards ───────────────────── */

/* Three to a row. The second row starts at the left: Options 4 and 5, then
   the signing instructions in the third place (Scott, 16 Nov 2026). */
.uso-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: var(--space-8) var(--space-6);
}

.uso-card {
  position: relative;
  flex: 0 1 calc((100% - 2 * var(--space-6)) / 3);
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: var(--space-12) var(--space-6) var(--space-6);
  background: var(--uso-paper);
  border-top: 12px solid var(--uso-red);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.uso-card:nth-child(even) { border-top-color: var(--uso-green); }

/* A thin gold frame inside the edge, like a printed card. */
.uso-card::before {
  content: '';
  position: absolute;
  inset: var(--space-2);
  border: 1px solid rgba(201, 149, 42, 0.45);
  border-radius: var(--radius-sm);
  pointer-events: none;
}

/* The sprig sits on the coloured band at the top. */
.uso-card__holly {
  position: absolute;
  top: -30px;
  left: 50%;
  width: 72px;
  height: 40px;
  margin-left: -36px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.uso-card__label {
  margin: 0 0 var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
}

.uso-card__message {
  margin: 0 0 var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  line-height: 1.55;
  color: var(--color-indigo);
}

/* Option 4 is a five-line prayer, and each line should stay one line, as
   written. At a third of the row there isn't room at the other cards' size,
   so its type follows the card's width: 5.1cqi is the card's inner width
   divided by about 19.5, which fits the longest line ("Wherever you are, God
   is, and all is well!"), capped at --text-lg. Browsers without container
   units keep the plain --text-lg. */
.uso-card--prayer {
  container-type: inline-size;
  padding-inline: var(--space-4);
}

.uso-card--prayer .uso-card__message {
  font-size: var(--text-lg);
  font-size: min(var(--text-lg), 5.1cqi);
}

/* A short message sits midway between its label and the dotted rule (the two
   auto margins share the spare height) rather than at the top of a card
   stretched to its tall neighbour. */
.uso-card__label + .uso-card__message { margin-top: auto; }

/* The dotted rule at the foot of every card, level across a row however long
   the message. It once sat over a "Your first name, Unity of Raleigh" line;
   Scott took that line out and kept the rule (16 Nov 2026). */
.uso-card__rule {
  width: 100%;
  height: 0;
  margin: auto 0 var(--space-2);
  border: 0;
  border-top: 1px dashed rgba(201, 149, 42, 0.6);
}

/* ── Signing your card + the glitter note ────────────────────── */

/* Not a card: plain text in the third place of the second row, centred in
   the height the two cards beside it give it. */
.uso-signing {
  flex: 0 1 calc((100% - 2 * var(--space-6)) / 3);
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-6) var(--space-4);
  text-align: center;
}

.uso-signing__title {
  margin: 0;
  font-size: var(--text-3xl);
  color: var(--color-indigo);
}

.uso-signing .divider { margin: var(--space-4) auto; }

.uso-signing__text {
  margin: 0 0 var(--space-3);
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--color-text-muted);
}

.uso-signing__name {
  display: inline-block;
  margin: 0;
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-style: italic;
  font-weight: 600;
  color: var(--uso-red-dark);
  border-bottom: 2px solid var(--color-gold);
}

/* A small tilted sticker under the signing instructions (Scott, 16 Nov
   2026): smaller type, broken after "glitter" in the markup, text centred. */
.uso-note {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-8);
  padding: var(--space-2) var(--space-4) var(--space-2) var(--space-3);
  background: var(--color-white);
  border: 2px solid var(--uso-red);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transform: rotate(8deg);
}

.uso-note__icon { flex-shrink: 0; width: 24px; height: 24px; }
.uso-note__sparkle { fill: var(--color-gold); }
.uso-note__ring { fill: none; stroke: var(--uso-red); stroke-width: 3.5; stroke-linecap: round; }

.uso-note__text {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.25;
  color: var(--uso-red-dark);
}

/* ── Card gallery (switched on once Scott's photos arrive) ──── */

.uso-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-6);
}

.uso-gallery__item {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--uso-paper);
}

.uso-gallery__item img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Questions ───────────────────────────────────────────────── */

.uso-questions p { margin: 0; color: var(--color-text-muted); }

/* ── Holiday header + falling snow: THIS PAGE ONLY ──────────────
   Scott, 16 Nov 2026: "only that page ... not the rest of the site". Every
   rule here is under .uso-page, a class only uso-holiday-cards.html puts on
   its <body>, and this stylesheet loads on no other page. The shared header
   markup is untouched apart from the light strand this page adds to it.

   The header turns to a night sky (Scott: "night time / blueish") with
   drifting snow and a few big faint snowflakes, and a strand of holiday
   lights hangs along its bottom edge.
   Snow falls from the top of the page through the header and the banner. */

.uso-page .site-header,
.uso-page .site-header.scrolled {
  background-color: var(--uso-night-top);
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.45) 0 1.2px, transparent 1.9px),
    radial-gradient(circle, rgba(255, 255, 255, 0.25) 0 0.9px, transparent 1.5px),
    linear-gradient(180deg, #050c20 0%, var(--uso-night-top) 100%);
  background-size: 84px 84px, 47px 47px, 100% 100%;
  background-position: 12px 9px, 35px 30px, 0 0;
  box-shadow: 0 2px 20px rgba(2, 8, 24, 0.6);
}

/* Big faint snowflakes across the bar. z-index -1 inside the header's
   stacking context: over its green, under the logo and the links. */
.uso-page .site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.13;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-12 -12 24 24'%3E%3Cg fill='none' stroke='white' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M0 -10.5V10.5M-3 -7.5L0 -4.5L3 -7.5M-3 7.5L0 4.5L3 7.5'/%3E%3Cpath transform='rotate(60)' d='M0 -10.5V10.5M-3 -7.5L0 -4.5L3 -7.5M-3 7.5L0 4.5L3 7.5'/%3E%3Cpath transform='rotate(120)' d='M0 -10.5V10.5M-3 -7.5L0 -4.5L3 -7.5M-3 7.5L0 4.5L3 7.5'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-12 -12 24 24'%3E%3Cg fill='none' stroke='white' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M0 -10.5V10.5M-3 -7.5L0 -4.5L3 -7.5M-3 7.5L0 4.5L3 7.5'/%3E%3Cpath transform='rotate(60)' d='M0 -10.5V10.5M-3 -7.5L0 -4.5L3 -7.5M-3 7.5L0 4.5L3 7.5'/%3E%3Cpath transform='rotate(120)' d='M0 -10.5V10.5M-3 -7.5L0 -4.5L3 -7.5M-3 7.5L0 4.5L3 7.5'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-12 -12 24 24'%3E%3Cg fill='none' stroke='white' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M0 -10.5V10.5M-3 -7.5L0 -4.5L3 -7.5M-3 7.5L0 4.5L3 7.5'/%3E%3Cpath transform='rotate(60)' d='M0 -10.5V10.5M-3 -7.5L0 -4.5L3 -7.5M-3 7.5L0 4.5L3 7.5'/%3E%3Cpath transform='rotate(120)' d='M0 -10.5V10.5M-3 -7.5L0 -4.5L3 -7.5M-3 7.5L0 4.5L3 7.5'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-12 -12 24 24'%3E%3Cg fill='none' stroke='white' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M0 -10.5V10.5M-3 -7.5L0 -4.5L3 -7.5M-3 7.5L0 4.5L3 7.5'/%3E%3Cpath transform='rotate(60)' d='M0 -10.5V10.5M-3 -7.5L0 -4.5L3 -7.5M-3 7.5L0 4.5L3 7.5'/%3E%3Cpath transform='rotate(120)' d='M0 -10.5V10.5M-3 -7.5L0 -4.5L3 -7.5M-3 7.5L0 4.5L3 7.5'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-12 -12 24 24'%3E%3Cg fill='none' stroke='white' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M0 -10.5V10.5M-3 -7.5L0 -4.5L3 -7.5M-3 7.5L0 4.5L3 7.5'/%3E%3Cpath transform='rotate(60)' d='M0 -10.5V10.5M-3 -7.5L0 -4.5L3 -7.5M-3 7.5L0 4.5L3 7.5'/%3E%3Cpath transform='rotate(120)' d='M0 -10.5V10.5M-3 -7.5L0 -4.5L3 -7.5M-3 7.5L0 4.5L3 7.5'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 58px 58px, 30px 30px, 44px 44px, 26px 26px, 52px 52px;
  background-position: 24% 70%, 41% 12%, 57% 85%, 73% 18%, 97% 60%;
}

/* On green, the slate utility links read better as soft white. */
.uso-page .utility-bar__link,
.uso-page .utility-bar__socials a { color: rgba(255, 255, 255, 0.72); }

.uso-page .utility-bar__link:hover,
.uso-page .utility-bar__socials a:hover { color: var(--color-gold-light); }

/* The phone menu drops down in the same green. The phone header is only
   64px tall, so the light strand hangs a little lower to clear the logo. */
@media (max-width: 1024px) {
  .uso-page .nav-links { background-color: var(--uso-night-top); }
  .uso-lights { bottom: -19px; }
}

/* ── The light strand ── A wire that dips between bulbs every 40px, with
   bulbs in a repeating red, green, gold, white order. Strand A holds the red
   and gold bulbs and strand B the green and white; they glow in turn, so the
   string twinkles. It hangs a little below the header's edge, over the top
   of the banner. */
.uso-lights {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -14px;
  height: 24px;
  /* Behind the logo and links (inside the header's stacking context), still
     over the banner below the header. */
  z-index: -1;
  pointer-events: none;
  /* the wire: one shallow arc per 40px */
  background: radial-gradient(circle at 20px -21px, transparent 28px, #1d3a2c 28.5px, #1d3a2c 30px, transparent 30.5px)
              0 0 / 40px 24px repeat-x;
}

.uso-lights span {
  position: absolute;
  inset: 0;
  background-repeat: repeat-x;
  background-size: 160px 24px;
  animation: uso-twinkle 2.4s ease-in-out infinite;
}

.uso-lights__a {
  background-image:
    radial-gradient(4.5px 6.5px at 20px 14px,  #ff5a6a 0, #d81e36 70%, transparent 100%),
    radial-gradient(4.5px 6.5px at 100px 14px, #ffe39a 0, #e8b04a 70%, transparent 100%);
  filter: drop-shadow(0 0 4px rgba(255, 196, 120, 0.85));
}

.uso-lights__b {
  background-image:
    radial-gradient(4.5px 6.5px at 60px 14px,  #8df0b0 0, #2fa860 70%, transparent 100%),
    radial-gradient(4.5px 6.5px at 140px 14px, #ffffff 0, #cfe8ff 70%, transparent 100%);
  filter: drop-shadow(0 0 4px rgba(190, 240, 255, 0.85));
  animation-delay: -1.2s;
}

@keyframes uso-twinkle {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}

/* ── Falling snow ── The layer fills the banner, which starts at the very top
   of the page (under the fixed header), and sits above the header (z-index
   1001 against its 1000), so flakes drift down over both. The banner's
   overflow:hidden stops them at its ribbon; the mask fades them out just
   before. container-type gives the flakes 100cqh = the layer's height, so
   each falls exactly the full depth however tall the banner is. */
.uso-snow {
  position: absolute;
  inset: 0;
  z-index: 1001;
  pointer-events: none;
  container-type: size;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 82%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 82%, transparent 100%);
}

.uso-snow i,
.uso-snow__flake {
  position: absolute;
  top: -20px;
  left: var(--x);
  width: var(--s);
  height: var(--s);
  opacity: var(--o);
  /* fall straight down (translate) while swaying side to side (transform) */
  animation:
    uso-fall var(--d) linear var(--delay) infinite,
    uso-sway var(--sw) ease-in-out var(--delay) infinite alternate;
  will-change: transform, translate;
}

.uso-snow i {
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 55%, rgba(255, 255, 255, 0) 100%);
}

.uso-snow__flake { color: #fff; }

@keyframes uso-fall {
  from { translate: 0 0; }
  to   { translate: 0 calc(100cqh + 40px); }
}

@keyframes uso-sway {
  from { transform: translateX(0); }
  to   { transform: translateX(var(--sway)); }
}

/* Anyone whose device asks for less motion gets the still header and banner,
   with no falling snow and no twinkle. */
@media (prefers-reduced-motion: reduce) {
  .uso-snow { display: none; }
  .uso-lights span { animation: none; }
}

/* ── Narrower screens ────────────────────────────────────────── */

@media (max-width: 960px) {
  .uso-card,
  .uso-signing { flex-basis: calc((100% - var(--space-6)) / 2); }
}

/* Phones and small tablets: the heading first, then the two cards side by
   side beneath it. */
@media (max-width: 860px) {
  .uso-hero__inner {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "text text" "left right";
    row-gap: var(--space-8);
  }
  .uso-hero__text { grid-area: text; max-width: none; }
  .uso-hero__card { max-width: 170px; justify-self: center; }
  .uso-hero__card--wide { max-width: 100%; }
  .uso-hero__card--left  { grid-area: left; }
  .uso-hero__card--right { grid-area: right; }
}

@media (max-width: 640px) {
  .uso-hero { padding-top: calc(var(--header-total) + var(--space-10)); }
  .uso-trees { --k: 0.7; }
  .uso-hero__lead { font-size: var(--text-xl); }
  .uso-hero__flake--1 { width: 110px; height: 110px; left: -20px; }
  .uso-hero__flake--3 { width: 90px; height: 90px; right: -10px; }
  .uso-hero__flake--2,
  .uso-hero__flake--4 { display: none; }
  .uso-card,
  .uso-signing { flex-basis: 100%; }
}
