:root {
  --bg: #fbf6f0;
  --surface: rgba(255, 251, 246, 0.84);
  --surface-strong: #fffaf4;
  --surface-dark: rgba(30, 32, 45, 0.9);
  --ink: #17161e;
  --muted: #5d5a67;
  --line: rgba(23, 22, 30, 0.12);
  --peach: #eb8d62;
  --rose: #bf5d73;
  --berry: #74284e;
  --navy: #21263c;
  --sky: #88c1d9;
  --mint: #8bb89b;
  --shadow: 0 28px 80px rgba(33, 24, 36, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --content: min(1180px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(235, 141, 98, 0.18), transparent 24%),
    radial-gradient(circle at 88% 12%, rgba(136, 193, 217, 0.24), transparent 22%),
    linear-gradient(180deg, #fff8f2 0%, #f8efe8 48%, #f7efe6 100%);
}

a {
  color: inherit;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: clip;
}

.ambient {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  filter: blur(16px);
}

.ambient--left {
  top: 180px;
  left: -80px;
  width: 260px;
  height: 260px;
  border-radius: 44% 56% 62% 38%;
  background: rgba(235, 141, 98, 0.22);
}

.ambient--right {
  top: 720px;
  right: -100px;
  width: 320px;
  height: 320px;
  border-radius: 56% 44% 38% 62%;
  background: rgba(139, 184, 155, 0.18);
}

.topbar,
.hero,
.section {
  position: relative;
  z-index: 1;
}

.topbar {
  width: var(--content);
  margin: 0 auto;
  padding: 26px 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand__mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--rose), var(--peach));
  color: #fff7f2;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 18px 30px rgba(191, 93, 115, 0.24);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.9rem;
  line-height: 1.15;
}

.brand__text strong {
  font-size: 0.96rem;
}

.brand__text span {
  color: var(--muted);
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar__nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.hero {
  width: var(--content);
  margin: 0 auto;
  padding: 54px 0 36px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 24px;
  align-items: stretch;
}

.hero__content,
.hero__panel,
.story-card,
.program-card,
.support-card,
.strip,
.dialog-card {
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero__content {
  padding: 48px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(150deg, rgba(255, 253, 249, 0.92), rgba(255, 245, 236, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--berry);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  font-family: "Oranienbaum", serif;
  font-weight: 400;
  line-height: 1.02;
}

.hero h1 {
  font-size: clamp(2.9rem, 7vw, 6.2rem);
  max-width: 9.5ch;
}

.hero h1 span {
  display: block;
  color: var(--berry);
}

.hero__lead,
.story-card p,
.program-card p,
.support-card__text,
.strip p,
.dialog-card p,
.hero__panel-text {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.8;
  color: var(--muted);
}

.hero__lead {
  max-width: 58ch;
  margin-top: 24px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease,
    color 220ms ease,
    border-color 220ms ease;
}

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

.button--primary {
  color: #fffaf4;
  background: linear-gradient(135deg, var(--berry), var(--rose), var(--peach));
  box-shadow: 0 18px 34px rgba(116, 40, 78, 0.26);
}

.button--ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.hero__panel {
  position: relative;
  padding: 34px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  color: #fff8f2;
  background:
    radial-gradient(circle at top right, rgba(136, 193, 217, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(26, 31, 47, 0.94), rgba(38, 32, 54, 0.96));
}

.hero__panel::after {
  content: "";
  position: absolute;
  inset: auto -34px -42px auto;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(235, 141, 98, 0.26), transparent 72%);
}

.hero__panel-label,
.dialog-card__title {
  margin: 0 0 16px;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__panel-quote {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  font-family: "Oranienbaum", serif;
  font-size: 2rem;
  line-height: 1.12;
}

.hero__panel-text {
  position: relative;
  z-index: 1;
  color: rgba(255, 248, 242, 0.82);
}

.section {
  width: var(--content);
  margin: 0 auto;
  padding: 34px 0;
}

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

.story-card,
.dialog-card {
  padding: 34px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.story-card--accent {
  background:
    linear-gradient(180deg, rgba(255, 245, 236, 0.9), rgba(255, 255, 255, 0.74));
}

.story-card__lead,
.story-card__break {
  margin: 0 0 20px;
  color: var(--ink);
  font-weight: 800;
}

.story-card__lead {
  font-size: 1.4rem;
  line-height: 1.45;
}

.story-card__break {
  margin-top: 22px;
  font-family: "Oranienbaum", serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.1;
}

.section--dark {
  margin-top: 10px;
  padding: 46px 42px 42px;
  border-radius: calc(var(--radius-xl) + 4px);
  background:
    linear-gradient(135deg, rgba(27, 31, 48, 0.98), rgba(49, 34, 58, 0.96));
}

.section--dark .section-heading h2,
.section--dark .program-card p {
  color: #fff8f2;
}

.section--dark .eyebrow {
  color: rgba(255, 215, 197, 0.76);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 26px;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.program-grid,
.support-grid {
  display: grid;
  gap: 20px;
}

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

.program-card {
  min-height: 100%;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.program-card p {
  color: rgba(255, 248, 242, 0.86);
}

.program-card--signal {
  background:
    linear-gradient(180deg, rgba(191, 93, 115, 0.22), rgba(255, 255, 255, 0.08));
}

.support-section {
  padding-top: 52px;
}

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

.support-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 252, 247, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.74);
}

.support-card--wide {
  grid-column: span 3;
  display: flex;
  align-items: baseline;
  gap: 18px;
}

.support-card__amount {
  margin: 0 0 16px;
  font-family: "Oranienbaum", serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 0.95;
  color: var(--berry);
}

.support-card--wide .support-card__amount {
  margin-bottom: 0;
  min-width: 180px;
}

.strip {
  margin-top: 22px;
  padding: 28px 30px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(136, 193, 217, 0.18), rgba(255, 250, 245, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.74);
}

.section--plain {
  padding-bottom: 72px;
}

.dialog-card--alert {
  background:
    linear-gradient(180deg, rgba(116, 40, 78, 0.94), rgba(164, 90, 84, 0.92));
  border-color: rgba(255, 230, 219, 0.24);
}

.dialog-card--alert .dialog-card__title,
.dialog-card--alert p {
  color: #fff8f2;
}

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 620ms ease,
    transform 620ms ease;
}

.js .reveal-delay {
  transition-delay: 120ms;
}

.js .reveal-delay-2 {
  transition-delay: 220ms;
}

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

@media (max-width: 1080px) {
  .hero,
  .story-grid,
  .dialog-grid,
  .program-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .support-card--wide {
    grid-column: auto;
    display: block;
  }
}

@media (max-width: 820px) {
  .topbar {
    padding-top: 20px;
  }

  .topbar,
  .hero,
  .section {
    width: min(100vw - 28px, 100%);
  }

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

  .hero {
    padding-top: 28px;
  }

  .hero__content,
  .hero__panel,
  .story-card,
  .program-card,
  .support-card,
  .strip,
  .dialog-card,
  .section--dark {
    padding: 26px;
  }

  .hero h1 {
    max-width: 10.5ch;
  }

  .hero__actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .topbar__nav {
    gap: 12px;
  }

  .topbar__nav a {
    font-size: 0.88rem;
  }

  .hero__lead,
  .story-card p,
  .program-card p,
  .support-card__text,
  .strip p,
  .dialog-card p,
  .hero__panel-text {
    font-size: 1rem;
    line-height: 1.72;
  }

  .story-card__lead {
    font-size: 1.24rem;
  }

  .hero__panel-quote,
  .story-card__break {
    font-size: 1.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
