:root {
  --navy: #0b1f3a;
  --navy-2: #132b4d;
  --blue: #1c4a7a;
  --gold: #c9a227;
  --gold-soft: #a9d3f5; /* pale sky from the badge (name kept for compatibility) */
  --lake: #2f6fb3;
  --pine: #3f7d4e;
  --cream: #f3f6f9;
  --paper: #ffffff;
  --ink: #152033;
  --muted: #5b6575;
  --line: #dde4ec;
  --good: #1f6b4a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: rgba(11, 31, 58, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--lake);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: white;
}
.brand img {
  width: 52px;
  height: 60px;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
}
.brand-text strong {
  display: block;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.brand-text span {
  display: block;
  font-size: 12px;
  color: var(--gold-soft);
  font-family: "Source Sans 3", system-ui, sans-serif;
}

nav.primary {
  display: flex;
  align-items: center;
  gap: 4px;
}
nav.primary a {
  color: #e9eef6;
  text-decoration: none;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 11px;
  border-radius: 6px;
}
nav.primary a:hover, nav.primary a.active {
  color: white;
  background: rgba(255,255,255,0.08);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-weight: 700;
  border-radius: 999px;
  padding: 11px 20px;
  border: 0;
  cursor: pointer;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover { filter: brightness(1.06); }
.btn-outline {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.45);
}
.btn-navy {
  background: var(--navy);
  color: white;
}
.btn-lg { padding: 14px 26px; font-size: 16px; }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  padding: 8px 10px;
  border-radius: 8px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  place-items: end stretch;
  color: white;
  background: var(--navy) center/cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,31,58,0.25) 0%, rgba(11,31,58,0.72) 70%, rgba(11,31,58,0.92) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 80px 0 56px;
}
.kicker {
  font-family: "Source Sans 3", system-ui, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--gold-soft);
  font-weight: 700;
  margin: 0 0 12px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
  margin: 0 0 16px;
  font-weight: 600;
  max-width: 16ch;
}
.hero p.lede {
  font-size: 20px;
  max-width: 46ch;
  color: #e7edf6;
  margin: 0 0 28px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sections */
section { padding: 72px 0; }
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 12px;
}
.section-sub {
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 36px;
  font-size: 18px;
}
.eyebrow {
  font-family: "Source Sans 3", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 8px;
}

