/* Art direction: Climate Justice Nonprofit → Warm, grounded, community-focused
   Palette: warm neutral surfaces + deep teal-green accent (energy/sustainability)
   Typography: Instrument Serif (display, authority) + General Sans (body, approachable)
   Density: spacious — nonprofit trust-building needs breathing room */

/* ========================================
   DESIGN TOKENS
   ======================================== */

:root {
  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  /* 4px Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Fonts */
  --font-display: 'Instrument Serif', 'Georgia', serif;
  --font-body: 'General Sans', 'Helvetica Neue', sans-serif;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;
}

/* ========================================
   LIGHT MODE (Default)
   ======================================== */

:root, [data-theme="light"] {
  /* Surfaces — warm cream tones */
  --color-bg:             #FAF8F5;
  --color-surface:        #FFFFFF;
  --color-surface-2:      #F5F2ED;
  --color-surface-offset: #EFEBe5;
  --color-surface-offset-2: #E8E4DD;
  --color-surface-dynamic: #DDD9D2;
  --color-divider:        #D4D0C9;
  --color-border:         #C8C3BB;

  /* Text */
  --color-text:           #1C1A16;
  --color-text-muted:     #6B685F;
  --color-text-faint:     #A8A59E;
  --color-text-inverse:   #FAF8F5;

  /* Primary Accent — Deep Teal Green (energy/sustainability) */
  --color-primary:        #0E7C6B;
  --color-primary-hover:  #0A5F53;
  --color-primary-active: #07463E;
  --color-primary-highlight: #D2EBE6;

  /* Warm Accent — Amber (warmth, community, urgency for "Keep the Lights On") */
  --color-warm:           #C47B1A;
  --color-warm-hover:     #A06315;
  --color-warm-highlight: #F5E8D0;

  /* Error */
  --color-error:          #B83232;
  --color-error-hover:    #952828;
  --color-error-highlight: #F5D7D7;

  /* Success */
  --color-success:        #3A7D3A;
  --color-success-hover:  #2C6A2C;
  --color-success-highlight: #D6EBD6;

  /* Shadows */
  --shadow-sm: 0 1px 2px oklch(0.2 0.02 70 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.2 0.02 70 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.2 0.02 70 / 0.12);
}

/* ========================================
   DARK MODE
   ======================================== */

[data-theme="dark"] {
  --color-bg:             #141210;
  --color-surface:        #1A1816;
  --color-surface-2:      #201E1B;
  --color-surface-offset: #262320;
  --color-surface-offset-2: #2C2925;
  --color-surface-dynamic: #33302C;
  --color-divider:        #3A3733;
  --color-border:         #46433E;

  --color-text:           #E0DED9;
  --color-text-muted:     #8F8D87;
  --color-text-faint:     #5E5C57;
  --color-text-inverse:   #1A1816;

  --color-primary:        #3DBAA8;
  --color-primary-hover:  #2A9E8D;
  --color-primary-active: #1E8276;
  --color-primary-highlight: #1E2E2B;

  --color-warm:           #E5A048;
  --color-warm-hover:     #D08F3A;
  --color-warm-highlight: #2E2517;

  --color-error:          #E06060;
  --color-error-hover:    #CC4848;
  --color-error-highlight: #2E1A1A;

  --color-success:        #5DB85D;
  --color-success-hover:  #4AA54A;
  --color-success-highlight: #1A2E1A;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:             #141210;
    --color-surface:        #1A1816;
    --color-surface-2:      #201E1B;
    --color-surface-offset: #262320;
    --color-surface-offset-2: #2C2925;
    --color-surface-dynamic: #33302C;
    --color-divider:        #3A3733;
    --color-border:         #46433E;
    --color-text:           #E0DED9;
    --color-text-muted:     #8F8D87;
    --color-text-faint:     #5E5C57;
    --color-text-inverse:   #1A1816;
    --color-primary:        #3DBAA8;
    --color-primary-hover:  #2A9E8D;
    --color-primary-active: #1E8276;
    --color-primary-highlight: #1E2E2B;
    --color-warm:           #E5A048;
    --color-warm-hover:     #D08F3A;
    --color-warm-highlight: #2E2517;
    --color-error:          #E06060;
    --color-error-hover:    #CC4848;
    --color-error-highlight: #2E1A1A;
    --color-success:        #5DB85D;
    --color-success-hover:  #4AA54A;
    --color-success-highlight: #1A2E1A;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
    --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
    --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
  }
}

