@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

/* ── Design Tokens ── */
:root {
  /* Palette — exact hex values */
  --warm-white:    #F9F7F4;
  --charcoal:      #1C1C1E;
  --lapis:         #1D4E8F;
  --lapis-dark:    #183F75;
  --lapis-light:   #6FA4DB;
  --lapis-tint:    rgba(29,78,143,0.10);
  --link:          var(--lapis);
  --link-hover:    var(--lapis-dark);
  --sand:          #C9B99A;
  --sand-light:    rgba(201,185,154,0.18);
  --pomegranate:   #9B2335;

  /* Functional aliases */
  --bg:            var(--warm-white);
  --text:          var(--charcoal);
  --text-muted:    rgba(28,28,30,0.60);
  --text-light:    rgba(28,28,30,0.40);
  --border:        rgba(28,28,30,0.10);
  --border-strong: rgba(28,28,30,0.20);

  /* Layout */
  --nav-h:         68px;
  --max-w:         1100px;
  --prose-w:       680px;
  --radius:        4px;
  --radius-lg:     8px;

  /* Typography */
  --font:          'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Dark mode tokens ── */
[data-theme="dark"] {
  --bg:            #16161A;
  --text:          #E8E4DF;
  --text-muted:    rgba(232,228,223,0.65);
  --text-light:    rgba(232,228,223,0.38);
  --border:        rgba(232,228,223,0.10);
  --border-strong: rgba(232,228,223,0.20);
  --sand-light:    rgba(201,185,154,0.10);
  --link:          var(--lapis-light);
  --link-hover:    #9BC3E8;
}
[data-theme="dark"] body > nav,
[data-theme="dark"] #site-nav nav {
  background: rgba(22,22,26,0.92);
}
[data-theme="dark"] .story-card,
[data-theme="dark"] .post-card,
[data-theme="dark"] .cta-action-item,
[data-theme="dark"] .contact-method {
  background: #1E1E24;
}
[data-theme="dark"] .cta-section {
  background: rgba(201,185,154,0.07);
}
[data-theme="dark"] .newsletter-form input[type="email"] {
  background: #1E1E24;
  border-color: var(--border-strong);
  color: var(--text);
}
[data-theme="dark"] .story-card-image {
  background: rgba(29,78,143,0.85);
}
[data-theme="dark"] .section h2,
[data-theme="dark"] .cta-inner h2,
[data-theme="dark"] .prose h2,
[data-theme="dark"] .prose h3,
[data-theme="dark"] .prose strong,
[data-theme="dark"] .post-card h3,
[data-theme="dark"] .story-card h3,
[data-theme="dark"] .contact-method h3,
[data-theme="dark"] .cta-action-text strong {
  color: var(--text);
}
[data-theme="dark"] .intro-card-body p,
[data-theme="dark"] .section-intro,
[data-theme="dark"] .cta-inner p,
[data-theme="dark"] .post-card p,
[data-theme="dark"] .story-card p,
[data-theme="dark"] .contact-method p,
[data-theme="dark"] .cta-action-text span,
[data-theme="dark"] .prose p {
  color: var(--text-muted);
}
[data-theme="dark"] .nav-mobile {
  background: #16161A;
}
[data-theme="dark"] .nav-logo {
  color: #fff;
}
[data-theme="dark"] .nav-links a {
  color: rgba(255,255,255,0.80);
}
[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,0.10);
}
[data-theme="dark"] .post-title {
  color: var(--text);
}

/* ── Theme toggle button ── */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  flex-shrink: 0;
  margin-left: 20px;
  margin-right: 8px;
}
.theme-toggle:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--sand-light);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

/* ── Navigation ── */
body > nav,
#site-nav nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(249,247,244,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 40px;
}
.nav-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Concept A wordmark */
.nav-logo {
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.nav-logo:hover { opacity: 0.65; }
.logo-united { color: #9B2335; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--charcoal);
  background: var(--sand-light);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  line-height: 0;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px 20px;
  gap: 2px;
  z-index: 99;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 12px 14px;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}
.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--charcoal);
  background: var(--sand-light);
}

