:root {
  --navy: #142544;
  --navy-deep: #0b1730;
  --white: #ffffff;
  --off-white: #f6f7f9;
  --gold: #b3873f;
  --gold-light: #d6ad6a;
  --slate: #3c4353;
  --slate-light: #6b7280;
  --line: #dde1e8;

  --display: "Fraunces", Georgia, serif;
  --body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--slate);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Star signature element ---------- */
.star {
  display: inline-block;
  width: 14px;
  height: 14px;
  color: var(--gold);
}
.star svg { width: 100%; height: 100%; fill: currentColor; }

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 4px 0 40px;
}
.divider::before,
.divider::after {
  content: "";
  height: 1px;
  width: 64px;
  background: var(--line);
}

/* ---------- Header / Nav ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  z-index: 20;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: var(--navy);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand .star { width: 16px; height: 16px; }

nav.tabs {
  display: flex;
  gap: 6px;
  background: var(--off-white);
  padding: 4px;
  border-radius: 999px;
}
nav.tabs a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--slate-light);
  padding: 9px 20px;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}
nav.tabs a:hover { color: var(--navy); }
nav.tabs a.active {
  background: var(--navy);
  color: var(--white);
}

.donate-btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy-deep);
  margin-left: 14px;
  transition: transform 0.15s ease;
}
.donate-btn:hover { transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  position: relative;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  padding-top: 64px;
  padding-bottom: 64px;
}
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 18px;
}
.hero-eyebrow .star { margin-top: 3px; flex: none; }
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.4vw, 3.2rem);
  line-height: 1.08;
  margin: 0 0 18px;
  font-weight: 600;
}
.hero p.lede {
  font-size: 1.08rem;
  color: #cfd7e6;
  max-width: 46ch;
  margin: 0 0 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  padding: 13px 26px;
  border-radius: 6px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--navy-deep); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.35);
}

.hero-photo {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 15%;
}
.hero-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,23,48,0) 60%, rgba(11,23,48,0.45) 100%);
}
.hero-photo-caption {
  position: absolute;
  bottom: 14px; left: 16px; right: 16px;
  font-size: 0.78rem;
  color: #e7ecf5;
  letter-spacing: 0.02em;
  z-index: 2;
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.tight { padding: 56px 0; }
.section-off { background: var(--off-white); }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
}
h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--navy);
  margin: 0 0 20px;
}
h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--navy);
  margin: 0 0 8px;
}
p { margin: 0 0 16px; }
.lead-text { font-size: 1.08rem; color: var(--slate); max-width: 68ch; }

/* Program cards */
.programs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px;
}
.card .star { margin-bottom: 14px; }
.card p { color: var(--slate-light); font-size: 0.95rem; margin-bottom: 0; }

/* Stat row */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.stat .num {
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 8px;
}
.stat .label {
  font-size: 0.85rem;
  color: var(--slate-light);
}
.stat-link {
  display: block;
  text-decoration: none;
  border-radius: 8px;
  margin: -8px;
  padding: 8px;
  transition: background 0.15s ease;
}
.stat-link:hover { background: var(--off-white); }
.stat-link:hover .num { color: var(--gold); }
.stat-link .label { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }

/* Timeline (record page) */
.timeline {
  border-left: 2px solid var(--line);
  margin-top: 8px;
  padding-left: 28px;
}
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -33px; top: 4px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.timeline-item .role {
  font-family: var(--display);
  font-weight: 600;
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.timeline-item p { color: var(--slate-light); font-size: 0.95rem; margin-bottom: 0; }
.timeline-item p.timeline-meta { font-size: 0.82rem; color: var(--slate-light); margin-bottom: 8px; font-style: italic; }

/* Endorsements */
.endorsements {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 28px;
  margin-top: 28px;
}
.endorsement {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.endorsement .star { flex: none; transform: translateY(2px); }

/* Footer */
footer {
  background: var(--navy-deep);
  color: #aab4c8;
  padding: 40px 0;
  font-size: 0.85rem;
}
footer .footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.footer-note {
  margin: 0;
  font-size: 0.82rem;
  color: #8f9bb3;
  font-style: italic;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}
footer a { color: #d9e0ec; text-decoration: none; }
footer a:hover { text-decoration: underline; }

.footer-social {
  display: flex;
  gap: 14px;
  align-items: center;
}
.footer-social a {
  display: inline-flex;
  width: 20px;
  height: 20px;
  color: #aab4c8;
  transition: color 0.15s ease;
}
.footer-social a:hover { color: var(--gold-light); text-decoration: none; }
.footer-social svg { width: 100%; height: 100%; fill: currentColor; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .site-header .wrap { height: auto; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; row-gap: 10px; }
  nav.tabs { flex-wrap: wrap; justify-content: center; width: 100%; order: 3; }
  nav.tabs a { padding: 8px 12px; font-size: 0.78rem; }
  .donate-btn { margin-left: 0; padding: 8px 16px; font-size: 0.8rem; }
  .brand span.brand-text { display: none; }
  .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 40px; }
  .hero-photo { max-width: 320px; margin: 0 auto; order: -1; }
  section { padding: 48px 0; }
  .programs { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 20px; }
  .endorsements { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}

/* Endorsement letters */
.letter-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 20px;
}
.letter-card .letter-name {
  font-family: var(--display);
  font-weight: 600;
  color: var(--navy);
  font-size: 1.1rem;
  margin-bottom: 2px;
}
.letter-card .letter-title {
  font-size: 0.85rem;
  color: var(--slate-light);
  margin-bottom: 16px;
}
.letter-card .letter-body {
  color: var(--slate);
  border-left: 3px solid var(--gold);
  padding-left: 18px;
}
.letter-card .letter-body p { margin: 0 0 14px; }
.letter-card .letter-body p:last-child { margin-bottom: 0; }
.letter-card .letter-signoff {
  margin-top: 18px;
  color: var(--navy);
  font-weight: 600;
}
.letter-placeholder {
  color: var(--slate-light);
  font-style: italic;
}

/* QR codes */
.qr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.qr-box {
  border: 2px dashed var(--line);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  color: var(--slate-light);
}
.qr-box .qr-placeholder-square {
  width: 120px;
  height: 120px;
  margin: 0 auto 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: repeating-linear-gradient(45deg, var(--off-white), var(--off-white) 6px, var(--white) 6px, var(--white) 12px);
}
.qr-box .qr-label {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.qr-box .qr-sub {
  font-size: 0.82rem;
}