/* ========================================
   GLOBAL TYPOGRAPHY
   ======================================== */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--color-text);
}

h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); font-weight: 500; }

p { color: var(--color-text-muted); }

a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover { color: var(--color-primary-hover); }

/* ========================================
   LAYOUT UTILITIES
   ======================================== */

.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.container--narrow {
  max-width: var(--content-narrow);
}

.container--default {
  max-width: var(--content-default);
}

.section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: background var(--transition-interactive),
              color var(--transition-interactive),
              box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
  min-height: 44px;
}

.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

.btn--primary {
  background: var(--color-primary);
  color: #FAF8F5;
}
.btn--primary:hover {
  background: var(--color-primary-hover);
  color: #FAF8F5;
}

.btn--warm {
  background: var(--color-warm);
  color: #FFF;
}
.btn--warm:hover {
  background: var(--color-warm-hover);
  color: #FFF;
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
.btn--outline:hover {
  background: var(--color-primary-highlight);
  color: var(--color-primary-hover);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-muted);
}
.btn--ghost:hover {
  background: var(--color-surface-offset);
  color: var(--color-text);
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
  min-height: 52px;
}

/* ========================================
   CARDS
   ======================================== */

.card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
}

.card--clickable {
  cursor: pointer;
}
.card--clickable:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card--clickable:active {
  transform: translateY(0);
}

/* ========================================
   HEADER / NAVIGATION
   ======================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.06);
  transition: box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-3);
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: var(--text-lg);
}

.logo svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
}

.nav-desktop a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-2) var(--space-1);
  transition: color var(--transition-interactive);
}
.nav-desktop a:hover { color: var(--color-text); }

.nav-cta,
.nav-desktop a.nav-cta {
  font-size: var(--text-sm);
  font-weight: 600;
  color: #FAF8F5;
}
.nav-desktop a.nav-cta:hover { color: #FAF8F5; }

/* ========================================
   NAV DROPDOWNS
   ======================================== */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-dropdown-trigger {
  background: transparent;
  border: 0;
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: var(--space-2) var(--space-1);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition-interactive);
}
.nav-dropdown-trigger:hover,
.nav-dropdown-trigger:focus-visible,
.nav-dropdown[data-open="true"] .nav-dropdown-trigger {
  color: var(--color-text);
  outline: none;
}
.nav-dropdown-trigger .nav-chevron {
  width: 12px;
  height: 12px;
  transition: transform 0.18s ease;
}
.nav-dropdown[data-open="true"] .nav-chevron {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 220px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(0,0,0,0.32);
  padding: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  z-index: 60;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown[data-open="true"] .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition-interactive), color var(--transition-interactive);
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  background: var(--color-surface-offset);
  color: var(--color-text);
  outline: none;
}

/* Mobile dropdown sections */
.mobile-nav-group {
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
}
.mobile-nav-group-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 0 var(--space-2);
  margin-bottom: var(--space-2);
}

.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--color-text);
}

@media (min-width: 768px) {
  .mobile-toggle { display: none; }
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  padding: var(--space-4);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-divider);
  margin-bottom: var(--space-6);
}

.mobile-nav a {
  display: block;
  font-size: var(--text-lg);
  font-family: var(--font-display);
  color: var(--color-text);
  padding: var(--space-3) 0;
  text-decoration: none;
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.06);
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  }
}

.footer-brand {
  max-width: 320px;
}

