:root {
  color-scheme: light;
  --primary: #5a6b3a;
  --secondary: #c2a46a;
  --accent: #8b9b5a;
  --dark: #141a12;
  --light: #f4f1e8;
  --text: #1f241b;
  --muted: #6c6a5f;
  --panel: #fdfaf3;
  --border: #ded6c7;
  --shadow: 0 18px 40px rgba(20, 26, 18, 0.18);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Source Sans 3", sans-serif;
  color: var(--text);
  background: var(--light);
  line-height: 1.7;
  font-size: 1.02rem;
}

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

h1,
h2,
h3,
.counter {
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.4px;
}

.hero {
  background: radial-gradient(circle at top, #2a321f 0%, #12160f 65%);
  color: #fff;
  padding: 32px 7vw 80px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.logo {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 0.9rem;
}

.nav-links a,
.nav-dropdown summary {
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.nav-links a:hover,
.nav-dropdown summary:hover,
.nav-dropdown[open] summary {
  opacity: 1;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary::after {
  content: "▾";
  font-size: 0.7rem;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: rgba(20, 26, 18, 0.98);
  border: 1px solid rgba(194, 164, 106, 0.4);
  border-radius: 14px;
  padding: 12px;
  min-width: 180px;
  display: grid;
  gap: 8px;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
  z-index: 10;
}

.nav-dropdown-menu a {
  padding: 6px 8px;
  border-radius: 8px;
  opacity: 0.85;
}

.nav-dropdown-menu a:hover {
  opacity: 1;
  background: rgba(194, 164, 106, 0.15);
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.givewell-banner {
  margin: 0 0 40px;
  padding: 24px 28px;
  border-radius: 24px;
  background: rgba(244, 241, 232, 0.12);
  border: 1px solid rgba(194, 164, 106, 0.3);
  box-shadow: 0 18px 40px rgba(18, 22, 15, 0.4);
  display: grid;
  gap: 20px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
}

.givewell-banner h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin-bottom: 8px;
}

.givewell-banner p {
  color: rgba(255, 255, 255, 0.82);
}

.hero-text h1 {
  font-family: "Oswald", sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.7rem);
  margin: 16px 0 20px;
  line-height: 1.15;
  letter-spacing: 0.5px;
}

.hero-text p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
}

.eyebrow {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.75rem;
  color: var(--secondary);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 24px 0 32px;
}

.cta-note {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
}

.cta-link {
  color: var(--secondary);
  font-weight: 600;
}

.quick-steps {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-bottom: 24px;
}

.quick-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(244, 241, 232, 0.1);
  border: 1px solid rgba(194, 164, 106, 0.25);
  font-size: 0.9rem;
  font-weight: 600;
}

.quick-step span {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(194, 164, 106, 0.2);
  color: var(--secondary);
  font-family: "Oswald", sans-serif;
}

.btn {
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn.primary {
  background: linear-gradient(120deg, var(--primary), #7b8c4a);
  color: #fff;
}

.btn.secondary {
  background: rgba(194, 164, 106, 0.15);
  color: var(--primary);
  border: 1px solid rgba(194, 164, 106, 0.55);
}

.hero .btn.secondary {
  color: #fff;
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.stat-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.stat {
  font-family: "Oswald", sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.hero-card {
  background: rgba(244, 241, 232, 0.13);
  border: 1px solid rgba(194, 164, 106, 0.35);
  border-radius: 24px;
  padding: 28px;
  backdrop-filter: blur(6px);
}

.hero-card ul {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.section {
  padding: 80px 7vw;
}

.section-alt {
  background: #ebe5d8;
}

.section-header {
  max-width: 720px;
  margin-bottom: 40px;
}

.section-header h2 {
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  margin-bottom: 12px;
  letter-spacing: 0.4px;
}

.section-header p {
  color: var(--muted);
  font-size: 1.05rem;
}

.section > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.givewell-cta {
  background: var(--panel);
  border-radius: 28px;
  padding: 32px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.givewell-actions {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.charity-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.how-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.how-card {
  background: var(--panel);
  padding: 24px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.how-step {
  font-family: "Oswald", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--secondary);
}

.charity-card {
  background: var(--panel);
  padding: 24px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.pitch-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.pitch-card {
  background: var(--panel);
  padding: 24px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.impact-layout {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: center;
}

.impact-highlights {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.impact-number {
  font-family: "Oswald", sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.impact-graphic svg {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.pledge-layout {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.pledge-form {
  background: var(--panel);
  padding: 28px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.pledge-form label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

.pledge-form input,
.pledge-form textarea,
.pledge-form select {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  background: #fffefb;
}

.pledge-form select {
  background: #fffefb;
}

.amount-choice {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 14px;
  background: #f7f9fc;
}

.amount-choice legend {
  font-weight: 600;
  color: var(--muted);
  padding: 0 8px;
}

.amount-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text);
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: #fff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease,
    transform 0.2s ease;
}

.amount-option input {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
}

.amount-option:focus-within {
  border-color: rgba(124, 92, 255, 0.6);
  box-shadow: 0 10px 20px rgba(124, 92, 255, 0.18);
  transform: translateY(-1px);
}

.amount-option:has(input:checked) {
  border-color: rgba(124, 92, 255, 0.8);
  box-shadow: 0 12px 24px rgba(124, 92, 255, 0.22);
}

.amount-custom {
  display: grid;
  gap: 10px;
}

.amount-custom input {
  width: 100%;
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
}

.pledge-board {
  display: grid;
  gap: 20px;
}

.campaign-progress {
  background: var(--panel);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.progress-goal {
  color: var(--muted);
  font-size: 0.9rem;
}

.progress-percent {
  font-family: "Oswald", sans-serif;
  font-size: 1.4rem;
  color: var(--primary);
}

.progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e9e2d3;
  overflow: hidden;
}

.progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(120deg, var(--primary), #8b9b5a);
  transition: width 0.6s ease;
}

.progress-metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.metric-value {
  font-family: "Oswald", sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
}

.metric-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.7rem;
  color: var(--muted);
}

.pledge-list {
  background: var(--panel);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  max-height: 420px;
  overflow-y: auto;
}

.pledge-tally {
  background: var(--panel);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.pledge-tally h3 {
  font-size: 1.1rem;
}

.service-tally {
  display: grid;
  gap: 12px;
}

.service-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.service-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.service-row span:last-child {
  color: var(--muted);
  font-weight: 500;
  text-align: right;
}

.pledge-card {
  border-left: 4px solid var(--primary);
  padding-left: 16px;
  display: grid;
  gap: 6px;
}

.pledge-card span {
  display: block;
  font-weight: 600;
}

.pledge-card small {
  color: var(--muted);
}

.empty-state {
  color: var(--muted);
  font-size: 0.95rem;
}

.media-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.share-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.share-card {
  background: var(--panel);
  padding: 24px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn.share {
  border: 1px solid var(--border);
  background: #f8f3e8;
  color: var(--text);
}

.btn.share.facebook {
  background: rgba(90, 107, 58, 0.12);
  border-color: rgba(90, 107, 58, 0.35);
}

.btn.share.twitter {
  background: rgba(194, 164, 106, 0.16);
  border-color: rgba(194, 164, 106, 0.35);
}

.btn.share.text {
  background: rgba(139, 155, 90, 0.12);
  border-color: rgba(139, 155, 90, 0.35);
}

.btn.share.instagram {
  background: rgba(90, 107, 58, 0.14);
  border-color: rgba(90, 107, 58, 0.35);
}

.share-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.share-copy {
  display: grid;
  gap: 12px;
}

.share-copy textarea {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  font-size: 0.95rem;
  font-family: inherit;
  min-height: 150px;
  resize: vertical;
  background: #fffefb;
}

.media-card {
  background: var(--panel);
  padding: 24px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 16px;
  overflow: hidden;
  margin-top: 16px;
}

.video iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 0;
}

.mini-graphic {
  margin-top: 16px;
}

.mini-graphic svg {
  width: 100%;
}

blockquote {
  font-size: 1.1rem;
  font-style: italic;
  margin: 16px 0;
}

.hashtags {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer {
  padding: 40px 7vw;
  background: var(--dark);
  color: #fff;
  display: grid;
  gap: 16px;
  text-align: center;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #fdfaf3;
  padding: 16px 20px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .logo {
    width: 100%;
    text-align: center;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-menu {
    position: static;
    margin-top: 8px;
    width: 100%;
    text-align: center;
  }

  .stat-bar {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .givewell-banner {
    grid-template-columns: 1fr;
  }

  .givewell-cta {
    grid-template-columns: 1fr;
  }

  .givewell-actions {
    width: 100%;
  }

  .quick-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 24px 6vw 64px;
  }

  .logo {
    font-size: 1.05rem;
  }

  .nav-links {
    gap: 12px;
    font-size: 0.8rem;
  }

  .hero-text h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .section {
    padding: 64px 6vw;
  }

  .section-header h2 {
    font-size: clamp(1.6rem, 7vw, 2.1rem);
  }

  .cta-group,
  .givewell-actions,
  .share-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-group .btn,
  .givewell-actions .btn,
  .share-buttons .btn,
  .charity-card .btn,
  .media-card .btn {
    width: 100%;
    justify-content: center;
  }

  .btn {
    padding: 14px 18px;
    font-size: 0.78rem;
  }

  .progress-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-card,
  .givewell-cta,
  .charity-card,
  .how-card,
  .pitch-card,
  .pledge-form,
  .campaign-progress,
  .pledge-list,
  .pledge-tally,
  .share-card,
  .media-card {
    border-radius: 18px;
  }

  .pledge-list {
    max-height: 360px;
  }
}
