:root {
  --bg: #f6f4ee;
  --bg-deep: #11323d;
  --surface: rgba(255, 251, 245, 0.82);
  --surface-strong: #fffaf3;
  --surface-dark: #153845;
  --ink: #142127;
  --muted: #5a6a70;
  --line: rgba(22, 24, 27, 0.12);
  --line-soft: rgba(255, 250, 243, 0.16);
  --gold: #ef7b45;
  --gold-soft: #ffd27d;
  --moss: #1ea896;
  --shadow: 0 32px 90px rgba(28, 62, 74, 0.14);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --content-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(239, 123, 69, 0.18), transparent 24%),
    radial-gradient(circle at 85% 12%, rgba(30, 168, 150, 0.14), transparent 18%),
    radial-gradient(circle at 25% 80%, rgba(255, 210, 125, 0.18), transparent 18%),
    linear-gradient(180deg, #f7f1e6 0%, #f8f6ee 42%, #fcfbf7 100%);
  font-family: "Manrope", sans-serif;
}

body.menu-open {
  overflow: hidden;
}

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

p {
  margin: 0;
  line-height: 1.8;
}

.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent 16%, transparent 84%, rgba(255, 255, 255, 0.12)),
    radial-gradient(circle at 24% 74%, rgba(30, 168, 150, 0.08), transparent 18%);
}

.page-shell {
  position: relative;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 24px 22px 42px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0 26px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.brand-mark__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: linear-gradient(160deg, #ef7b45, #ffb347 58%, #1ea896);
  color: #fffdf8;
  border: 1px solid rgba(255, 250, 243, 0.24);
  box-shadow: var(--shadow);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-mark__eyebrow,
.eyebrow,
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 800;
}

.hero .eyebrow {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
}

.brand-mark__eyebrow,
.eyebrow {
  margin: 0;
  color: var(--gold);
}

.brand-mark h1,
.hero__title,
.section-heading h2,
.page-hero h2,
.feature-panel h3,
.story-card h3,
.program-sheet h3,
.donation-card h3,
.contact-card h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 0.96;
}

.brand-mark h1 {
  max-width: none;
  font-size: 1.08rem;
  line-height: 1.1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--ink);
}

.site-nav .is-current {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255, 251, 245, 0.86);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, #ef7b45, #e85d75 60%, #1ea896);
  color: #f8f3e9;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #e96d33, #d84d67 60%, #128d7c);
}

.button--sm {
  min-height: 42px;
  padding: 0 18px;
}

.button--ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.38);
  color: var(--ink);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.56);
}

.button--light {
  background: #fff3d7;
  color: var(--ink);
}

.button--light:hover,
.button--light:focus-visible {
  background: #fffaf2;
}

.button--ghost-light {
  border-color: var(--line-soft);
  background: transparent;
  color: #f8f3e9;
}

.button--ghost-light:hover,
.button--ghost-light:focus-visible {
  background: rgba(248, 243, 233, 0.08);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 24px;
  min-height: 720px;
  padding: 26px;
}

.hero__main,
.hero__sidebar,
.page-hero,
.feature-panel,
.story-card,
.impact-card,
.quote-card,
.contact-card,
.contact-form,
.program-sheet,
.donation-card,
.value-card,
.team-card {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 250, 243, 0.46);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero__main {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 660px;
  padding: 38px;
  background:
    linear-gradient(180deg, rgba(17, 50, 61, 0.52), rgba(17, 50, 61, 0.28)),
    radial-gradient(circle at top left, rgba(255, 210, 125, 0.18), transparent 22%),
    linear-gradient(135deg, #1f8a9b 0%, #11323d 55%, #ef7b45 125%);
  color: #f8f3e9;
}

.hero__main::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(248, 243, 233, 0.08);
  border-radius: 28px;
}

.hero__main > * {
  position: relative;
  z-index: 1;
}

.hero__title {
  max-width: 10ch;
  font-size: clamp(3rem, 5.4vw, 4.7rem);
  line-height: 0.94;
}

.hero__lead {
  max-width: 58ch;
  margin-top: 24px;
  color: rgba(248, 243, 233, 0.82);
  font-size: 1.06rem;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

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

.hero-metric {
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(248, 243, 233, 0.06);
  border: 1px solid rgba(248, 243, 233, 0.08);
}

.hero-metric strong,
.impact-card strong,
.donation-amount {
  display: block;
  margin-bottom: 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 0.9;
}

.hero-metric p {
  color: rgba(248, 243, 233, 0.74);
  line-height: 1.55;
}

.hero__sidebar {
  display: grid;
  gap: 18px;
}

.photo-frame {
  position: relative;
  margin: 0;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 251, 244, 0.96), rgba(255, 239, 213, 0.92));
}

.photo-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: calc(var(--radius-xl) - 10px);
}

.photo-frame figcaption {
  padding: 14px 6px 4px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.photo-frame--hero {
  min-height: 360px;
}

.photo-frame--hero img {
  aspect-ratio: 1 / 1.08;
}

.photo-frame--page {
  height: 100%;
}

.photo-frame--page img {
  aspect-ratio: 0.95 / 1;
}

.editorial-panel {
  padding: 28px;
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.92), rgba(251, 245, 236, 0.88));
}

.editorial-panel--dark {
  background: linear-gradient(180deg, rgba(18, 56, 69, 0.98), rgba(31, 114, 126, 0.96));
  color: #f8f3e9;
  border-color: rgba(255, 250, 243, 0.16);
}

.editorial-panel--tall {
  min-height: 320px;
}