.footer-brand p {
  font-size: var(--text-sm);
  margin-top: var(--space-3);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col a {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: var(--space-1) 0;
  text-decoration: none;
}
.footer-col a:hover { color: var(--color-primary); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
  padding-top: var(--space-8);
  margin-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer-bottom a {
  color: var(--color-text-faint);
  text-decoration: none;
}
.footer-bottom a:hover { color: var(--color-primary); }

.footer-social {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.footer-social a {
  color: var(--color-text-faint);
  transition: color 0.15s;
}
.footer-social a:hover {
  color: var(--color-primary);
}

/* ========================================
   HERO
   ======================================== */

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    oklch(from var(--color-bg) l c h / 0.92) 0%,
    oklch(from var(--color-bg) l c h / 0.7) 50%,
    oklch(from var(--color-bg) l c h / 0.3) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: var(--space-16) var(--space-4);
}

.hero h1 {
  font-size: var(--text-3xl);
  max-width: 16ch;
  margin-bottom: var(--space-4);
}

.hero p {
  font-size: var(--text-lg);
  max-width: 50ch;
  margin-bottom: var(--space-6);
  color: var(--color-text);
  opacity: 0.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ========================================
   SECTION VARIANTS
   ======================================== */

.section--alt {
  background: var(--color-surface-2);
}

.section--primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.section--primary h2,
.section--primary h3 {
  color: var(--color-text-inverse);
}
.section--primary p {
  color: oklch(from var(--color-text-inverse) l c h / 0.8);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-12));
}

.section-header p {
  margin-inline: auto;
  margin-top: var(--space-3);
}

.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

/* ========================================
   PROGRAM CARDS
   ======================================== */

.program-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .program-grid { grid-template-columns: repeat(2, 1fr); }
}

.program-card {
  display: flex;
  flex-direction: column;
}

.program-card-img {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  background: var(--color-surface-offset);
}

.program-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.program-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: var(--color-surface);
}

.program-card-body h3 {
  margin-bottom: var(--space-2);
  font-size: var(--text-lg);
}

.program-card-body p {
  font-size: var(--text-sm);
  flex: 1;
}

/* ========================================
   IMPACT STATS
   ======================================== */

.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  text-align: center;
}

@media (min-width: 768px) {
  .stats-row { grid-template-columns: repeat(4, 1fr); }
}

.stat h3 {
  font-size: var(--text-2xl);
  color: var(--color-primary);
  font-family: var(--font-display);
}

.stat p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* ========================================
   DONATION TIERS
   ======================================== */

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

@media (min-width: 640px) {
  .tier-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .tier-grid { grid-template-columns: repeat(3, 1fr); }
}

.tier-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: box-shadow var(--transition-interactive),
              transform var(--transition-interactive),
              border-color var(--transition-interactive);
}

.tier-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.tier-card.featured {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
  position: relative;
}

.tier-badge {
  position: absolute;
  top: calc(-1 * var(--space-3));
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.tier-amount {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-text);
  margin: var(--space-3) 0;
}

.tier-amount span {
  font-size: var(--text-sm);
  font-family: var(--font-body);
  color: var(--color-text-muted);
}

.tier-name {
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.tier-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  flex: 1;
  margin-bottom: var(--space-4);
}

.tier-features {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-5);
  text-align: left;
}

.tier-features li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: var(--space-2) 0;
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.05);
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.tier-features li::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  background: var(--color-primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.3 4.3a1 1 0 010 1.4l-6 6a1 1 0 01-1.4 0l-3-3a1 1 0 011.4-1.4L6.5 9.6l5.3-5.3a1 1 0 011.4 0z' fill='currentColor'/%3E%3C/svg%3E") no-repeat center;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.3 4.3a1 1 0 010 1.4l-6 6a1 1 0 01-1.4 0l-3-3a1 1 0 011.4-1.4L6.5 9.6l5.3-5.3a1 1 0 011.4 0z' fill='currentColor'/%3E%3C/svg%3E") no-repeat center;
}

/* ========================================
   TESTIMONIAL
   ======================================== */

.testimonial {
  max-width: var(--content-narrow);
  margin-inline: auto;
  text-align: center;
}

.testimonial blockquote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.testimonial cite {
  font-style: normal;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ========================================
   FORM
   ======================================== */

.form-group {
  margin-bottom: var(--space-4);
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--color-text);
  transition: border-color var(--transition-interactive),
              box-shadow var(--transition-interactive);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.15);
}

.form-input::placeholder {
  color: var(--color-text-faint);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

/* ========================================
   SCROLL REVEAL (CSS-only)
   ======================================== */

.fade-in {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
}

@keyframes reveal-fade {
  to { opacity: 1; }
}

/* ========================================
   BADGE
   ======================================== */

.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 500;
  border-radius: var(--radius-full);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
}

/* ========================================
   THEME TOGGLE
   ======================================== */

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-text-muted);
  border-radius: var(--radius-md);
  transition: color var(--transition-interactive),
              background var(--transition-interactive);
}

.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}

/* ========================================
   PAGE HEADER (inner pages)
   ======================================== */

