:root {
  --yellow: #ffe100;
  --ink: #18252b;
  --deep: #0a3945;
  --teal: #237766;
  --coral: #e95c45;
  --paper: #fff9e8;
  --cream: #f7f2df;
  --white: #ffffff;
  --muted: #59656a;
  --line: rgba(24, 37, 43, 0.16);
  --shadow: 0 22px 55px rgba(24, 37, 43, 0.14);
  --page: 1180px;
  --gutter: 40px;
  --section-y: 88px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--page), calc(100% - var(--gutter)));
  margin: 0 auto;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 800;
  color: var(--deep);
}

.brand img {
  width: 70px;
  height: auto;
}

.brand span,
.site-nav a,
.button,
.contact-card strong {
  overflow-wrap: anywhere;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav a {
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--deep);
}

.site-nav a:hover {
  background: rgba(255, 225, 0, 0.32);
}

.site-nav .nav-donate {
  background: var(--ink);
  color: var(--white);
}

.site-nav .nav-donate:hover {
  background: var(--coral);
}

.hero {
  position: relative;
  min-height: 74vh;
  min-height: 74svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--deep);
  color: var(--white);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background-image: url("/assets/park.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(10, 57, 69, 0.94) 0%, rgba(10, 57, 69, 0.78) 48%, rgba(10, 57, 69, 0.38) 100%);
}

.hero-inner {
  width: min(var(--page), calc(100% - var(--gutter)));
  margin: 0 auto;
  padding: 86px 0 90px;
}

.hero-mark {
  width: 142px;
  height: auto;
  margin-bottom: 26px;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.28));
}

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

.hero .eyebrow {
  color: var(--yellow);
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: 4rem;
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 2.35rem;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.28rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.18rem;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
}

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

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

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

.button-secondary:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.button-dark {
  background: var(--ink);
  color: var(--white);
}

.button-dark:hover {
  background: var(--teal);
}

.button-light {
  background: var(--white);
  color: var(--deep);
}

.button-light:hover {
  border-color: var(--yellow);
  background: var(--paper);
}

.impact-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(var(--page), calc(100% - var(--gutter)));
  margin: -42px auto 0;
  position: relative;
  z-index: 2;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.impact-strip div {
  min-height: 112px;
  padding: 26px 28px;
  border-right: 1px solid var(--line);
}

.impact-strip div:last-child {
  border-right: 0;
}

.impact-strip strong,
.impact-strip span {
  display: block;
}

.impact-strip strong {
  color: var(--teal);
  font-size: 1.05rem;
}

.impact-strip span {
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  width: min(var(--page), calc(100% - var(--gutter)));
  margin: 0 auto;
  padding: var(--section-y) 0;
}

.section-light {
  padding-top: 104px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.48fr) minmax(0, 1.52fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 36px;
}

.section-heading h2 {
  max-width: 780px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.support-card,
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.support-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  padding: 0 28px 30px;
}

.support-card p {
  margin-bottom: 0;
  color: var(--muted);
  text-wrap: pretty;
}

.card-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  margin-top: -22px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 900;
}

.support-photo {
  min-height: 178px;
  aspect-ratio: 16 / 10;
  margin: 0 -28px 0;
  background-position: center;
  background-size: cover;
}

.support-photo-classroom {
  background-image: url("/assets/classroom.jpg");
}

.support-photo-art {
  background-image: url("/assets/art-day.jpg");
  background-position: center left;
}

.support-photo-playground {
  background-image: url("/assets/playground.jpg");
}

.section-accent {
  position: relative;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: var(--teal);
  isolation: isolate;
}

.section-accent::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background-image: url("/assets/art-day.jpg");
  background-position: center;
  background-size: cover;
}

.section-accent::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: rgba(10, 57, 69, 0.76);
}

.donate-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  width: min(var(--page), calc(100% - var(--gutter)));
  margin: 0 auto;
  padding: 62px 0;
  color: var(--white);
}

.donate-panel .eyebrow {
  color: var(--yellow);
}

.donate-panel h2 {
  max-width: 760px;
}

.section-contact {
  padding-bottom: 76px;
}

.founder-preview {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 48px;
  align-items: center;
}

.founder-preview-media,
.founder-hero-media {
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.founder-preview-media img,
.founder-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-preview-media {
  aspect-ratio: 4 / 5;
}

.founder-preview-media img,
.founder-hero-media img {
  object-position: center top;
}

.founder-preview-copy p:not(.eyebrow),
.story-copy p {
  color: var(--muted);
  font-size: 1.06rem;
  text-wrap: pretty;
}

.founder-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.76fr);
  gap: 54px;
  align-items: center;
  width: min(var(--page), calc(100% - var(--gutter)));
  margin: 0 auto;
  padding: 76px 0 var(--section-y);
}