.editorial-panel .kicker {
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
}

.editorial-panel--dark .kicker {
  color: var(--gold-soft);
}

.editorial-panel h3 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 16px;
}

.editorial-panel p {
  color: inherit;
}

.line-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.line-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 250, 243, 0.12);
}

.line-list span:last-child {
  color: rgba(248, 243, 233, 0.72);
}

.section {
  padding: 66px 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 28px;
}

.section-heading h2,
.contact-card h2 {
  font-size: clamp(2rem, 3.7vw, 3.2rem);
}

.page-hero h2 {
  font-size: clamp(1.85rem, 3vw, 2.7rem);
  line-height: 1;
  max-width: 14ch;
}

.section-heading p:last-child {
  margin-top: 18px;
  color: var(--muted);
}

.feature-grid,
.impact-grid,
.contact-section,
.story-grid,
.program-grid,
.donation-grid,
.values-grid,
.team-grid {
  display: grid;
  gap: 20px;
}

.feature-grid,
.impact-grid,
.values-grid,
.team-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-grid,
.contact-section {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

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

.gallery-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.16fr 0.82fr;
  gap: 20px;
}

.feature-panel,
.story-card,
.impact-card,
.quote-card,
.program-sheet,
.donation-card,
.value-card,
.team-card,
.contact-card,
.contact-form {
  padding: 28px;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.88), rgba(250, 245, 237, 0.84));
}

.feature-panel h3,
.story-card h3,
.program-sheet h3,
.donation-card h3 {
  font-size: clamp(1.45rem, 1.7vw, 1.82rem);
  margin-bottom: 14px;
  line-height: 1.02;
}

.team-card h3,
.value-card h3 {
  font-size: clamp(1.35rem, 1.5vw, 1.65rem);
  line-height: 1.05;
  margin-bottom: 10px;
}

.feature-panel p,
.story-card p,
.impact-card p,
.program-sheet p,
.donation-card p,
.value-card p,
.team-card p,
.contact-card p {
  color: var(--muted);
}

.feature-panel__index {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
}

.story-card--quote,
.quote-card {
  background: linear-gradient(180deg, rgba(17, 50, 61, 0.98), rgba(20, 99, 111, 0.96));
  color: #f8f3e9;
  border-color: rgba(255, 250, 243, 0.14);
}

.story-card--quote p,
.quote-card p {
  color: rgba(248, 243, 233, 0.82);
}

.quote-card__text {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.55rem, 1.95vw, 1.95rem);
  line-height: 1.16;
}

.quote-card__source {
  margin-top: 18px;
  color: rgba(248, 243, 233, 0.62);
}

.impact-card {
  min-height: 230px;
}

.impact-card strong {
  color: var(--ink);
}

.impact-card--dark {
  background: linear-gradient(180deg, rgba(239, 123, 69, 0.96), rgba(230, 91, 117, 0.94));
  color: #f8f3e9;
  border-color: rgba(255, 250, 243, 0.16);
}

.impact-card--dark strong,
.impact-card--dark p {
  color: inherit;
}

.page-hero {
  position: relative;
  min-height: 420px;
  padding: 38px;
  background:
    linear-gradient(180deg, rgba(20, 99, 111, 0.08), rgba(22, 24, 27, 0)),
    linear-gradient(135deg, rgba(255, 251, 244, 0.98), rgba(255, 243, 221, 0.94));
}

.page-hero::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(184, 138, 82, 0.22);
}

.page-hero--with-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 24px;
  align-items: center;
}

.page-hero p:last-child {
  max-width: 60ch;
  margin-top: 18px;
  color: var(--muted);
}

.photo-frame--portrait img {
  aspect-ratio: 0.82 / 1.08;
}

.photo-frame--landscape img {
  aspect-ratio: 1.16 / 0.88;
}

.program-sheet,
.donation-card {
  min-height: 100%;
}

.detail-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.detail-list li {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(22, 24, 27, 0.05);
  border: 1px solid rgba(22, 24, 27, 0.08);
  color: var(--muted);
  font-weight: 700;
}

.donation-amount {
  color: var(--gold);
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid rgba(22, 24, 27, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(184, 138, 82, 0.22);
  border-color: var(--gold);
}

.form-note {
  color: var(--muted);
}

.form-success {
  color: #36553e;
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 30px 0 12px;
  color: var(--muted);
}

.site-footer__links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero,
  .story-grid,
  .contact-section,
  .program-grid,
  .donation-grid,
  .feature-grid,
  .impact-grid,
  .values-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

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

  .hero__main {
    min-height: auto;
  }

  .gallery-grid,
  .page-hero--with-media {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding-inline: 16px;
  }

  .site-header {
    flex-wrap: wrap;
  }

  .brand-mark > div {
    align-items: flex-start;
    gap: 4px;
    flex-direction: column;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 250, 243, 0.96);
    border: 1px solid rgba(22, 24, 27, 0.08);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero,
  .page-hero {
    padding: 16px;
  }

  .hero__main,
  .editorial-panel,
  .feature-panel,
  .story-card,
  .impact-card,
  .quote-card,
  .contact-card,
  .contact-form,
  .program-sheet,
  .donation-card,
  .value-card,
  .team-card {
    padding: 22px;
  }

  .hero__title,
  .section-heading h2,
  .contact-card h2 {
    max-width: 100%;
    font-size: clamp(2.2rem, 9vw, 3.4rem);
  }

  .page-hero h2 {
    max-width: 100%;
    font-size: clamp(1.9rem, 7vw, 2.6rem);
  }
}