.page-header {
  padding: clamp(var(--space-10), 6vw, var(--space-20)) var(--space-4);
  background: var(--color-surface-2);
  text-align: center;
}

.page-header h1 {
  margin-bottom: var(--space-3);
}

.page-header p {
  font-size: var(--text-lg);
  max-width: 55ch;
  margin-inline: auto;
}

/* ========================================
   RICH TEXT / CONTENT
   ======================================== */

.prose h2 {
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

.prose h3 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.prose p {
  margin-bottom: var(--space-4);
  line-height: 1.7;
}

.prose ul, .prose ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

.prose li {
  margin-bottom: var(--space-2);
  color: var(--color-text-muted);
}

.prose img {
  border-radius: var(--radius-lg);
  margin-block: var(--space-6);
}

/* ========================================
   CTA BANNER
   ======================================== */

.cta-banner {
  text-align: center;
  padding: clamp(var(--space-10), 6vw, var(--space-16));
  background: var(--color-primary);
  border-radius: var(--radius-xl);
  color: var(--color-text-inverse);
}

.cta-banner h2 {
  color: var(--color-text-inverse);
  margin-bottom: var(--space-3);
}

.cta-banner p {
  color: oklch(from var(--color-text-inverse) l c h / 0.85);
  max-width: 50ch;
  margin-inline: auto;
  margin-bottom: var(--space-6);
}

.cta-banner .btn--warm {
  background: #FFF;
  color: var(--color-primary);
}
.cta-banner .btn--warm:hover {
  background: oklch(1 0 0 / 0.9);
  color: var(--color-primary-hover);
}

/* ========================================
   TIMELINE
   ======================================== */

.timeline {
  position: relative;
  padding-left: var(--space-8);
}

.timeline::before {
  content: '';
  position: absolute;
  left: var(--space-3);
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-divider);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-8);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-8) + var(--space-3) - 5px);
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid var(--color-bg);
}

.timeline-item h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

.timeline-item p {
  font-size: var(--text-sm);
}

/* ========================================
   RESPONSIVE GRIDS
   ======================================== */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

.grid-2--dense {
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .grid-2--dense {
    gap: var(--space-4);
  }
}

/* ========================================
   SKIP LINK
   ======================================== */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  z-index: 200;
  font-size: var(--text-sm);
}

.skip-link:focus {
  top: var(--space-2);
}

/* ========================================
   INSIGHTS SECTION
   ======================================== */

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-5);
}

.insight-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive), transform var(--transition-interactive);
}

.insight-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 24px rgba(1, 105, 111, 0.08);
  transform: translateY(-2px);
}

.insight-topic {
  display: inline-block;
  width: fit-content;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.625rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
}

.insight-topic--energy { background: #E6F3F3; color: #01696F; }
.insight-topic--climate { background: #FFF7ED; color: #9A3412; }
.insight-topic--community { background: #F0FDF4; color: #166534; }
.insight-topic--transparency { background: #EFF6FF; color: #1E40AF; }

.insight-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: var(--space-2);
}

.insight-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-3);
  flex: 1;
}

.insight-meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.insight-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
}

@media (max-width: 640px) {
  .insights-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   DONATION PROGRESS BAR
   ======================================== */

.donation-progress {
  max-width: 640px;
  margin: 0 auto var(--space-10);
  padding: var(--space-5) var(--space-6);
  background: var(--color-surface-2);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}

.donation-progress__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-3);
  font-family: var(--font-body);
}

.donation-progress__raised {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
}

.donation-progress__goal {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.donation-progress__track {
  width: 100%;
  height: 6px;
  background: var(--color-surface-offset-2);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-3);
}

.donation-progress__fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.donation-progress__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
  margin: 0;
}

/* ========================================
   URGENCY BADGES
   ======================================== */

.urgency-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-surface-offset);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-full);
  padding: 0.3em 0.8em;
  margin-top: var(--space-3);
  line-height: 1.4;
}

.urgency-badge--scarcity {
  color: var(--color-text-muted);
  background: var(--color-surface-offset);
  border-color: var(--color-divider);
}

.urgency-badge--seats {
  color: var(--color-text-muted);
  background: var(--color-surface-offset);
  border-color: var(--color-divider);
}

