:root {
  --ink: #102b2a;
  --muted: #55706b;
  --teal: #00838d;
  --teal-dark: #063f3d;
  --yellow: #ffcc23;
  --cream: #fff8ea;
  --green-soft: #d9efd8;
  --violet: #5f2d83;
  --line: rgba(16, 43, 42, 0.12);
  --shadow: 0 22px 50px rgba(16, 43, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  min-width: 0;
}

.brand img {
  height: 3.1rem;
  object-fit: contain;
  width: 3.1rem;
}

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

.brand strong {
  color: var(--teal-dark);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand small {
  color: #10745b;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  margin-top: 0.3rem;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.93rem;
  font-weight: 800;
}

.main-nav a:hover {
  color: var(--teal);
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 0.7rem;
}

.design-toggle {
  background: #f4f7f3;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(16, 43, 42, 0.08);
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0.25rem;
}

.design-toggle button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #55706b;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  min-height: 2.25rem;
  padding: 0 0.9rem;
}

.design-toggle button.is-active {
  background: var(--yellow);
  color: var(--ink);
}

.button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.94rem;
  font-weight: 900;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.85rem 1.35rem;
  transition:
    transform 160ms ease,
    background-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--yellow);
  color: var(--ink);
}

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

body[data-design="site2"] .button-primary {
  background: var(--violet);
  color: white;
}

body[data-design="site2"] .button-secondary {
  background: var(--teal-dark);
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 0.8fr);
  min-height: 78svh;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 6vw, 5rem);
  width: 100%;
}

.hero-site1 {
  background: linear-gradient(115deg, #073c3b 0%, #0b615f 58%, #d9efd8 58%);
  color: white;
}

.hero-site2 {
  background: linear-gradient(115deg, #f3c42d 0%, #f3c42d 62%, #ef7559 62%);
  color: #4e3b00;
}

body[data-design="site1"] .hero-site2,
body[data-design="site2"] .hero-site1 {
  display: none;
}

.hero-copy {
  max-width: 42rem;
  min-width: 0;
}

.eyebrow {
  align-items: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 900;
  gap: 0.4rem;
  letter-spacing: 0.18em;
  margin: 0;
  padding: 0.5rem 0.8rem;
  text-transform: uppercase;
}

.hero-site2 .eyebrow,
.section .eyebrow,
.give-band .eyebrow {
  background: white;
  border-color: var(--line);
  color: #7c6212;
}

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

h1 {
  font-size: clamp(3.2rem, 9vw, 7rem);
  letter-spacing: -0.06em;
  line-height: 0.92;
  margin-bottom: 1.2rem;
  margin-top: 1.6rem;
  max-width: 11ch;
}

.hero-line {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.55;
  margin-bottom: 1.8rem;
  max-width: 28rem;
  opacity: 0.82;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-media {
  background: white;
  border: 10px solid white;
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  margin: 0;
  overflow: hidden;
  transform: rotate(2deg);
  width: 100%;
}

.hero-media img {
  aspect-ratio: 1.12;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero-media.warm {
  transform: rotate(-3deg);
}

.impact-strip {
  background: var(--green-soft);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
}

.impact-strip div {
  background: rgba(255, 255, 255, 0.18);
  padding: 2rem clamp(1.25rem, 5vw, 4rem);
}

.impact-strip strong {
  color: var(--teal-dark);
  display: block;
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.impact-strip span {
  color: var(--muted);
  display: block;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-top: 0.6rem;
  text-transform: uppercase;
}

.section {
  padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 6vw, 5rem);
}

.split {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
}

.section h2,
.give-band h2 {
  color: var(--teal-dark);
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.05em;
  line-height: 1;
  margin: 1rem 0 0;
  max-width: 12ch;
}

.detail-grid,
.school-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-grid article,
.school-grid article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  box-shadow: 0 16px 34px rgba(16, 43, 42, 0.06);
  overflow: hidden;
}

.detail-grid article {
  padding: 1.35rem;
}

.detail-grid h3,
.school-grid h3 {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.25;
  margin-bottom: 0.55rem;
}

.detail-grid p,
.school-grid p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.section-heading {
  margin-bottom: 2rem;
}

.school-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.school-grid img {
  aspect-ratio: 1.42;
  object-fit: cover;
  width: 100%;
}

.school-grid h3,
.school-grid p {
  padding-left: 1rem;
  padding-right: 1rem;
}

.school-grid h3 {
  margin-top: 1rem;
}

.school-grid p {
  padding-bottom: 1.2rem;
}

.give-band {
  align-items: center;
  background: var(--teal-dark);
  color: white;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 6vw, 5rem);
}

.give-band h2 {
  color: white;
  max-width: 16ch;
}

.site-footer {
  align-items: center;
  background: #062f2e;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.85rem;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 1.2rem clamp(1.25rem, 6vw, 5rem);
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .brand span,
  .main-nav,
  .header-donate {
    display: none;
  }

  .header-actions {
    width: 100%;
  }

  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    max-width: 32rem;
    transform: none;
  }

  .impact-strip,
  .detail-grid,
  .school-grid {
    grid-template-columns: 1fr;
  }

  .give-band {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding-inline: 1rem;
  }

  .hero {
    padding: 2.5rem 1.25rem;
  }

  h1 {
    font-size: 2.75rem;
    max-width: 10.5ch;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    max-width: 22rem;
    width: 100%;
  }

  .hero-line {
    max-width: 20rem;
  }

  .section,
  .give-band {
    padding-inline: 1.25rem;
  }
}
