/* ============================================================
   LIGHT A LIFE — BASE: tokens, reset, type, buttons, motifs, reveal
   ============================================================ */

/* ============================================================
   TOKENS — derived from the Light a Life logo (sun yellow,
   royal blue, ink) and the kids' yellow-and-blue uniforms
   ============================================================ */
:root {
  --paper:       #FFFCF3;
  --paper-warm:  #FFF6DD;
  --sun:         #F2C539;
  --sun-deep:    #E0A91C;
  --sun-tint:    #FBEDC2;
  --blue:        #3A47C4;
  --blue-deep:   #2A347F;
  --blue-tint:   #E4E7FB;
  --ink:         #1B1F38;
  --ink-soft:    #565C7A;
  --white:       #FFFFFF;

  --font-display: 'Bricolage Grotesque', 'Arial Black', sans-serif;
  --font-body:    'Instrument Sans', system-ui, -apple-system, sans-serif;
  --font-hand:    'Caveat', cursive;

  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.35rem;
  --text-2xl:  1.7rem;
  --text-3xl:  clamp(1.9rem, 1.2rem + 2.4vw, 3.1rem);
  --text-hero: clamp(2.7rem, 1.5rem + 4.6vw, 5.2rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem;
  --space-4: 1rem;    --space-6: 1.5rem; --space-8: 2rem;
  --space-12: 3rem;   --space-16: 4rem;  --space-24: 6rem;

  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-full: 999px;
  --blob: 58% 42% 56% 44% / 48% 55% 45% 52%;

  --shadow-card: 0 14px 40px rgba(35, 38, 90, 0.12);
  --shadow-pop:  0 22px 60px rgba(35, 38, 90, 0.18);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --content-max: 74rem;
}

/* ============================================================
   RESET + BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg, canvas { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
p, h1, h2, h3, h4 { overflow-wrap: break-word; }

html {
  font-family: var(--font-body);
  font-size: clamp(15px, 0.6vw + 13px, 17px);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.page-wrapper {
  width: min(var(--content-max), 100% - var(--space-8));
  margin-inline: auto;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--white);
  padding: var(--space-3) var(--space-6); z-index: 200;
  font-weight: 600; border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus { left: 0; }

.section { padding-block: clamp(4rem, 9vw, 7rem); position: relative; }
/* In-page nav jumps (#mission, #stories, #donate…) stop below the fixed header */
.section[id], .finale[id] { scroll-margin-top: 4rem; }

/* ============================================================
   TYPE HELPERS
   ============================================================ */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-weight: 600; font-size: var(--text-sm);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow svg { width: 18px; height: 18px; flex: none; }

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-3xl);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-top: var(--space-3);
  max-width: 24ch;
  text-wrap: balance;
}
.section-lede {
  margin-top: var(--space-4);
  font-size: var(--text-lg);
  max-width: 58ch;
  color: var(--ink-soft);
}

/* Yellow marker highlight, OVO-style */
.hl {
  position: relative; white-space: nowrap;
  background-image: linear-gradient(104deg, transparent 1%, var(--sun) 2%, var(--sun) 98%, transparent 99%);
  background-size: 100% 0.42em;
  background-position: 0 86%;
  background-repeat: no-repeat;
  border-radius: 4px;
}
.hl--blue { background-image: linear-gradient(104deg, transparent 1%, var(--blue-tint) 2%, var(--blue-tint) 98%, transparent 99%); }

.hand-note {
  font-family: var(--font-hand);
  font-size: var(--text-xl);
  color: var(--blue);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2);
  padding: 0.9em 1.8em;
  border-radius: var(--radius-full);
  border: 2px solid var(--ink);
  font-family: var(--font-display);
  font-weight: 700; font-size: var(--text-base);
  text-decoration: none; cursor: pointer;
  transition: transform 220ms var(--ease-bounce), box-shadow 220ms var(--ease-out),
              background 180ms var(--ease-out), color 180ms var(--ease-out);
}
.btn:hover { transform: translateY(-3px) rotate(-1deg); }
.btn:active { transform: translateY(0); }

.btn--sun {
  background: var(--sun); color: var(--ink);
  box-shadow: 0 6px 0 0 var(--ink);
}
.btn--sun:hover { box-shadow: 0 9px 0 0 var(--ink); background: #F7D055; }
.btn--sun:active { box-shadow: 0 2px 0 0 var(--ink); }

.btn--blue {
  background: var(--blue); color: var(--white);
  border-color: var(--blue-deep);
  box-shadow: 0 6px 0 0 var(--blue-deep);
}
.btn--blue:hover { box-shadow: 0 9px 0 0 var(--blue-deep); background: #4554D6; }
.btn--blue:active { box-shadow: 0 2px 0 0 var(--blue-deep); }

.btn--line {
  background: transparent; color: var(--ink);
  box-shadow: none;
}
.btn--line:hover { background: var(--blue-tint); }

/* ============================================================
   DECORATIVE MOTIFS — from the logo: blue flower + sun rays
   ============================================================ */
.flower { position: absolute; pointer-events: none; }
.spin-slow { animation: spin 26s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.floaty { animation: floaty 5.5s ease-in-out infinite alternate; }
.floaty--late { animation-delay: -2.7s; }
@keyframes floaty {
  from { translate: 0 -8px; }
  to   { translate: 0 10px; }
}

/* ============================================================
   REVEAL + REDUCED MOTION
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 650ms var(--ease-out), transform 650ms var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 110ms; }
.reveal[data-delay="2"] { transition-delay: 220ms; }
.reveal[data-delay="3"] { transition-delay: 330ms; }
