/* ============================================================
   Stamford Professional Firefighters Charitable Foundation
   Design System — Institutional / Civic, warmed with depth
   Restrained atmosphere. No glassmorphism. No garish gradients.
   ============================================================ */

/* --- Design Tokens --- */
:root {
  /* Backgrounds — cream paper field */
  --surface: #faf7f0;          /* dominant base */
  --surface-alt: #f3ede0;      /* alternating section band */
  --surface-raised: #ffffff;   /* cards / raised surfaces */
  --surface-deep: #ede6d5;     /* hero + footer base */

  /* Accent — Oxide Red (from crest helmet) */
  --oxide-red: #b04b30;
  --oxide-red-hover: #c15a3d;
  --oxide-red-deep: #8b3a25;

  /* Secondary — Navy (from crest badge panel) */
  --navy: #1c3f7a;
  --navy-bright: #2a55a0;
  --navy-subtle: #152f5c;

  /* Honor — Brass (from crest ribbon) */
  --brass: #b8934a;
  --brass-bright: #c9a85e;
  --brass-dim: rgba(184, 147, 74, 0.4);

  /* Text */
  --text: #17181a;
  --text-muted: rgba(23, 24, 26, 0.62);
  --text-subtle: rgba(23, 24, 26, 0.34);

  /* Borders */
  --hairline: rgba(23, 24, 26, 0.1);
  --hairline-strong: rgba(23, 24, 26, 0.18);

  /* Elevation — subtle for light background */
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.06), 0 4px 12px -6px rgba(0, 0, 0, 0.1);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.08), 0 8px 20px -8px rgba(0, 0, 0, 0.15);

  /* Typography */
  --font-headline: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-gap: 6rem;
  --container-max: 1200px;
  --card-padding: 2rem;
  --grid-gap: 1.5rem;

  /* Radius */
  --radius-sm: 3px;
  --radius-card: 6px;
  --radius-btn: 5px;

  /* Motion */
  --transition-fast: 160ms ease-out;
  --transition-reveal: 640ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* --- Reset --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--surface);
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* --- Focus --- */
:focus-visible {
  outline: 2px solid var(--oxide-red);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Utility: Screen Reader Only --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Section Labels (eyebrow) --- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--oxide-red);
  margin-bottom: 0.9rem;
}

.section-label::before {
  content: '';
  width: 1.75rem;
  height: 1px;
  background: linear-gradient(90deg, var(--oxide-red), transparent);
}

/* Centered variant (mission) keeps the label balanced */
.container[style*="center"] .section-label::before {
  display: none;
}

/* --- Section Headings --- */
.section-heading {
  font-family: var(--font-headline);
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2.25rem;
  letter-spacing: -0.01em;
}

/* --- Cards (flat surface + soft elevation) --- */
.card {
  position: relative;
  background: var(--surface-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: var(--card-padding);
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-fast),
              transform var(--transition-fast),
              box-shadow var(--transition-fast);
}

.card:hover {
  border-color: var(--hairline-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

/* --- Feature Cards (campaign initiatives, icon-led) --- */
.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--surface-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: border-color var(--transition-fast),
              transform var(--transition-fast),
              box-shadow var(--transition-fast);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--oxide-red), var(--brass));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms ease-out;
}

.feature-card:hover {
  border-color: var(--hairline-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-sm);
  background: rgba(176, 75, 48, 0.08);
  border: 1px solid rgba(176, 75, 48, 0.25);
  color: var(--oxide-red);
}

.feature-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke-width: 1.75;
}

.feature-title {
  font-family: var(--font-headline);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition-fast),
              border-color var(--transition-fast),
              color var(--transition-fast),
              transform var(--transition-fast),
              box-shadow var(--transition-fast);
  text-decoration: none;
}

.btn svg {
  transition: transform var(--transition-fast);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background-color: var(--oxide-red);
  color: #f3ede0;
  border-color: var(--oxide-red);
  box-shadow: 0 4px 12px -6px rgba(176, 75, 48, 0.5);
}

.btn-primary:hover {
  background-color: var(--oxide-red-hover);
  border-color: var(--oxide-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px rgba(176, 75, 48, 0.6);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text);
  border-color: var(--hairline-strong);
}

.btn-secondary:hover {
  border-color: var(--brass);
  color: var(--oxide-red);
  background-color: rgba(176, 75, 48, 0.04);
}

.btn-outline {
  background-color: transparent;
  color: var(--oxide-red);
  border-color: var(--oxide-red);
}

.btn-outline:hover {
  background-color: var(--oxide-red);
  color: var(--text);
}

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Reading column for text-heavy interior pages (About, Get Help, Cancer,
   Donate). Keeps the measure comfortable and the column centered in the
   viewport instead of stranding prose against the left edge of 1200px. */
