:root {
  --ink: #141414;
  --muted: #68615d;
  --paper: #fffaf2;
  --surface: #ffffff;
  --line: #e8ded3;
  --teal: #0f766e;
  --teal-dark: #0b5752;
  --coral: #e75f4f;
  --plum: #6f3b73;
  --gold: #f4b942;
  --shadow: 0 22px 60px rgba(38, 25, 14, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 250, 242, 0.9);
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 170px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: white;
  background: var(--plum);
  border-radius: 50%;
  font-size: 28px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  color: #3d3936;
  font-weight: 700;
  font-size: 14px;
}

.icon-button,
.close-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--teal);
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  align-items: end;
  gap: clamp(22px, 5vw, 58px);
  padding: 132px clamp(18px, 5vw, 72px) 48px;
  overflow: hidden;
}

.hero > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(19, 14, 13, 0.76) 0%, rgba(19, 14, 13, 0.5) 36%, rgba(19, 14, 13, 0.08) 78%),
    linear-gradient(0deg, rgba(20, 20, 20, 0.42), rgba(20, 20, 20, 0.06));
}

.hero-content {
  max-width: 760px;
  color: white;
  padding-bottom: 42px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd175;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.hero p {
  max-width: 630px;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.5;
}

.hero-actions,
menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 0;
  margin: 0;
}

.primary-button,
.secondary-button,
.tier-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 8px;
  border: 0;
  font-weight: 900;
  cursor: pointer;
}

.primary-button {
  color: white;
  background: var(--teal);
}

.primary-button:hover,
.tier-card button:hover {
  background: var(--teal-dark);
}

.secondary-button {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
}

.full {
  width: 100%;
}

.campaign-panel {
  width: 100%;
  padding: 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel-header,
.progress-meta,
.calc-tool label,
.chapter-picker label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.panel-header {
  font-size: 15px;
  font-weight: 800;
}

.panel-header strong {
  font-size: 30px;
}

.progress-shell {
  height: 12px;
  overflow: hidden;
  margin: 18px 0 8px;
  background: #eaded0;
  border-radius: 999px;
}

.progress-shell span {
  display: block;
  width: 57%;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--coral));
}

.progress-meta,
.custom-amount span,
.calc-tool label,
.chapter-picker label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.quick-donate {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 20px 0 16px;
}

.quick-donate button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.quick-donate .selected {
  color: white;
  border-color: var(--plum);
  background: var(--plum);
}

.custom-amount {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.custom-amount input,
.donate-form input,
.chapter-picker select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: white;
  color: var(--ink);
}

.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.stat-band div {
  min-height: 144px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  background: #fff5e5;
}

.stat-band strong {
  font-size: clamp(34px, 5vw, 58px);
  color: var(--plum);
}

.stat-band span {
  color: var(--muted);
  font-weight: 800;
}

.donation-workbench,
.sponsor-section,
.activity-section,
.calculator,
.chapter-band {
  padding: clamp(48px, 7vw, 92px) clamp(18px, 5vw, 72px);
}

.section-copy,
.calc-copy {
  max-width: 760px;
}

.section-copy p,
.calc-copy p,
.impact-card p,
.tier-card p {
  color: var(--muted);
  line-height: 1.6;
}

.impact-grid,
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.impact-card,
.tier-card {
  min-height: 250px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.impact-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  color: white;
  background: var(--teal);
  border-radius: 50%;
}

.chapter-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  align-items: end;
  gap: 28px;
  color: white;
  background: #263c3a;
}

.chapter-band .eyebrow,
.chapter-band p {
  color: #ffd175;
}

.chapter-band h2 {
  max-width: 720px;
  margin-bottom: 0;
}

.chapter-picker {
  display: grid;
  gap: 9px;
}

.chapter-picker label {
  color: #f7dfbe;
}

.calculator {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  background: #f6ecdf;
}

.calc-tool {
  padding: clamp(22px, 4vw, 38px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.calc-tool input[type="range"] {
  width: 100%;
  accent-color: var(--coral);
}

.impact-result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.impact-result strong {
  font-size: clamp(48px, 7vw, 88px);
  color: var(--coral);
  line-height: 0.95;
}

.impact-result span {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.tier-card {
  display: grid;
  align-content: start;
  gap: 14px;
}

.tier-card span {
  color: var(--plum);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
}

.tier-card strong {
  font-size: 44px;
}

.tier-card button {
  width: 100%;
  margin-top: auto;
  color: white;
  background: var(--teal);
}

.tier-card.featured {
  border-color: var(--gold);
  box-shadow: 0 18px 48px rgba(125, 74, 17, 0.15);
}

.donor-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.donor-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 76px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.donor-item strong,
.donor-item span {
  display: block;
}

.donor-item span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.donor-item em {
  color: var(--teal);
  font-style: normal;
  font-weight: 900;
}

dialog {
  width: min(520px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(20, 20, 20, 0.46);
  backdrop-filter: blur(5px);
}

.donate-form {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 28px;
  background: var(--paper);
}

.donate-form h2 {
  font-size: 34px;
  margin-bottom: 0;
}

.donate-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.summary-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.checkbox-row {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}

.checkbox-row input {
  width: auto;
  min-height: auto;
  margin-top: 3px;
  accent-color: var(--teal);
}

.close-button {
  position: absolute;
  top: 16px;
  right: 16px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: min(420px, calc(100vw - 36px));
  padding: 14px 16px;
  color: white;
  background: var(--teal-dark);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

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

svg {
  width: 19px;
  height: 19px;
  stroke-width: 2.4;
}

@media (max-width: 930px) {
  .topbar nav {
    display: none;
  }

  .hero,
  .calculator,
  .chapter-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 112px;
  }

  .hero-content {
    padding-bottom: 0;
  }

  .campaign-panel {
    max-width: 520px;
  }

  .impact-grid,
  .tier-grid,
  .donor-list {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .hero {
    padding-left: 14px;
    padding-right: 14px;
  }

  .quick-donate {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-band {
    grid-template-columns: 1fr;
  }

  .panel-header,
  .impact-result,
  .summary-strip {
    grid-template-columns: 1fr;
    display: grid;
    justify-items: start;
  }

  h1 {
    font-size: 42px;
  }

  .hero-actions,
  menu {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }
}