/* Nav dropdown */
.nav-dropdown { position: relative; display: inline-block; }
.nav-dropdown-toggle { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.nav-arrow { font-size: 10px; opacity: 0.6; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  min-width: 180px;
  z-index: 100;
  padding: 8px 0;
  margin-top: 0;
}
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-dropdown-menu a {
  display: block;
  padding: 9px 18px;
  font-size: 14px;
  color: var(--charcoal);
  text-decoration: none;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: var(--sand-light); color: var(--lapis); }
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
[data-theme="dark"] .nav-dropdown-menu { background: var(--charcoal); border-color: var(--border); }
[data-theme="dark"] .nav-dropdown-menu a { color: var(--text); }

/* Breadcrumbs */
.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--lapis); }
.breadcrumb-sep { opacity: 0.4; }

/* ── Page wrapper ── */
main { padding-top: var(--nav-h); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
  line-height: 1;
}
.btn-primary {
  background: var(--lapis);
  color: #fff;
  border-color: var(--lapis);
}
.btn-primary:hover {
  background: var(--lapis-dark);
  border-color: var(--lapis-dark);
  transform: translateY(-1px);
}
.prose .btn-primary,
.prose .btn-primary:hover { color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--lapis);
  border-color: var(--lapis);
}
.btn-ghost:hover {
  background: var(--lapis-tint);
  transform: translateY(-1px);
}

/* ── Hero ── */
.hero {
  min-height: 620px;
  background: #1D4E8F;
  background-image: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.07) 0%, transparent 65%),
                    radial-gradient(ellipse at 80% 20%, rgba(0,0,0,0.25) 0%, transparent 60%);
  display: flex;
  align-items: center;
  padding: 80px 0 80px 40px;
  position: relative;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(29,78,143,0.4) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 48px;
}
.hero-text {
  flex: 1;
  min-width: 0;
}
.hero-image-col {
  flex: 0 0 40%;
  border-radius: 12px 0 0 12px;
  overflow: hidden;
  align-self: stretch;
  min-height: 420px;
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.92;
}
.hero-eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 20px;
  display: block;
}
.hero h1 {
  /* font-size handled by .display-headline */
  color: #fff;
  margin-bottom: 24px;
}
/* ── Hero verb emphasis ── */
.display-headline .hero-verb {
  color: var(--sand);
  font-weight: 800;
  font-style: normal;
}
.display-headline .hero-rest {
  color: inherit;
  font-weight: inherit;
}
.hero-sub {
  font-size: 18px;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 40px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
/* Buttons reversed on dark hero background */
.hero-actions .btn-primary {
  background: #fff;
  color: var(--lapis);
  border-color: #fff;
}
.hero-actions .btn-primary:hover {
  background: rgba(255,255,255,0.88);
  border-color: rgba(255,255,255,0.88);
}
.hero-actions .btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.70);
}
.hero-actions .btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}

/* ── Impact Stats ── */
.stats-section {
  background: var(--charcoal);
  padding: 64px 40px;
}
.stats-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  gap: 40px;
}
.stat-item {
  text-align: center;
}
.stat-number {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
  display: block;
}
.stat-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--sand);
  letter-spacing: 0.02em;
  line-height: 1.4;
}

/* ── Sections ── */
.section {
  padding: 80px 40px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-full {
  padding: 80px 40px;
}
.section-narrow {
  max-width: var(--prose-w);
}
.section-eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 16px;
  display: block;
}
.section h2 {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--lapis);
  margin-bottom: 20px;
}
.section-intro {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 48px;
}
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 40px;
}

/* ── Who Are the Hazara — intro card ── */
.intro-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.intro-card-image {
  border-radius: var(--radius-lg);
  height: 320px;
  overflow: hidden;
  padding: 0;
}
.intro-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.intro-card-body .section-eyebrow { margin-bottom: 14px; }
.intro-card-body h2 { margin-bottom: 16px; }
.intro-card-body p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 52ch;
}
.read-more {
  font-size: 15px;
  font-weight: 600;
  color: var(--lapis);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.15s;
}
.read-more:hover { gap: 10px; }