.container--narrow {
  max-width: 880px;
}

/* Inside a reading column the constrained children should fill it, not
   re-constrain themselves and drift left again */
.container--narrow .legal-content,
.container--narrow .mission-body {
  max-width: none;
}

.container--narrow .page-lede {
  max-width: 68ch;
}

/* --- Sections + rhythm --- */
.section {
  padding: var(--section-gap) 0;
}

/* Alternating band: subtly raised, framed by hairlines */
.section--alt {
  background: var(--surface-alt);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

/* --- Divider (short brass rule) --- */
.section-divider {
  width: 2.75rem;
  height: 2px;
  background: linear-gradient(90deg, var(--brass), var(--brass-dim));
  margin: 0 auto 2.5rem;
  border: none;
  border-radius: 2px;
}

/* --- Grid Utilities --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--grid-gap);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
}

/* --- Scroll Reveal (only active when JS is present) --- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-reveal),
              transform var(--transition-reveal);
}

.js .reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}

/* --- Sponsor Logos --- */
.sponsor-card {
  aspect-ratio: 3 / 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--surface-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.sponsor-card:hover {
  border-color: var(--hairline-strong);
  transform: translateY(-2px);
}

.sponsor-logo {
  max-width: 100%;
  max-height: 70px;
  object-fit: contain;
  filter: grayscale(1);
  transition: filter var(--transition-fast);
}

.sponsor-card:hover .sponsor-logo {
  filter: grayscale(0);
}

.sponsor-card__name {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* --- Supporter Tiers --- */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.tier-card {
  background: var(--surface-raised);
  border: none;
  border-radius: 0;
  padding: 2.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  transition: background-color var(--transition-fast);
}

.tier-card:hover {
  background-color: #f5f0e5;
}

/* Brass medal badge — replaces dingbat characters */
.tier-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 0.25rem;
  border-radius: 50%;
  border: 1.5px solid rgba(184, 147, 74, 0.5);
  background: radial-gradient(circle at 50% 35%, rgba(184, 147, 74, 0.12), rgba(184, 147, 74, 0.03));
  color: var(--brass);
  font-family: var(--font-headline);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  user-select: none;
}

.tier-name {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tier-amount {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
}

.tier-benefits {
  list-style: none;
  padding: 0.5rem 0 0;
  margin-top: 0.25rem;
  border-top: 1px solid var(--hairline);
  width: 100%;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.9;
}

/* Platinum is the featured tier */
.tier-card.platinum {
  background: linear-gradient(180deg, rgba(176, 75, 48, 0.05), var(--surface-raised) 55%);
}

.tier-card.platinum .tier-name {
  color: var(--oxide-red);
}

.tier-card.platinum .tier-badge {
  border-color: var(--oxide-red);
  color: var(--brass-bright);
  background: radial-gradient(circle at 50% 35%, rgba(176, 75, 48, 0.18), rgba(176, 75, 48, 0.05));
}

/* --- Fixed Nav Offset --- */
main {
  padding-top: 64px;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: calc(90vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--surface-deep);
  overflow: hidden;
  isolation: isolate;
}

/* Ambient light: reduced intensity for cream background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(62% 55% at 50% 22%, rgba(28, 63, 122, 0.06), transparent 68%),
    radial-gradient(80% 55% at 50% 112%, rgba(176, 75, 48, 0.06), transparent 62%),
    linear-gradient(180deg, #f5f0e5, var(--surface));
}

/* Fine grain + edge vignette, softened for light */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.06) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: cover, 140px 140px;
  opacity: 0.22;
  mix-blend-mode: soft-light;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  padding: 3rem 1.5rem;
}

.hero-crest {
  width: clamp(112px, 15vw, 156px);
  height: auto;
  margin: 0 auto 2rem;
  filter: drop-shadow(0 0 28px rgba(184, 147, 74, 0.2))
          drop-shadow(0 8px 16px rgba(0, 0, 0, 0.08));
}

/* Lead-in line above the main statement */
.hero-eyebrow {
  display: block;
  font-family: var(--font-headline);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--oxide-red);
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

.hero-title {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 6vw, 4.25rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.08;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll cue */
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--text-subtle);
  animation: hero-bob 2.4s ease-in-out infinite;
}

.hero-scroll svg {
  width: 24px;
  height: 24px;
}

@keyframes hero-bob {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.5; }
  50% { transform: translate(-50%, 6px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll { animation: none; }
}

/* --- Campaign Callout (light blue-grey band — the key ask) --- */
.campaign-callout {
  position: relative;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(176, 75, 48, 0.06), transparent 55%),
    linear-gradient(135deg, var(--surface-raised), var(--surface-deep));
  border: 1px solid rgba(184, 147, 74, 0.25);
  border-radius: var(--radius-card);
  padding: 3rem;
  margin: 3.5rem 0 0;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.campaign-callout::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--brass), var(--oxide-red));
}

