:root {
  --purple: #5f1688;
  --purple-dark: #34104d;
  --red: #dc1f3c;
  --rose: #f7e9ef;
  --ink: #211b26;
  --muted: #615766;
  --line: #e8dde9;
  --paper: #fffafc;
  --white: #ffffff;
  --gold: #f2b84b;
  --shadow: 0 20px 60px rgba(52, 16, 77, 0.14);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--purple);
  color: var(--white);
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 250, 252, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(95, 22, 136, 0.12);
}

.nav-shell,
.section-inner,
.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.nav-shell {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  background: var(--white);
  border-radius: 50%;
  border: 1px solid var(--line);
}

.brand strong {
  display: block;
  font-size: 1rem;
  line-height: 1.1;
  color: var(--purple-dark);
}

.brand .brand-text {
  display: block;
}

.brand .brand-id {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--purple);
  color: var(--white);
  border-radius: 6px;
  font-size: 1.35rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 0.9rem;
}

.main-nav a {
  padding: 10px 12px;
  border-bottom: 3px solid transparent;
  color: var(--purple-dark);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

.nav-action,
.button,
.button-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 6px;
  font-weight: 800;
  line-height: 1.1;
}

.nav-action,
.button {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 10px 25px rgba(220, 31, 60, 0.2);
}

.button-light {
  color: var(--purple-dark);
  background: var(--white);
  border: 1px solid rgba(95, 22, 136, 0.18);
}

.hero {
  min-height: min(690px, calc(100vh - 150px));
  display: grid;
  align-items: end;
  position: relative;
  color: var(--white);
  overflow: hidden;
  background: var(--purple-dark);
}

.hero.compact {
  min-height: 420px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(35, 8, 51, 0.88) 0%, rgba(52, 16, 77, 0.66) 43%, rgba(52, 16, 77, 0.2) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 74px 0 64px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  color: inherit;
}

h1 {
  max-width: 820px;
  font-family: Merriweather, Georgia, serif;
  font-size: clamp(2.7rem, 7vw, 6.4rem);
  letter-spacing: 0;
}

.hero p {
  max-width: 720px;
  margin: 22px 0 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.impact-strip {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.impact-grid {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.impact-item {
  padding: 26px 24px;
  border-left: 1px solid var(--line);
}

.impact-item:last-child {
  border-right: 1px solid var(--line);
}

.impact-item strong {
  display: block;
  color: var(--purple);
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1;
}

.impact-item span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: 90px 0;
}

.section.alt {
  background: var(--white);
}

.section.deep {
  background: var(--purple-dark);
  color: var(--white);
}

.section-title {
  max-width: 850px;
  margin-bottom: 38px;
}

.section-title h2 {
  font-family: Merriweather, Georgia, serif;
  font-size: clamp(2rem, 4vw, 4rem);
  color: var(--purple-dark);
}

.deep .section-title h2,
.deep h2,
.deep h3 {
  color: var(--white);
}

.section-title p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.deep .section-title p,
.deep p,
.deep li {
  color: rgba(255, 255, 255, 0.82);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: 52px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(340px, 0.92fr) minmax(0, 1.08fr);
}

.lead {
  font-size: 1.16rem;
  color: var(--muted);
}

.text-block p:first-child {
  margin-top: 0;
}

.media-frame {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--rose);
}

.media-frame img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.caption-band {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 18px 22px;
  background: rgba(52, 16, 77, 0.84);
  color: var(--white);
  font-weight: 800;
}

.program-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.program-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  align-items: start;
  padding: 30px;
  background: var(--white);
}

.program-row h3 {
  color: var(--purple);
  font-size: 1.35rem;
}

.program-row p {
  margin: 0;
  color: var(--muted);
}

.feature-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 520px;
  background: var(--purple-dark);
  color: var(--white);
}

.feature-copy {
  padding: clamp(40px, 7vw, 90px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-copy h2 {
  font-family: Merriweather, Georgia, serif;
  font-size: clamp(2rem, 4vw, 4.5rem);
}

.feature-copy p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.82);
}

.feature-image {
  min-height: 420px;
  background-image: var(--feature-image);
  background-size: cover;
  background-position: center;
}

.timeline {
  display: grid;
  gap: 26px;
  border-left: 3px solid var(--red);
  padding-left: 28px;
}

.timeline-item h3 {
  color: var(--purple);
  font-size: 1.35rem;
}

.timeline-item p {
  margin: 8px 0 0;
  color: var(--muted);
}

.plain-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  padding-left: 22px;
  position: relative;
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.gallery-grid figure {
  margin: 0;
  min-height: 260px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--rose);
}

.gallery-grid figure:nth-child(1),
.gallery-grid figure:nth-child(4) {
  grid-column: span 7;
}

.gallery-grid figure:nth-child(2),
.gallery-grid figure:nth-child(3) {
  grid-column: span 5;
}

.gallery-grid figure:nth-child(n + 5) {
  grid-column: span 4;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.gallery-grid figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 14px 16px;
  background: linear-gradient(transparent, rgba(35, 8, 51, 0.88));
  color: var(--white);
  font-weight: 800;
}

.team-list,
.contact-list,
.account-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.team-list li,
.contact-list li,
.account-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.team-list strong,
.contact-list strong,
.account-list strong {
  color: var(--purple-dark);
}

.team-list span,
.contact-list span,
.account-list span {
  color: var(--muted);
  text-align: right;
}

.donation-panel {
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.donation-panel h3 {
  color: var(--purple);
  font-size: 1.6rem;
}

.quote {
  margin: 0;
  padding: 34px;
  border-left: 5px solid var(--red);
  background: rgba(255, 255, 255, 0.06);
}

.quote p {
  margin: 0;
  font-size: 1.25rem;
}

.quote cite {
  display: block;
  margin-top: 16px;
  color: var(--gold);
  font-style: normal;
  font-weight: 900;
}

.cta {
  background: linear-gradient(120deg, var(--purple-dark), var(--purple));
  color: var(--white);
  padding: 70px 0;
}

.cta .section-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cta h2 {
  font-family: Merriweather, Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.cta p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
}

.site-footer {
  background: #180b22;
  color: rgba(255, 255, 255, 0.78);
  padding: 58px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 36px;
}

.site-footer h3,
.site-footer h4 {
  color: var(--white);
  margin: 0 0 14px;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-bottom {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.9rem;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    position: absolute;
    top: 78px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    border-bottom: 1px solid var(--line);
  }

  .nav-action {
    display: none;
  }

  .impact-grid,
  .split,
  .split.reverse,
  .feature-band,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .program-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feature-image {
    min-height: 360px;
    order: -1;
  }

  .cta .section-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .nav-shell,
  .section-inner,
  .footer-inner,
  .hero-content,
  .impact-grid {
    width: min(100% - 28px, var(--max));
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 48px;
    height: 48px;
  }

  .brand strong {
    font-size: 0.88rem;
  }

  .hero,
  .hero.compact {
    min-height: 560px;
  }

  .section {
    padding: 62px 0;
  }

  .impact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .impact-item {
    padding: 20px 14px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid figure,
  .gallery-grid figure:nth-child(n) {
    grid-column: auto;
  }

  .team-list li,
  .contact-list li,
  .account-list li {
    display: block;
  }

  .team-list span,
  .contact-list span,
  .account-list span {
    display: block;
    text-align: left;
    margin-top: 3px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