/* ── Stories card grid ── */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.story-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: block;
}
.story-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(28,28,30,0.08);
}
.story-card-image {
  height: 200px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--lapis);
}
.story-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.story-card:hover .story-card-image img {
  transform: scale(1.05);
}
.story-card-body {
  padding: 24px;
}
.story-cat {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lapis);
  margin-bottom: 10px;
  display: block;
}
.story-card h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--charcoal);
  margin-bottom: 10px;
}
.story-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.story-card-date {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.02em;
}

/* ── Get Involved / Newsletter CTA ── */
.cta-section {
  background: var(--sand-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.cta-inner h2 {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--lapis);
  margin-bottom: 16px;
}
.cta-inner p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}
.newsletter-form {
  display: flex;
  gap: 8px;
}
.newsletter-form input[type="email"] {
  flex: 1;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.15s;
}
.newsletter-form input[type="email"]:focus {
  border-color: var(--lapis);
}
.newsletter-form input::placeholder { color: var(--text-light); }
.newsletter-note {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 10px;
}

/* ── Newsletter form (involve-card variant) ── */
/* Card context is narrower than the homepage CTA. Keep input + button on one row
   until the card itself collapses, and stack on small screens. */
.newsletter-form.newsletter-form-card { margin-top: 8px; flex-wrap: wrap; }
.newsletter-form.newsletter-form-card input[type="email"] {
  min-width: 0;
  flex: 1 1 220px;
  padding: 12px 14px;
  font-size: 15px;
}
.newsletter-form.newsletter-form-card .btn { white-space: nowrap; }
@media (max-width: 520px) {
  .newsletter-form.newsletter-form-card { flex-direction: column; }
  .newsletter-form.newsletter-form-card .btn { width: 100%; }
}
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cta-action-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.15s;
}
.cta-action-item:hover {
  border-color: var(--border-strong);
  transform: translateX(3px);
}
.cta-action-icon {
  width: 40px;
  height: 40px;
  background: var(--lapis-tint);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--lapis);
}
.cta-action-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 2px;
}
.cta-action-text span {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Footer ── */
footer {
  background: var(--charcoal);
  padding: 60px 40px 40px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  margin-bottom: 32px;
}
.footer-brand {
  font-family: var(--font);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
  display: block;
}
.footer-tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.50);
  line-height: 1.6;
  max-width: 28ch;
}
.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 16px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  transition: color 0.15s;
}
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-size: 13px;
  color: #fff;
}
.footer-social {
  display: flex;
  gap: 16px;
}
.footer-social a {
  font-size: 13px;
  color: rgba(255,255,255,0.40);
  transition: color 0.15s;
}
.footer-social a:hover { color: #fff; }
.footer-legal {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-legal a {
  font-size: 13px;
  color: #fff;
  text-decoration: none;
}
.footer-legal a:hover {
  color: rgba(255,255,255,0.75);
  text-decoration: underline;
}

/* ── Prose (about.html, story pages) ── */
.prose-section {
  max-width: var(--prose-w);
  margin: 0 auto;
  padding: 80px 40px 100px;
}
.prose-section h1 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}
.prose-section .post-meta {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.02em;
  margin-bottom: 48px;
}
/* Offset anchor targets so the fixed nav doesn't cover them */
h2[id], h3[id] { scroll-margin-top: 104px; }

.prose h2 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--lapis);
  margin: 48px 0 16px;
}
.prose h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--charcoal);
  margin: 36px 0 12px;
}
.prose p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 22px;
  max-width: 68ch;
}
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--charcoal); font-weight: 600; }
.prose ul, .prose ol {
  margin: 0 0 22px 24px;
  color: var(--text-muted);
  line-height: 1.75;
}
.prose li { margin-bottom: 8px; }
.prose blockquote {
  border-left: 3px solid var(--pomegranate);
  padding: 8px 0 8px 24px;
  margin: 32px 0;
  color: var(--charcoal);
  font-style: italic;
  font-size: 18px;
}
.prose a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--link-hover); }
.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* ── Story index (stories.html) ── */
.stories-index {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 40px;
}
.stories-header {
  margin-bottom: 56px;
}
.stories-header h1 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.stories-header p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
}
.cat-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.cat-chip {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.cat-chip:hover,
.cat-chip.active {
  background: var(--lapis);
  color: #fff;
  border-color: var(--lapis);
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* What's New page - vertical timeline */
.timeline {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 8px 0 64px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-entry {
  position: relative;
  padding: 0 0 40px 28px;
}
.timeline-entry:last-child {
  padding-bottom: 0;
}
.timeline-entry::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lapis);
  border: 3px solid var(--bg);
}
.timeline-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.timeline-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px;
}
.timeline-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* Post cards (generated by build.py) */
.post-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: #fff;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.post-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(28,28,30,0.07);
}
.post-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.post-card h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--charcoal);
  margin-bottom: 8px;
}
.post-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.post-date-small {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
}
.read-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--lapis);
  text-decoration: none;
  transition: opacity 0.15s;
}
.read-link:hover { opacity: 0.75; }