.campaign-callout h2 {
  font-family: var(--font-headline);
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
  font-weight: 600;
  color: #12151a;
  margin-bottom: 0.9rem;
}

.campaign-callout p {
  color: rgba(23, 24, 26, 0.72);
  max-width: 58ch;
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

/* --- Split Layout (two-column editorial grid, used by Mission/About/Give) --- */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  text-align: left;
  margin-top: 1rem;
}

.mission-body-wrap {
  display: flex;
  flex-direction: column;
}

/* --- Mission Statement --- */
.mission-text {
  position: relative;
  font-family: var(--font-headline);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  line-height: 1.5;
  max-width: none;
  margin: 0;
  text-align: left;
}

.mission-text::before {
  content: '\201C';
  display: block;
  font-size: 3.5rem;
  line-height: 0.6;
  color: var(--oxide-red);
  opacity: 0.35;
  margin-bottom: 1rem;
}

.mission-text::after {
  content: '\201D';
  display: block;
  text-align: right;
  font-size: 3.5rem;
  line-height: 0.6;
  color: var(--oxide-red);
  opacity: 0.35;
  margin-top: 1rem;
}

.mission-body {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: none;
}

/* --- Placeholder Image Blocks --- */
.placeholder-image {
  background:
    linear-gradient(135deg, var(--surface-raised), var(--surface-alt));
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-subtle);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  gap: 0.6rem;
  min-height: 200px;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.placeholder-image:hover {
  border-color: var(--hairline-strong);
  transform: translateY(-2px);
}

.placeholder-image::before {
  content: '';
  display: block;
  width: 2rem;
  height: 2rem;
  background: var(--brass);
  opacity: 0.5;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'%3E%3C/circle%3E%3Cpolyline points='21 15 16 10 5 21'%3E%3C/polyline%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'%3E%3C/circle%3E%3Cpolyline points='21 15 16 10 5 21'%3E%3C/polyline%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

/* --- Footer --- */
footer {
  position: relative;
  background: var(--surface-deep);
  border-top: 1px solid var(--hairline);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brass-dim), transparent);
}

/* Centered, stacked inner wrapper */
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

/* Brand block — crest + name + domain */
.footer-brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-crest {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 0.35rem;
  filter: drop-shadow(0 0 16px rgba(184, 147, 74, 0.15))
          drop-shadow(0 4px 8px rgba(0, 0, 0, 0.06));
}

.footer-brand {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.footer-domain {
  font-size: 0.875rem;
  color: var(--oxide-red);
  letter-spacing: 0.02em;
}

/* Divider inside footer — centered brass rule */
.footer-inner .section-divider {
  margin: 0 auto;
  width: 3rem;
}

/* Contact items — centered column of icon + text */
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-contact__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-contact__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--text-subtle);
}

.footer-contact__link {
  transition: color var(--transition-fast);
}

.footer-contact__link:hover {
  color: var(--brass-bright);
}

/* Meta (tax ID, region) — single centered line */
.footer-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Links — centered horizontal row */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.footer-links a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--brass-bright);
}

/* Bottom copyright bar */
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.8125rem;
  color: var(--text-subtle);
  text-align: center;
  line-height: 1.7;
}

/* --- Legal Content (Privacy Policy / Terms of Service) --- */
.legal-content {
  max-width: 720px;
  margin: 0 auto;
}

.legal-content h2 {
  font-family: var(--font-headline);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 3.5rem;
  margin-bottom: 1rem;
}

.legal-content h2:first-of-type {
  margin-top: 2.5rem;
}

.legal-content h3 {
  font-family: var(--font-headline);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
}

.legal-content p {
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.legal-content ul {
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.legal-content ul li {
  margin-bottom: 0.5rem;
}

.legal-content ul li:last-child {
  margin-bottom: 0;
}

.legal-content a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

.legal-content a:hover {
  color: var(--navy-bright);
}

.legal-updated {
  font-size: 0.8125rem;
  color: var(--text-subtle) !important;
  margin-bottom: 2rem !important;
  font-style: italic;
}

.legal-address {
  font-style: normal;
  color: var(--text-muted);
  line-height: 1.8;
  margin-top: 0.5rem;
}

/* ============================================================
   Trust & Transparency
   The site's job before anything else is proving we're real.
   ============================================================ */

/* Thin band of verifiable facts — sits directly under the hero */
.trust-strip {
  background: var(--surface-alt);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 1.1rem 0;
}

.trust-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem 2rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.trust-strip__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-strip__item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--brass);
}

.trust-strip a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

