:root {
  color-scheme: light;
  --purple: #5f2dbd;
  --plum: #32164f;
  --violet: #8c52ff;
  --ink: #191522;
  --muted: #665f73;
  --paper: #fffdf8;
  --mist: #f6f0fb;
  --blush: #fff4ee;
  --mint: #c6f1df;
  --gold: #f3c65b;
  --white: #ffffff;
  --line: rgba(50, 22, 79, 0.14);
  --shadow: 0 20px 55px rgba(30, 16, 55, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(25, 21, 34, 0.82), rgba(25, 21, 34, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: clamp(12px, 3vw, 30px);
  font-size: 0.95rem;
}

nav a {
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: linear-gradient(135deg, var(--plum), #6c3db5);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    radial-gradient(circle at 24% 72%, rgba(243, 198, 91, 0.18), rgba(243, 198, 91, 0) 34%),
    linear-gradient(90deg, rgba(31, 16, 52, 0.78) 0%, rgba(50, 22, 79, 0.55) 50%, rgba(50, 22, 79, 0.18) 100%),
    linear-gradient(0deg, rgba(31, 16, 52, 0.64) 0%, rgba(31, 16, 52, 0) 45%);
}

.hero-content {
  position: relative;
  width: min(820px, calc(100% - 36px));
  margin: 0 auto;
  padding: 138px 0 84px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(3rem, 9vw, 6.8rem);
  line-height: 0.95;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.03;
}

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

h4 {
  margin: 0 0 10px;
  color: var(--plum);
  font-size: 1.05rem;
}

.hero-copy {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.6;
}

.hero-actions,
.input-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 18px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: var(--plum);
  background: var(--gold);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
}

.section-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 84px 0;
}

.band {
  background: linear-gradient(135deg, var(--blush) 0%, var(--mist) 100%);
}

.intro-grid,
.split,
.pledge-grid,
.join-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.intro p:last-child,
.copy-stack,
.join p {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.steps,
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step-card,
.support-grid article,
.pledge-form,
.donation-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.step-card,
.support-grid article,
.donation-card {
  padding: 28px;
}

.step-card span {
  display: inline-block;
  margin-bottom: 48px;
  color: var(--violet);
  font-weight: 900;
}

.step-card p,
.support-grid p {
  color: var(--muted);
}

.resources-band {
  background: linear-gradient(180deg, var(--paper) 0%, var(--blush) 52%, var(--mist) 100%);
}

.resources-intro {
  max-width: 860px;
  margin-bottom: 46px;
}

.resources-intro p,
.resource-heading p,
.resource-card p,
.personal-note p {
  color: var(--muted);
}

.resources-intro > p {
  max-width: 790px;
  font-size: 1.08rem;
}

.resource-group {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: start;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.resource-heading {
  position: sticky;
  top: 84px;
}

.resource-heading h3 {
  color: var(--plum);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.resource-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.resource-grid.one-up {
  grid-template-columns: minmax(0, 1fr);
}

.resource-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 100%;
  border: 1px solid rgba(50, 22, 79, 0.12);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 38px rgba(30, 16, 55, 0.09);
}

.resource-card p {
  margin: 0;
}

.resource-card a {
  align-self: end;
  color: var(--purple);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.personal-note {
  max-width: 840px;
  margin-top: 34px;
  border-left: 5px solid var(--gold);
  padding: 26px 30px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 38px rgba(30, 16, 55, 0.08);
}

.personal-note h3 {
  color: var(--plum);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.story-note {
  border-left-color: var(--purple);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button.quiet {
  border-color: var(--line);
  color: var(--plum);
  background: var(--white);
}

.action-card {
  align-content: start;
}

.action-card .button-row {
  align-self: end;
}

.crisis-note {
  margin-top: 28px;
  border-left: 5px solid var(--purple);
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  box-shadow: 0 14px 38px rgba(30, 16, 55, 0.08);
}

.crisis-note a {
  color: var(--purple);
  font-weight: 800;
}

.pledge-band {
  background: linear-gradient(135deg, #432067, #6b3e96 56%, #226064);
  color: var(--white);
}

.pledge-band .section-inner {
  padding: 76px 0;
}

.pledge-band p {
  color: rgba(255, 255, 255, 0.78);
}

.pledge-form {
  padding: 26px;
  color: var(--ink);
}

label {
  display: block;
  margin-bottom: 10px;
  font-weight: 800;
}

input {
  flex: 1 1 220px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  color: var(--ink);
  font: inherit;
}

.role-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  border: 0;
  padding: 0;
}

.role-picker legend {
  flex: 0 0 100%;
  margin-bottom: 2px;
  font-weight: 800;
}

.role-picker label {
  margin: 0;
}

.role-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.role-picker span,
.role-summary span,
.pledge-list small {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.role-picker span {
  min-height: 36px;
  border: 1px solid var(--line);
  padding: 0 12px;
  color: var(--plum);
  background: var(--white);
  cursor: pointer;
}

.role-picker input:checked + span {
  border-color: rgba(95, 45, 189, 0.42);
  color: var(--white);
  background: var(--purple);
}

.pledge-count {
  margin: 18px 0;
  color: var(--muted);
}

.pledge-count strong {
  color: var(--purple);
  font-size: 1.7rem;
}

.role-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.role-summary span {
  min-height: 30px;
  padding: 0 10px;
  color: var(--muted);
  background: var(--mist);
}

.pledge-list {
  display: grid;
  gap: 8px;
  max-height: 170px;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.pledge-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 6px;
  padding: 10px 12px;
  background: var(--mist);
  font-weight: 700;
}

.pledge-list small {
  flex: 0 0 auto;
  padding: 4px 8px;
  color: var(--purple);
  background: var(--white);
}

.copy-stack p {
  margin-bottom: 18px;
}

.status-note {
  border-left: 5px solid var(--gold);
  padding: 16px 18px;
  background: var(--mist);
  color: var(--ink);
}

.donation-band {
  background: linear-gradient(180deg, var(--mist) 0%, var(--paper) 100%);
}

.donation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.donation-card {
  display: grid;
  align-content: start;
  gap: 16px;
}

.donation-card p {
  margin: 0;
  color: var(--muted);
}

.donation-card .button {
  justify-self: start;
}

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

.featured-donation {
  border-color: rgba(95, 45, 189, 0.32);
  background: linear-gradient(180deg, #ffffff 0%, #f8f3ff 100%);
}

.support {
  padding-top: 0;
}

.join {
  background: linear-gradient(135deg, var(--mint) 0%, #fff1d7 100%);
}

.join-inner {
  padding: 64px 0;
}

.join .button {
  justify-self: end;
}

footer {
  padding: 28px 18px;
  color: rgba(255, 255, 255, 0.78);
  background: var(--ink);
  text-align: center;
}

footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  nav {
    display: none;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-content {
    padding-bottom: 50px;
  }

  .intro-grid,
  .split,
  .pledge-grid,
  .join-inner,
  .steps,
  .support-grid,
  .donation-grid,
  .resource-group,
  .resource-grid,
  .resource-grid.two-up {
    grid-template-columns: 1fr;
  }

  .resource-heading {
    position: static;
  }

  .section-inner {
    padding: 58px 0;
  }

  .step-card span {
    margin-bottom: 24px;
  }

  .button,
  .input-row input {
    width: 100%;
  }

  .join .button {
    justify-self: stretch;
  }
}