/* Category pills */
.cat-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}
.cat-advocacy  { background: rgba(29,78,143,0.10); color: var(--lapis); border: 1px solid rgba(29,78,143,0.20); }
.cat-culture   { background: rgba(155,35,53,0.08); color: var(--pomegranate); border: 1px solid rgba(155,35,53,0.18); }
.cat-history   { background: #FFF4E0; color: #8B5E00; border: 1px solid rgba(139,94,0,0.25); }
.cat-diaspora  { background: rgba(201,185,154,0.30); color: #7A6B52; border: 1px solid rgba(201,185,154,0.50); }
.cat-people    { background: rgba(28,28,30,0.06); color: var(--charcoal); border: 1px solid rgba(28,28,30,0.15); }
.status-pill {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}
.status-published { background: rgba(22,163,74,0.08); color: #15803d; border: 1px solid rgba(22,163,74,0.20); }

/* ── Library page ── */
.library-section-header { margin-bottom: 32px; }
.library-section-title { font-size: 22px; font-weight: 700; color: var(--charcoal); margin: 0 0 10px; }
.library-section-desc { font-size: 15px; color: var(--text-muted); line-height: 1.65; margin: 0; max-width: 640px; }

.essential-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-bottom: 16px;
}
.essential-card {
  border: 1px solid var(--border);
  border-left: 3px solid var(--lapis);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s;
}
.essential-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.essential-card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.3;
  margin: 0;
}
.essential-card-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}
.essential-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--lapis);
}
[data-theme="dark"] .essential-card-title { color: var(--text); }
@media (max-width: 640px) {
  .essential-grid { grid-template-columns: 1fr; }
}

/* ── Contact page ── */
.contact-section {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 40px 100px;
}
.contact-section h1 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.contact-section .lead {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 52ch;
  line-height: 1.7;
  margin-bottom: 56px;
}
.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 56px;
}
.contact-method {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  text-decoration: none;
  display: block;
  transition: border-color 0.2s, transform 0.2s;
}
.contact-method:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.contact-method-icon {
  width: 40px;
  height: 40px;
  background: var(--lapis-tint);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--lapis);
}
.contact-method h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 6px;
}
.contact-method p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}
.contact-handle {
  font-size: 13px;
  font-weight: 500;
  color: var(--lapis);
}
.contact-note {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  padding: 28px;
  background: var(--sand-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* ── Stub / placeholder pages ── */
.placeholder-note {
  color: var(--text-muted);
  font-style: italic;
}

/* ── Post body (story pages generated by build.py) ── */
.post-body { padding-top: 60px; padding-bottom: 100px; }
.post-title {
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--charcoal);
  margin: 8px 0 32px;
}
.post-hero {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 32px;
  display: block;
}
.post-video {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-bottom: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.post-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.post-body .cat-pill { vertical-align: middle; }

/* ── Entrance animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-content {
  animation: fadeUp 0.7s ease both;
}

/* Stat item entrance handled by scroll-reveal.js */

/* ── Typographic Pull Quote ── */
.pull-quote-section {
  background: var(--charcoal);
  padding: 80px 40px;
}
.pull-quote-inner {
  max-width: 860px;
  margin: 0 auto;
}
.pull-quote {
  border: none;
  padding: 0;
  margin: 0;
}
.pull-quote p::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--pomegranate);
  border-radius: 2px;
}