/* Report breadcrumb navigation */
.index-nav {
  padding: var(--space-3) var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  border-bottom: 1px solid var(--color-border);
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
}
.index-nav a { color: var(--color-text-muted); text-decoration: none; }
.index-nav a:hover { color: var(--color-primary); }
.index-nav .sep { color: var(--color-border); font-size: 0.75rem; }
.index-nav .current { color: var(--color-text); }

/* ============================================================
   REPORT PAGES — hero + body container
   ============================================================ */
.report-hero {
  padding: clamp(var(--space-8), 5vw, var(--space-12)) clamp(var(--space-4), 4vw, var(--space-8));
  background: var(--color-surface-offset);
  border-bottom: 1px solid var(--color-border);
}
.report-hero-inner {
  max-width: 780px;
  margin: 0 auto;
}
.report-hero .kicker {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}
.report-hero h1 {
  font-family: var(--font-display, "Instrument Serif"), Georgia, serif;
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-4);
  color: var(--color-text);
}
.report-hero .deck {
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  line-height: 1.55;
  color: var(--color-text);
  margin: 0 0 var(--space-5);
}
.report-hero .meta {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.report-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(var(--space-8), 5vw, var(--space-12)) clamp(var(--space-4), 4vw, var(--space-6));
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text);
}
.report-wrap p {
  margin: 0 0 var(--space-5);
}
.report-wrap h2 {
  font-family: var(--font-display, "Instrument Serif"), Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: var(--space-8) 0 var(--space-4);
  color: var(--color-text);
}
.report-wrap h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.125rem;
  margin: var(--space-6) 0 var(--space-3);
  color: var(--color-text);
}
.report-wrap a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.report-wrap a:hover {
  text-decoration-thickness: 2px;
}
.report-wrap ul, .report-wrap ol {
  margin: 0 0 var(--space-5);
  padding-left: var(--space-6);
}
.report-wrap li {
  margin-bottom: var(--space-2);
}
.report-wrap blockquote {
  margin: var(--space-6) 0;
  padding: var(--space-4) var(--space-5);
  border-left: 3px solid var(--color-primary);
  background: var(--color-surface-offset);
  font-style: italic;
  color: var(--color-text);
}
.report-wrap strong {
  font-weight: 600;
}
.report-wrap img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md, 8px);
  margin: var(--space-4) 0;
}

/* ============================
   GLOBAL OVERRIDE: align article body axis with header-inner
   (Forces older .report-body articles to share the same horizontal axis
   as the canonical main.report layout — so all articles look uniform.)
   ============================ */
.report-body {
  max-width: var(--content-wide) !important; /* 1200px to match header */
  margin: 0 auto !important;
  padding-left: var(--space-4) !important;
  padding-right: var(--space-4) !important;
}
.report-body > * {
  max-width: 760px;
  margin-left: 0;
  margin-right: auto;
}
/* The hero banner above .report-body keeps its own full-bleed treatment; only constrain the inner content. */
.report-hero-inner {
  max-width: var(--content-wide) !important;
  margin: 0 auto !important;
}
.report-hero-inner > * {
  max-width: 760px;
  margin-left: 0;
  margin-right: auto;
}

/* ============================
   INSIGHT REPORT — UNIFIED READING LAYOUT
   Used by <main class="report"> reports (2026-05-31 onward)
   ============================ */