.founder-hero .hero-copy {
  color: var(--muted);
}

.founder-hero-media {
  aspect-ratio: 4 / 5;
}

.founder-story {
  padding-top: 0;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 32px;
  align-items: start;
}

.story-note {
  display: grid;
  gap: 12px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.story-note strong {
  color: var(--deep);
  font-size: 1.08rem;
}

.story-note span {
  color: var(--muted);
  font-weight: 800;
}

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

.contact-grid-single {
  max-width: 880px;
}

.contact-card {
  display: grid;
  gap: 6px;
  min-height: 136px;
  align-content: center;
  padding: 26px;
}

.contact-card:hover {
  border-color: var(--teal);
  box-shadow: 0 16px 35px rgba(24, 37, 43, 0.1);
}

.contact-card span {
  color: var(--muted);
  font-weight: 800;
}

.contact-card strong {
  color: var(--deep);
  font-size: 1.15rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 22px;
  border-top: 1px solid var(--line);
  padding: 26px 20px 32px;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
  font-weight: 900;
  color: var(--deep);
}

.site-footer a {
  color: var(--teal);
  font-weight: 900;
}

.legal-page {
  width: min(920px, calc(100% - var(--gutter)));
  margin: 0 auto;
}

.legal-hero {
  padding: 72px 0 42px;
}

.legal-hero h1 {
  color: var(--deep);
}

.legal-hero .hero-copy {
  color: var(--muted);
}

.legal-content {
  padding: 0 0 84px;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 1.05rem;
}

.legal-content h2 {
  margin: 34px 0 12px;
  color: var(--deep);
  font-size: 1.38rem;
}

.legal-content a {
  color: var(--teal);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.not-found-copy {
  color: var(--muted);
}

.modal-open {
  overflow: hidden;
}

.handoff-modal[hidden] {
  display: none;
}

.handoff-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 22px;
}

.handoff-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 57, 69, 0.72);
}

.handoff-dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 30px;
}

.handoff-dialog img {
  width: 86px;
  height: auto;
  margin-bottom: 18px;
}

.handoff-dialog h2 {
  margin-bottom: 14px;
  font-size: 1.62rem;
}

.handoff-dialog p:not(.eyebrow) {
  color: var(--muted);
}

.handoff-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  color: var(--deep);
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
}

.handoff-close:hover {
  background: var(--yellow);
}

.handoff-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 820px) {
  .site-header {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .brand span {
    max-width: none;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
    white-space: normal;
  }

  .hero::before {
    background-position: center;
    background-size: cover;
  }

  .hero::after {
    background: rgba(10, 57, 69, 0.76);
  }

  .hero-inner {
    padding: 66px 0 96px;
  }

  h1 {
    max-width: 620px;
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  .impact-strip,
  .support-grid,
  .founder-preview,
  .founder-hero,
  .section-heading,
  .donate-panel,
  .contact-grid,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .impact-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .impact-strip div:last-child {
    border-bottom: 0;
  }

  .donate-panel {
    justify-items: start;
  }

  .founder-hero {
    padding-top: 56px;
  }

  .founder-preview-media,
  .founder-hero-media {
    max-width: 520px;
    justify-self: center;
    width: 100%;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 28px;
    --section-y: 66px;
  }

  .site-header,
  .hero-inner,
  .impact-strip,
  .section,
  .donate-panel,
  .founder-hero {
    width: min(100% - var(--gutter), var(--page));
  }

  .site-header {
    gap: 14px;
  }

  .brand {
    gap: 8px;
    font-size: 0.92rem;
  }

  .brand img {
    width: 54px;
  }

  .site-nav a {
    padding: 8px 9px;
    font-size: 0.86rem;
  }

  .hero {
    min-height: 70vh;
    min-height: 70svh;
  }

  .hero-inner {
    padding-top: 50px;
  }

  h1 {
    font-size: 2.42rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .button {
    width: 100%;
  }

  .handoff-dialog {
    padding: 26px;
  }

  .handoff-actions {
    display: grid;
  }

  .section-light {
    padding-top: 88px;
  }

  .support-card {
    padding: 22px;
  }

  .support-photo {
    margin: -22px -22px 0;
  }

  .card-marker {
    margin-bottom: 22px;
  }

  .contact-card,
  .story-note {
    padding: 22px;
  }

  .founder-preview {
    gap: 30px;
  }
}