.trust-strip a:hover {
  color: var(--navy-bright);
}

/* Ledger — annual-report line items. Deliberately quiet: these numbers
   earn trust by looking like a financial statement, not a billboard. */
.ledger {
  border-top: 1px solid var(--hairline-strong);
  margin: 2rem 0;
}

.ledger__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--hairline);
}

.ledger__label {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.ledger__value {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
}

/* Board roster — initials medallion until real portraits exist */
.people {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 2.5rem;
  margin-top: 1.5rem;
}

.person {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--hairline);
}

.person__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1.5px solid rgba(184, 147, 74, 0.5);
  background: radial-gradient(circle at 50% 35%, rgba(184, 147, 74, 0.12), rgba(184, 147, 74, 0.03));
  color: var(--oxide-red-deep);
  font-family: var(--font-headline);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  user-select: none;
}

/* Portrait drops straight into the badge slot when photos exist */
.person__photo {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.person__name {
  font-family: var(--font-headline);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
}

.person__role {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Aside — clarifications that shouldn't interrupt the main read */
.note-card {
  border-left: 3px solid var(--brass);
  background: var(--surface-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0;
}

.note-card h3 {
  font-family: var(--font-headline);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.note-card p {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.note-card p + p {
  margin-top: 0.9rem;
}

.note-card a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Zeffy donation form, embedded so the ask never leaves our domain.
   1200px is Zeffy's own recommended height for their donation embed. */
.donate-embed {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 1200px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
}

.donate-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================================
   Risk Chart — single series, one hue, 1.0x general-population baseline
   Bars start at zero so the ratio is honest; the reference line marks 1.0x.
   Every bar is directly labelled, so no value is gated behind color.
   ============================================================ */
.chart-figure {
  margin: 2.5rem 0;
}

.chart-figure figcaption {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.chart {
  position: relative;
  padding-top: 1.75rem;
}

.chart__row {
  padding: 0.55rem 0;
}

.chart__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.chart__label {
  font-size: 0.9375rem;
  color: var(--text);
}

/* Values wear text tokens, never the bar's colour */
.chart__value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.chart__track {
  height: 14px;
  background: rgba(23, 24, 26, 0.05);
  border-radius: 0 3px 3px 0;
}

.chart__bar {
  height: 100%;
  background: var(--oxide-red);
  border-radius: 0 4px 4px 0;
}

/* Reference line at 1.0x — solid hairline, recessive */
.chart__baseline {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--hairline-strong);
  pointer-events: none;
}

.chart__baseline-tag {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Reference table — the chart's WCAG-clean twin, and where mortality lives */
.table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
}

.data-table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.data-table th {
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 1rem 0.75rem 0;
  border-bottom: 1px solid var(--hairline-strong);
}

.data-table td {
  padding: 0.85rem 1rem 0.85rem 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--text-muted);
  vertical-align: top;
  line-height: 1.5;
}

.data-table td:first-child {
  color: var(--text);
}

.data-table__num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Citation list */
.source-list {
  list-style: none;
  padding: 0;
}

.source-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.9rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.source-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 0.6rem;
  height: 1px;
  background: var(--brass);
}

.source-list a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* PDF downloads */
.resource-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-fast),
              transform var(--transition-fast),
              box-shadow var(--transition-fast);
}

.resource-link:hover {
  border-color: var(--hairline-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.resource-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  background: rgba(176, 75, 48, 0.08);
  border: 1px solid rgba(176, 75, 48, 0.25);
  color: var(--oxide-red);
}

.resource-link__icon svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 1.75;
}

.resource-link__title {
  font-family: var(--font-headline);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.resource-link__meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Stat row — three headline figures, deliberately restrained */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin: 2.5rem 0;
}

.stat-item {
  border-top: 2px solid var(--oxide-red);
  padding-top: 1.1rem;
}

.stat-item__figure {
  display: block;
  font-family: var(--font-headline);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.stat-item__text {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* Page lede — the opening paragraph on interior pages */
.page-lede {
  font-family: var(--font-headline);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  max-width: 60ch;
  margin-bottom: 2.5rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  :root {
    --section-gap: 4rem;
    --card-padding: 1.5rem;
    --grid-gap: 1rem;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .tier-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    min-height: calc(100vh - 64px);
  }

  .campaign-callout {
    padding: 2rem 1.75rem;
  }

  .split-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .mission-text {
    text-align: center;
    max-width: 24ch;
    margin: 0 auto;
  }

  .mission-text::after {
    text-align: center;
  }

  .people {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ledger__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .stat-row {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

@media (max-width: 480px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .tier-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 2rem 1.25rem;
  }

  .hero-title {
    font-size: 2rem;
    letter-spacing: -0.01em;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    width: 100%;
  }
}