/* VOICE   occasion: warm, nostalgic Christmas, but modern and uncluttered
   IDEA    a family Christmas album: vintage bulbs strung over a pine-green night, snapshots with handwritten captions
   PICTURE the C9 light strand across the top, plus a stack of snapshots (her real photos)
   COLOUR  pine night #0f3b2e, warm cream paper #f7efe2, cranberry #c2302f, bulb gold #f2c14e
   TYPE    Instrument Serif for titles, Caveat for handwritten captions, the system font for everything else
   LAYOUT  copy left and snapshots right on a laptop; on a phone: title, snapshots, then details */

:root {
  --pine: #0f3b2e;
  --pine-deep: #0a2c22;
  --pine-ink: #123326;
  --cream: #f7efe2;
  --cream-2: #efe3cf;
  --cranberry: #c2302f;
  --cranberry-2: #a8261f;
  --bulb-gold: #f2c14e;
  --cocoa: #2a1d17;
  --cocoa-2: #5b4a3f;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --hand: "Caveat", "Bradley Hand", cursive;
}

/* Pine-green night band */
.xmas { position: relative; overflow: hidden; color: var(--cream); background: radial-gradient(120% 80% at 50% -10%, #1b5a45 0%, var(--pine) 50%, var(--pine-deep) 100%); padding: clamp(130px, 13vw, 170px) var(--gutter) clamp(72px, 9vw, 112px); }
.lights { position: absolute; top: -4px; left: 50%; transform: translateX(-50%); width: max(100%, 980px); height: auto; pointer-events: none; }
.xmas-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.xmas-kicker { font-size: clamp(17px, 1.5vw, 19px); font-weight: 600; line-height: 1.3; color: rgba(247,239,226,.78); letter-spacing: -.01em; margin-bottom: 14px; }
.xmas-title { font: 400 clamp(54px, 7.4vw, 104px)/.94 var(--serif); letter-spacing: -.012em; color: var(--cream); }
.xmas-when { margin-top: 26px; font-size: 19px; line-height: 1.5; color: rgba(247,239,226,.85); }
.xmas-when strong { color: #fff; font-weight: 600; }
.xmas-body { margin-top: 14px; font-size: 19px; color: rgba(247,239,226,.72); max-width: 30em; }
.day { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.day li { border-top: 1px solid rgba(247,239,226,.2); padding-top: 16px; }
.day svg { width: 18px; height: 28px; display: block; margin-bottom: 10px; }
.day b { display: block; font: 400 25px/1.08 var(--serif); color: #fff; letter-spacing: -.005em; }
.day span { display: block; margin-top: 6px; font-size: 15px; line-height: 1.4; color: rgba(247,239,226,.72); }
.xmas-note { margin-top: 22px; font-size: 15px; color: rgba(247,239,226,.72); }
.xmas-note strong { color: #fff; font-weight: 600; }
.xmas-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 30px; }
.pill-cream { background: var(--cream); color: var(--pine); font-weight: 600; }
.pill-cream:hover { background: #fff; }
.more.on-pine { color: var(--cream); }

/* Snapshots */
.polaroids { position: relative; display: block; height: clamp(420px, 40vw, 540px); }
.polaroids:hover { text-decoration: none; }
.polaroid { position: absolute; width: 56%; margin: 0; background: #fffaf1; padding: 3.2% 3.2% 0; border-radius: 3px; box-shadow: 0 2px 3px rgba(0,0,0,.25), 0 24px 44px -20px rgba(0,0,0,.7); transition: transform .35s ease; }
.snap { position: relative; aspect-ratio: 1; overflow: hidden; background: repeating-linear-gradient(135deg, var(--cranberry) 0 18px, #f3e6d2 18px 36px); }
.snap::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.snap img, .snap video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.polaroid figcaption { font: 600 clamp(20px, 2vw, 27px)/1 var(--hand); color: var(--cocoa); text-align: center; padding: 12px 4px 16px; letter-spacing: 0; }
.tilt-l { left: 0; top: 6%; transform: rotate(-6deg); }
.polaroids .tilt-l .snap { background: url("assets/art/presents.svg") center / cover, #f6ecdc; }
.polaroids .tilt-r .snap { background: url("assets/art/snowman.svg") center / cover, #173b56; }
.polaroids .tilt-c .snap { background: url("assets/art/santa.svg") center / cover, #1d5a43; }
.tilt-r { right: 0; top: 0; transform: rotate(5deg); }
.tilt-r .snap { background: repeating-linear-gradient(90deg, #2f7a55 0 14px, #f3e6d2 14px 28px); }
.tilt-c { left: 23%; bottom: 0; transform: rotate(-1.5deg); z-index: 2; }
.tilt-c .snap { background: radial-gradient(circle, var(--bulb-gold) 4px, transparent 4.5px) 0 0 / 26px 26px, var(--cranberry); }
.polaroids:hover .tilt-l { transform: rotate(-8deg) translate(-6px, -4px); }
.polaroids:hover .tilt-r { transform: rotate(7deg) translate(6px, -4px); }

/* Gift tag ("Free") */
.gift-tag { position: absolute; z-index: 3; left: -2%; top: -3%; background: var(--cream); color: var(--cranberry); font: 400 28px/1 var(--serif); padding: 14px 22px 14px 40px; transform: rotate(-8deg); clip-path: polygon(16px 0, 100% 0, 100% 100%, 16px 100%, 0 50%); box-shadow: 0 10px 24px -10px rgba(0,0,0,.6); }
.gift-tag::before { content: ""; position: absolute; left: 18px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--pine); }

/* ---------- Toy Giveaway page ---------- */
.gnav nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.toy-hero .xmas-title { font-size: clamp(60px, 8.4vw, 120px); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(247,239,226,.2); max-width: 560px; }
.facts span { display: block; font-size: 15px; font-weight: 600; color: rgba(247,239,226,.6); margin-bottom: 6px; }
.facts b { display: block; font-size: 19px; color: #fff; font-weight: 600; }
.facts p { color: rgba(247,239,226,.78); font-size: 17px; }

/* Cream "paper" sections */
.paper { background: var(--cream); color: var(--cocoa); padding: clamp(72px, 9vw, 120px) var(--gutter); }
.paper-2 { background: var(--cream-2); }
.serif-h { font: 400 clamp(44px, 5.6vw, 72px)/1 var(--serif); letter-spacing: -.01em; color: var(--pine); }
.lead { font-size: 20px; color: var(--cocoa-2); margin-top: 14px; max-width: 34em; }

.moments { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.moments li { border-top: 1px solid rgba(42,29,23,.18); padding-top: 22px; }
.moments svg { width: 26px; height: 40px; display: block; margin-bottom: 14px; }
.moments h3 { font: 400 32px/1.05 var(--serif); color: var(--pine); letter-spacing: -.005em; margin-bottom: 8px; }
.moments p { color: var(--cocoa-2); }

.know { margin-top: 56px; background: #fffaf1; border-radius: 22px; padding: clamp(24px, 3.5vw, 40px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 48px; }
.know h3 { font: 400 34px/1 var(--serif); color: var(--cranberry); }
.know ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; }
.know li { padding-left: 22px; position: relative; color: var(--cocoa); }
.know li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--cranberry); }

/* Video */
.film { text-align: center; padding-top: clamp(120px, 12vw, 160px); }
.film .serif-h { color: var(--cream); }
.film .lead { color: rgba(247,239,226,.75); margin-inline: auto; }
.film-frame { position: relative; max-width: 1080px; margin: 40px auto 0; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); border: 10px solid #fffaf1; }
.film-frame video { width: 100%; height: 100%; display: block; object-fit: cover; }

/* Gallery */
.gallery { margin-top: 48px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 26px; }
.gallery .polaroid { position: relative; width: auto; }
.gallery .polaroid:nth-child(4n+1) { transform: rotate(-2deg); }
.gallery .polaroid:nth-child(4n+2) { transform: rotate(1.5deg); }
.gallery .polaroid:nth-child(4n+3) { transform: rotate(-1deg); }
.gallery .polaroid:nth-child(4n) { transform: rotate(2.2deg); }
.gallery .polaroid:hover { transform: rotate(0) scale(1.03); z-index: 2; }
.gallery .polaroid:nth-child(3n+2) .snap { background: repeating-linear-gradient(90deg, #2f7a55 0 14px, #f3e6d2 14px 28px); }
.gallery .polaroid:nth-child(3n) .snap { background: radial-gradient(circle, var(--bulb-gold) 4px, transparent 4.5px) 0 0 / 26px 26px, var(--cranberry); }
.gallery-cta { margin: 56px auto 0; max-width: 560px; text-align: center; }
.gallery-cta p { font-size: 19px; line-height: 1.45; margin: 0 0 10px; }

/* Ways to help */
.give { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 44px; }
.give > div { display: flex; flex-direction: column; align-items: flex-start; border-top: 1px solid rgba(42,29,23,.18); padding-top: 22px; }
.give h3 { font: 400 30px/1.05 var(--serif); color: var(--pine); margin-bottom: 8px; }
.give p { color: var(--cocoa-2); flex: 1; margin-bottom: 18px; }
.give a { color: var(--cranberry); font-weight: 600; }
.pill-cranberry { background: var(--cranberry); color: #fff; }
.pill-cranberry:hover { background: var(--cranberry-2); text-decoration: none; }
.give a.pill-cranberry { color: #fff; }

/* Sponsor spotlight: copy an <article class="spotlight"> to feature new sponsor news */
.spotlights { display: grid; gap: 22px; max-width: 980px; margin: 44px auto 0; text-align: left; }
.spotlight { position: relative; background: var(--cream); color: var(--cocoa); border-radius: 26px; padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px clamp(28px, 5vw, 64px); align-items: center; box-shadow: 0 30px 60px -34px rgba(0,0,0,.7); }
.spot-num { text-align: center; min-width: 9ch; }
.spot-num small { display: block; font-size: 15px; font-weight: 600; color: var(--cocoa-2); }
.spot-num b { display: block; font: 400 clamp(96px, 12vw, 148px)/.86 var(--serif); color: var(--cranberry); letter-spacing: -.02em; }
.spot-num span { display: block; font: 400 30px/1 var(--serif); color: var(--pine); margin-top: 4px; }
.spot-tag { display: inline-block; position: relative; background: var(--cranberry); color: #fff; font-size: 14px; font-weight: 600; padding: 7px 14px 7px 26px; clip-path: polygon(11px 0, 100% 0, 100% 100%, 11px 100%, 0 50%); margin-bottom: 14px; }
.spot-tag::before { content: ""; position: absolute; left: 12px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--cream); }
.spotlight h3 { font: 400 clamp(32px, 3.6vw, 44px)/1.02 var(--serif); color: var(--pine); letter-spacing: -.01em; }
.spotlight p { margin-top: 12px; font-size: 18px; color: var(--cocoa-2); }
.sponsor-cta { margin-top: 8px; }

/* Partners on pine */
.thanks { text-align: center; padding-top: clamp(130px, 12vw, 160px); }
.thanks .serif-h { color: var(--cream); }
.thanks .logos .wordmark { border-left-color: var(--bulb-gold); color: var(--cream); }
.thanks .lead { color: rgba(247,239,226,.75); margin-inline: auto; }

@media (max-width: 900px) {
  .xmas-grid, .know { grid-template-columns: minmax(0, 1fr); }
  .polaroids { max-width: 520px; width: 100%; margin: 8px auto 0; height: clamp(360px, 92vw, 500px); }
  .moments { grid-template-columns: minmax(0, 1fr); }
  .gallery, .give { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spotlight { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .spot-num { min-width: 0; }
}
@media (max-width: 600px) {
  .know ul, .give, .facts, .day { grid-template-columns: minmax(0, 1fr); }
  .day { gap: 0; }
  .day li { display: grid; grid-template-columns: 30px minmax(0, 1fr); padding: 14px 0; }
  .day svg { grid-row: span 2; margin: 2px 0 0; }
  .gallery { gap: 22px 16px; }
  .gift-tag { font-size: 22px; }
  .film-frame { border-width: 6px; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) { .polaroid { transition: none; } }

/* Falling gifts (gift-fall.js): pieces drop from behind the lights, behind the content, in three depths */
.gift-fall { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.gift-fall ~ .xmas-grid { z-index: 1; }
.gf { position: absolute; top: 0; left: var(--x); width: var(--s); height: var(--s); margin-left: calc(var(--s) / -2);
  animation: gf-fall var(--t) linear var(--d) infinite; will-change: transform; }
.gf i { display: block; width: 100%; height: 100%; animation: gf-sway var(--st) ease-in-out var(--d) infinite alternate; }
.gf svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 4px 6px rgba(0,0,0,.28)); }
.gf.far { opacity: .42; }
.gf.far svg { filter: blur(.8px); }
.gf.mid { opacity: .78; }
.gf.near { opacity: .95; }
.gift-fall.paused .gf, .gift-fall.paused .gf i { animation-play-state: paused; }
@keyframes gf-fall { from { transform: translateY(calc(var(--s) * -1.4)); } to { transform: translateY(calc(var(--h, 900px) + 20px)); } }
@keyframes gf-sway { from { transform: translateX(calc(var(--sw) * -1)) rotate(var(--r0)); } to { transform: translateX(var(--sw)) rotate(var(--r1)); } }
@media (prefers-reduced-motion: reduce) { .gift-fall { display: none; } }