/* ── Priority 1: Display Headline Typography ── */
.display-headline {
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
}
.display-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 60ch;
  margin-top: 1.5rem;
}

/* ── Priority 2: Full-Bleed Color Section Breaks ── */
.section-lapis {
  background: var(--lapis);
  padding: 80px 40px;
  width: 100%;
}
.section-lapis .section-eyebrow { color: rgba(255,255,255,0.6); }
.section-lapis h2 { color: #fff; }
.section-lapis p { color: rgba(255,255,255,0.85); }
.section-lapis .read-more { color: #fff; }
.section-lapis .read-more svg { stroke: #fff; }
.section-lapis .intro-card-image { border-color: rgba(255,255,255,0.2); }

.section-tinted {
  background: #F0EDE8;
  padding: 80px 40px;
  width: 100%;
}
[data-theme="dark"] .section-tinted { background: #1A1A20; }

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ── Priority 3: Scroll-Driven Reveals ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* ── Priority 4: Oversized Pull Quotes ── */
.pull-quote p {
  font-size: clamp(1.3rem, 2.4vw, 2.2rem);
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
  padding-left: 2rem;
  position: relative;
}

/* ── Priority 5: Lapis Animated Underline Links ── */
.prose a {
  text-decoration: none;
  color: var(--link);
  position: relative;
  transition: color 0.15s ease;
}
.prose a:hover {
  color: var(--link-hover);
}
.prose a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: var(--link);
  transition: width 0.3s ease;
}
.prose a:hover::after { width: 100%; }

/* ── Priority 6: Variable Font Weight on Hero Headline ── */
@keyframes weight-in {
  from { font-variation-settings: 'wght' 200; opacity: 0.3; }
  to   { font-variation-settings: 'wght' 800; opacity: 1; }
}
.hero h1 {
  animation: weight-in 0.9s ease both;
  font-variation-settings: 'wght' 800;
}

/* ── Page two-column layout (people.html) ── */
.page-layout {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px 100px;
}
.page-content {
  flex: 1;
  min-width: 0;
}
.toc-sidebar {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 88px;
  align-self: flex-start;
}
.toc-inner {
  padding: 20px;
  background: var(--sand-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
[data-theme="dark"] .toc-inner {
  background: rgba(201,185,154,0.07);
}
[data-theme="dark"] .toc-label {
  color: rgba(255,255,255,0.50);
}
[data-theme="dark"] .toc-link {
  color: rgba(255,255,255,0.65);
}
[data-theme="dark"] .toc-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
[data-theme="dark"] .toc-link.active {
  color: #fff;
  border-left-color: var(--lapis);
  background: rgba(29,78,143,0.25);
}
.toc-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
  display: block;
  margin-bottom: 14px;
}
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.toc-link {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
  border-left: 2px solid transparent;
  line-height: 1.4;
}
.toc-link:hover {
  color: var(--charcoal);
  background: rgba(29,78,143,0.06);
}
.toc-link.active {
  color: var(--lapis);
  border-left-color: var(--lapis);
  background: rgba(29,78,143,0.06);
  font-weight: 600;
}
/* Inside the two-column layout, prose-section loses its side/bottom padding
   (page-layout handles those) but keeps its own top padding */
.page-content .prose-section {
  max-width: none;
  margin: 0;
  padding: 60px 0 40px;
}
/* Pull-quote full-bleed compensation inside page-content */
.page-content .pull-quote-section {
  margin-left: -40px;
  margin-right: -40px;
  width: calc(100% + 80px);
}

/* ── Mission box (about.html) ── */
.mission-box {
  padding: 32px;
  background: var(--sand-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 48px;
}
.mission-box-text {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  font-style: italic;
  max-width: 62ch;
  margin: 0;
}
[data-theme="dark"] .mission-box {
  background: var(--card-bg, #1e1e1e);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .stories-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .hero { padding: 60px 20px; min-height: 480px; }
  .hero-sub { font-size: 16px; }
  .hero-content { flex-direction: column; gap: 32px; }
  .hero-image-col { display: none; }
  .pull-quote-section { padding: 60px 20px; }

  .stats-section { padding: 48px 20px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .stat-number { font-size: 32px; }

  .section { padding: 60px 20px; }
  .section-full { padding: 60px 20px; }
  .section-lapis { padding: 60px 20px; }
  .section-tinted { padding: 60px 20px; }
  .section-divider { margin: 0 20px; }

  .intro-card { grid-template-columns: 1fr; gap: 32px; }
  .intro-card-image { height: 220px; }

  .stories-grid { grid-template-columns: 1fr; }

  .cta-inner { grid-template-columns: 1fr; gap: 40px; padding: 60px 20px; }
  .newsletter-form { flex-direction: column; }

  footer { padding: 48px 20px 32px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }

  .prose-section { padding: 60px 20px 80px; }
  .prose-section h1 { font-size: 32px; }

  .page-layout { flex-direction: column; padding: 0 20px 80px; gap: 0; }
  .toc-sidebar { display: none; }
  .page-content .prose-section { padding: 40px 0 32px; }
  .page-content .pull-quote-section { margin-left: -20px; margin-right: -20px; width: calc(100% + 40px); }

  .stories-index { padding: 60px 20px; }
  .stories-header h1 { font-size: 32px; }

  .contact-section { padding: 60px 20px 80px; }
  .contact-section h1 { font-size: 32px; }

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

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .stat-number { font-size: 28px; }
  .section h2 { font-size: 26px; }
  .post-grid { grid-template-columns: 1fr; }
}

/* ── Get Involved cards ── */
/* Shared by involved.html and volunteer.html. Page-specific overrides
   (e.g. scroll-margin-top on involved.html) remain inline on those pages. */
.involve-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}
.involve-card-full {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: flex-start;
  gap: 28px;
}
.involve-card-full .involve-card-content {
  flex: 1;
}
.involve-card {
  padding: 32px 36px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #EEF3FA;
}
.involve-card-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}
.involve-card-icon svg {
  width: 32px;
  height: 32px;
}
.involve-card-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.involve-card .involve-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0;
  letter-spacing: 0;
  line-height: 1.3;
}
.involve-card .involve-card-body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}
.involve-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--lapis);
  text-decoration: none;
  margin-top: 4px;
}
.involve-card-cta:hover { text-decoration: underline; }
[data-theme="dark"] .involve-card {
  background: rgba(255,255,255,0.06) !important;
}
[data-theme="dark"] .involve-card .involve-card-title {
  color: var(--text);
}
[data-theme="dark"] .involve-card .involve-card-body {
  color: var(--text-muted);
}
@media (max-width: 680px) {
  .involve-grid { grid-template-columns: 1fr; }
  .involve-card-full { grid-column: auto; flex-direction: column; }
}

/* ── Volunteer page closing ── */
.volunteer-closing {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.volunteer-closing h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0 0 12px 0;
  letter-spacing: 0;
  line-height: 1.3;
}
.volunteer-closing p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 12px 0;
}
.volunteer-closing a {
  color: var(--lapis);
  font-weight: 600;
  text-decoration: none;
}
.volunteer-closing a:hover { text-decoration: underline; }
[data-theme="dark"] .volunteer-closing h2 { color: var(--text); }