main.report {
  max-width: var(--content-wide); /* 1200px — matches header-inner so visual axis is identical across header + body */
  margin: 0 auto;
  padding: var(--space-6) var(--space-4) var(--space-10);
  font-family: var(--font-body, "General Sans", system-ui, sans-serif);
  color: var(--color-text, #0f172a);
  font-size: 1.0625rem;
  line-height: 1.7;
}
/* Constrain prose to a comfortable reading column inside the wide outer container.
   Reading column lives flush-left of the 1200px outer so it visually anchors with the logo. */
main.report > .report-header,
main.report > section,
main.report > aside,
main.report > footer,
main.report > .report-cta,
main.report > p {
  max-width: 760px;
  margin-left: 0;
  margin-right: auto;
}
@media (min-width: 1100px) {
  main.report > .report-header,
  main.report > section,
  main.report > aside,
  main.report > footer,
  main.report > .report-cta,
  main.report > p {
    max-width: 760px;
  }
}
main.report .report-header {
  margin-bottom: var(--space-7);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-border, rgba(0,0,0,0.08));
}
main.report .kicker {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary, #01696F);
  margin: 0 0 var(--space-3) 0;
}
main.report h1 {
  font-family: var(--font-display, "Instrument Serif", serif);
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.15;
  font-weight: 400;
  margin: 0 0 var(--space-4) 0;
  color: var(--color-text, #0f172a);
}
main.report .deck {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--color-text-muted, #475569);
  margin: 0 0 var(--space-4) 0;
}
main.report .meta {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--color-text-muted, #64748b);
  margin: 0;
}
main.report section {
  margin: var(--space-6) 0;
}
main.report h2 {
  font-family: var(--font-display, "Instrument Serif", serif);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  line-height: 1.25;
  font-weight: 400;
  margin: var(--space-7) 0 var(--space-3);
  color: var(--color-text, #0f172a);
}
main.report h3 {
  font-family: var(--font-display, "Instrument Serif", serif);
  font-size: 1.3125rem;
  line-height: 1.3;
  font-weight: 500;
  margin: var(--space-5) 0 var(--space-2);
  color: var(--color-text, #0f172a);
}
main.report p {
  margin: 0 0 var(--space-4) 0;
}
main.report ul, main.report ol {
  margin: 0 0 var(--space-4) var(--space-5);
  padding: 0;
}
main.report li {
  margin-bottom: var(--space-2);
  line-height: 1.65;
}
main.report a {
  color: var(--color-primary, #01696F);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
main.report a:hover {
  text-decoration-thickness: 2px;
}
main.report strong { font-weight: 600; }
main.report em { font-style: italic; }
main.report blockquote {
  border-left: 3px solid var(--color-primary, #01696F);
  padding: var(--space-2) var(--space-4);
  margin: var(--space-5) 0;
  font-style: italic;
  color: var(--color-text-muted, #475569);
}
main.report img {
  max-width: 100%; height: auto;
  border-radius: var(--radius-md, 8px);
  margin: var(--space-5) 0;
}
main.report .footer-note,
main.report .signoff {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border, rgba(0,0,0,0.08));
  font-size: 0.9375rem;
  color: var(--color-text-muted, #475569);
}
@media (max-width: 640px) {
  main.report { padding: var(--space-5) var(--space-4) var(--space-8); }
}

/* ============================
   REPORTS INDEX — UNIFIED CARD GRID
   ============================ */
.reports-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-5) var(--space-10);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-5);
}
.reports-grid .report-card {
  display: flex; flex-direction: column;
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, rgba(0,0,0,0.08));
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.reports-grid .report-card:hover {
  border-color: var(--color-primary, #01696F);
  box-shadow: 0 4px 18px rgba(1,105,111,0.10);
  transform: translateY(-2px);
}
.reports-grid .report-card .media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #01696F 0%, #034e52 100%);
  overflow: hidden;
}
.reports-grid .report-card .media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.reports-grid .report-card .body {
  padding: var(--space-4);
  display: flex; flex-direction: column;
  flex: 1;
}
.reports-grid .report-card .topic {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: var(--space-3);
  align-self: flex-start;
}
.reports-grid .report-card .topic-energy { background:#fef3e2; color:#9a5f0d; }
.reports-grid .report-card .topic-climate { background:#fde8e8; color:#a03030; }
.reports-grid .report-card .topic-community { background:#e6f4f4; color:#01696F; }
.reports-grid .report-card .topic-food { background:#eaf5e3; color:#3d6a1f; }
.reports-grid .report-card .topic-transparency { background:#e8eef6; color:#3a5a8a; }
.reports-grid .report-card .topic-spotlight { background:#fbe6f0; color:#9a2c5e; }
.reports-grid .report-card h3 {
  font-family: var(--font-display, "Instrument Serif", serif);
  font-size: 1.1875rem;
  line-height: 1.3;
  font-weight: 400;
  margin: 0 0 var(--space-2) 0;
  color: var(--color-text, #0f172a);
}
.reports-grid .report-card .excerpt {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-text-muted, #475569);
  margin: 0 0 var(--space-3) 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.reports-grid .report-card .meta {
  margin-top: auto;
  padding-top: var(--space-3);
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-text-muted, #64748b);
  border-top: 1px solid var(--color-border, rgba(0,0,0,0.06));
}