.grid-3, .grid-2, .grid-4 {
  display: grid;
  gap: 22px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(11,31,58,0.04);
}
.card h3 { margin: 0 0 10px; font-size: 22px; }
.card p { margin: 0; color: var(--muted); }
.icon-dot {
  width: 42px; height: 42px; border-radius: 12px;
  background: #e4eef8; color: var(--navy);
  display: grid; place-items: center;
  font-weight: 800; margin-bottom: 14px;
  font-family: "Source Sans 3", system-ui, sans-serif;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.split img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 18px;
}
.panel-dark {
  background: var(--navy);
  color: white;
}
.panel-dark .section-sub { color: #c9d4e4; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.stat {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 22px;
}
.stat b {
  display: block;
  font-size: 32px;
  color: var(--gold-soft);
  font-family: "Source Sans 3", system-ui, sans-serif;
}
.stat span { color: #d5deea; font-size: 15px; }

.event-list { display: grid; gap: 12px; }
.event {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.event-month {
  background: var(--navy);
  color: white;
  display: grid;
  place-items: center;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  padding: 16px 10px;
  text-align: center;
}
.event-body { padding: 16px 16px 16px 0; }
.event-body h3 { margin: 0 0 6px; font-size: 18px; }
.event-body p { margin: 0; color: var(--muted); font-size: 15px; }

.faq details {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-weight: 700;
}
.faq details p { color: var(--muted); margin: 10px 0 4px; }

.donate-box {
  background: white;
  border-radius: 20px;
  padding: 32px;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}
.qr {
  background: var(--cream);
  padding: 16px;
  border-radius: 16px;
  text-align: center;
}
.qr img { width: 180px; height: 180px; margin: 0 auto 10px; }

.people {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.person {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}
.person-head {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}
.person-head img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 50%;
  border: 3px solid var(--lake);
  flex-shrink: 0;
}
.person h3 { margin: 0 0 4px; }
.person .role {
  font-family: "Source Sans 3", system-ui, sans-serif;
  color: var(--blue);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.person-ph {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #1c4a7a;
  color: var(--gold-soft);
  display: grid;
  place-items: center;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-weight: 800;
  font-size: 22px;
  flex-shrink: 0;
  border: 3px solid var(--lake);
}

footer {
  background: #071526;
  color: #c9d4e4;
  padding: 48px 0 24px;
  font-family: "Source Sans 3", system-ui, sans-serif;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 28px;
}
footer a { color: var(--gold-soft); text-decoration: none; }
footer h4 { color: white; margin: 0 0 12px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin: 0 0 8px; }
.legal {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
  font-size: 13px;
  color: #8ea0b6;
}

.page-hero {
  background: var(--navy) center/cover no-repeat;
  color: white;
  padding: 90px 0 50px;
  position: relative;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,31,58,0.45), rgba(11,31,58,0.82));
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { margin: 0 0 8px; font-size: clamp(32px, 5vw, 52px); }

.callout {
  background: #e4eef8;
  border-left: 5px solid var(--lake);
  padding: 16px 18px;
  border-radius: 0 12px 12px 0;
  margin: 20px 0;
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  nav.primary {
    display: none;
    position: absolute;
    top: 78px; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 12px 16px 20px;
    border-bottom: 3px solid var(--lake);
  }
  nav.primary.open { display: flex; }
  .grid-3, .grid-2, .grid-4, .split, .stat-row, .donate-box, .people, .footer-grid, .event {
    grid-template-columns: 1fr;
  }
  .split img, .split figure img { height: 260px; }
  .photo-grid, .photo-grid.three { grid-template-columns: 1fr 1fr; }
  .event-body { padding: 0 16px 16px; }
}

.split figure { margin: 0; }
.split figure img { height: 420px; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.photo-grid.three { grid-template-columns: repeat(3, 1fr); }
.photo-card {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}
.photo-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.photo-card figcaption {
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 12px;
  color: var(--muted);
  padding: 8px 2px 0;
}
.photo-wide img { height: 280px; }

@media (max-width: 900px) {
  .photo-grid, .photo-grid.three { grid-template-columns: 1fr 1fr; }
  .split figure img { height: 260px; }
}
@media (max-width: 560px) {
  .photo-grid, .photo-grid.three { grid-template-columns: 1fr; }
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--gold-soft);
  color: var(--navy);
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--lake);
  outline-offset: 3px;
  border-radius: 4px;
}
main { display: block; }
h1, h2, h3 { text-wrap: balance; }

/* Cards on dark panels keep dark text */
.panel-dark .card { color: var(--ink); }
.panel-dark .card h3 { color: var(--ink); }

/* Three C's lead-in */
.three-c {
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 17px;
  color: var(--navy);
  margin: -12px 0 22px;
}
.three-c strong { color: var(--navy); }
.icon-dot { background: var(--pine); color: #fff; font-size: 18px; }

/* Design tweaks (Sept 29): sans body text, tighter headings, clearer hero, larger captions */
body { font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 17px; }
h1, h2, h3, h4, .section-title { font-family: "Source Serif 4", Georgia, "Times New Roman", serif; line-height: 1.2; }
.hero h1 { line-height: 1.08; }
.hero::after {
  background:
    linear-gradient(90deg, rgba(11,31,58,0.78) 0%, rgba(11,31,58,0.45) 45%, rgba(11,31,58,0) 75%),
    linear-gradient(180deg, rgba(11,31,58,0.25) 0%, rgba(11,31,58,0.6) 70%, rgba(11,31,58,0.9) 100%);
}
.kicker { color: #fff; font-size: 13px; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.hero p.lede { text-shadow: 0 1px 3px rgba(0,0,0,0.35); }
.photo-card figcaption { font-size: 14px; color: var(--ink); }

/* Mobile photo grid: two columns of square tiles, framed toward faces */
.photo-card img { object-position: center 30%; }
@media (max-width: 560px) {
  .photo-grid, .photo-grid.three { grid-template-columns: 1fr 1fr; gap: 12px; }
  .photo-card img { height: auto; aspect-ratio: 1 / 1; }
  .photo-card figcaption { font-size: 13px; }
}

/* Links: underline inline links only; standalone and list links underline on hover/focus */
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:not(.btn):hover { color: var(--lake); }
a.quiet { text-decoration: none; font-weight: 600; }
a.quiet:hover, a.quiet:focus-visible { text-decoration: underline; }
footer a:not(.btn):hover, footer a:focus-visible { color: #fff; text-decoration: underline; }

/* Links on dark backgrounds, and clickable gift cards */
.hero a:not(.btn), .page-hero a:not(.btn) { color: #fff; }
.hero a:not(.btn):hover, .page-hero a:not(.btn):hover { color: var(--gold-soft); }
a.card-link { display: block; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
a.card-link:hover, a.card-link:focus-visible { color: inherit; border-color: var(--lake); box-shadow: 0 10px 30px rgba(47,111,179,0.18); }
a.card-link h3 { color: var(--navy); }

/* Project spotlight card */
.card.spotlight { border-left: 5px solid var(--pine); margin-bottom: 22px; padding: 28px 30px; }
.card.spotlight h3 { font-size: 26px; }
.card.spotlight p { max-width: 75ch; margin: 0 0 12px; }
.card.spotlight p:last-child { margin: 16px 0 0; }

/* Cards with a photo on top */
.card.photo-top { padding: 0 0 22px; overflow: hidden; }
.card.photo-top img { width: 100%; height: 200px; object-fit: cover; margin-bottom: 16px; }
.card.photo-top h3, .card.photo-top p { padding: 0 22px; }
.card .eyebrow { margin-bottom: 6px; }

/* Banner photos: keep faces in frame */
.page-hero { background-position: center 22%; }

/* Spotlight with photo */
.spotlight-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.spotlight-photo { margin: 0; }
.spotlight-photo img { width: 100%; height: 260px; object-fit: cover; border-radius: 12px; display: block; }
.spotlight-photo figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
@media (max-width: 900px) { .spotlight-split { grid-template-columns: 1fr; } .spotlight-photo { order: -1; } .spotlight-photo img { height: 200px; } }

/* Mobile readability (home page refinements) */
@media (max-width: 560px) {
  .photo-card figcaption { font-size: 14px; line-height: 1.35; padding-top: 6px; }
  .stat span { font-size: 16px; line-height: 1.5; }
  .card p { font-size: 17px; line-height: 1.55; }
  .section-sub { font-size: 17px; line-height: 1.6; }
}

/* Descriptive page headings styled as kickers; slogans keep the large title look */
.page-hero h1.kicker { font-size: 13px; margin: 0 0 12px; line-height: 1.4; }
.page-hero .hero-title { font-family: "Source Serif 4", Georgia, "Times New Roman", serif; font-weight: 700; line-height: 1.2; text-wrap: balance; margin: 0 0 8px; font-size: clamp(32px, 5vw, 52px); color: inherit; }

/* Oct 3 review fixes */
nav.primary a.btn-gold, nav.primary a.btn-gold:hover { color: var(--navy); }
.footer-title { color: white; margin: 0 0 12px; font-family: "Source Serif 4", Georgia, "Times New Roman", serif; font-weight: 700; font-size: 1rem; line-height: 1.2; }
h2.h3 { font-size: 1.17em; }
.card h2.h3 { margin: 0 0 10px; font-size: 22px; }
.panel-dark .card h2.h3 { color: var(--ink); }
img { height: auto; }

/* Phones: the scan-to-donate QR code is not useful on the phone that would scan it */
@media (max-width: 560px) {
  .qr { display: none; }
}

/* About page video (R2-hosted) */
.video-section { padding-bottom: 36px; }
.video-section + section { padding-top: 36px; }
.video-figure { margin: 0; }
.video-figure video { display: block; width: 100%; height: auto; border-radius: 8px; background: #000; }
.video-cta { margin: 8px 0 0; }
.video-caption { font-family: "Source Sans 3", system-ui, sans-serif; font-size: 13px; line-height: 1.5; color: var(--muted); margin-top: 8px; }
