:root {
  color-scheme: light;
  --bg: #f7f2e8;
  --bg-deep: #eef3fb;
  --panel: rgba(255, 255, 255, 0.84);
  --panel-strong: rgba(255, 255, 255, 0.94);
  --line: rgba(20, 35, 56, 0.12);
  --text: #14243b;
  --muted: #6e7a8f;
  --accent: #4d8fff;
  --accent-strong: #326fe8;
  --gold: #c68b2b;
  --shadow: 0 24px 60px rgba(49, 71, 115, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(77, 143, 255, 0.18), transparent 26%),
    radial-gradient(circle at 84% 10%, rgba(198, 139, 43, 0.14), transparent 22%),
    linear-gradient(180deg, #fbf7f0 0%, #f2f6fc 48%, #f8f2e8 100%);
  color: var(--text);
}

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

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

button,
input {
  font: inherit;
}

.page-shell {
  position: relative;
  overflow: clip;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  backdrop-filter: blur(18px);
  background: rgba(251, 247, 240, 0.8);
  border-bottom: 1px solid rgba(20, 35, 56, 0.08);
}

.brand,
.topbar-link,
.status-pill,
.eyebrow,
.youtube-label {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand,
.topbar-link {
  font-size: 0.85rem;
  font-weight: 700;
}

.topbar-link {
  color: var(--accent);
}

.section {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 4.5rem 0;
}

.hero {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-top: 2rem;
}

.hero-copy,
.hero-visual,
.donation-card,
.story-card,
.youtube-card,
.thank-you-card {
  position: relative;
}

.status-pill,
.eyebrow,
.trust-text,
.helper-text,
.portrait-caption,
.youtube-label {
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 1rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(77, 143, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.74rem;
  font-weight: 700;
}

.eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.76rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  line-height: 1.03;
}

h1 {
  font-size: clamp(2.8rem, 9vw, 5.8rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(2rem, 7vw, 3.6rem);
  margin-bottom: 0.9rem;
}

h3 {
  font-size: 1.3rem;
}

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

.hero-text,
.section-heading p,
.youtube-copy p,
.story-copy p,
.thank-you-card p {
  max-width: 62ch;
  color: #49566d;
}

.hero-text {
  margin-top: 1.35rem;
  font-size: 1.05rem;
}

.hero-note {
  margin-top: 1.2rem;
  color: var(--gold);
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.95rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button:hover,
.button:focus-visible,
.preset-button:hover,
.preset-button:focus-visible {
  transform: translateY(-2px);
}

.button:focus-visible,
.preset-button:focus-visible,
input:focus-visible {
  outline: 2px solid rgba(126, 216, 255, 0.55);
  outline-offset: 3px;
}

.button-primary {
  background: linear-gradient(135deg, #70b0ff 0%, #4d8fff 48%, #8cb8ff 100%);
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(77, 143, 255, 0.26);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(20, 35, 56, 0.1);
  color: var(--text);
}

.button-large {
  width: 100%;
  min-height: 3.75rem;
  margin-top: 1rem;
}

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

.portrait-card {
  position: relative;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-xl) + 8px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.9)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  border-radius: var(--radius-xl);
}

.portrait-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0.3rem 0;
  font-size: 0.78rem;
  font-weight: 700;
}

.halo {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.9;
}

.halo-blue {
  inset: -1rem auto auto -1rem;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(77, 143, 255, 0.32), rgba(77, 143, 255, 0));
  animation: float-halo 7s ease-in-out infinite;
}

.halo-gold {
  inset: auto -0.5rem 3rem auto;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(198, 139, 43, 0.28), rgba(198, 139, 43, 0));
  animation: float-halo 9s ease-in-out infinite reverse;
}

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

.donation-card,
.story-card,
.youtube-card,
.thank-you-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.9)),
    var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.donation-card {
  padding: 1.35rem;
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.preset-button {
  min-height: 3.2rem;
  border: 1px solid rgba(20, 35, 56, 0.08);
  border-radius: 18px;
  background: rgba(246, 249, 255, 0.95);
  color: var(--text);
  font-weight: 800;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.preset-button.is-selected {
  border-color: rgba(198, 139, 43, 0.5);
  background: rgba(198, 139, 43, 0.12);
  color: #7c4d08;
}

.field {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.field span {
  font-size: 0.95rem;
  font-weight: 700;
}

.input-shell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3.5rem;
  padding: 0 1rem;
  border: 1px solid rgba(20, 35, 56, 0.12);
  border-radius: 18px;
  background: rgba(248, 250, 253, 0.96);
}

.currency-symbol {
  color: var(--gold);
  font-weight: 800;
  font-size: 1.2rem;
}

.input-shell input {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}

.input-shell input::placeholder {
  color: rgba(20, 35, 56, 0.32);
}

.trust-text {
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.helper-text,
.form-message,
.footer p:last-child {
  margin-top: 0.45rem;
  font-size: 0.92rem;
}

.form-message {
  min-height: 1.5rem;
}

.form-message.is-error {
  color: #c43b5a;
}

.form-message.is-success {
  color: #1e8a57;
}

.gallery-grid {
  display: grid;
  gap: 1.15rem;
}

.story-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.story-image,
.youtube-image {
  width: 100%;
  object-fit: cover;
  background: #edf1f7;
}

.story-image {
  aspect-ratio: 4 / 5;
}

.story-image-01 {
  object-position: center 28%;
}

.story-image-02 {
  image-orientation: none;
  object-position: center 20%;
}

.story-image-03 {
  object-position: center 18%;
}

.story-image-04 {
  object-position: center 24%;
}

.story-image-05 {
  object-position: center 18%;
}

.story-image-06 {
  object-position: 58% center;
}

.story-image-07 {
  object-position: center 18%;
}

.story-image-08 {
  object-position: center 28%;
}

.story-copy,
.youtube-copy {
  padding: 1.15rem 1.15rem 1.35rem;
}

.story-copy {
  flex: 1;
}

.story-copy h3,
.youtube-copy h3 {
  margin-bottom: 0.55rem;
}

.youtube-card {
  overflow: hidden;
}

.youtube-image {
  aspect-ratio: 16 / 10;
  object-position: center 28%;
}

.youtube-copy .button {
  margin-top: 1.2rem;
}

.footer {
  padding-bottom: 6rem;
  text-align: center;
  color: #55647c;
}

.sticky-donate {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  display: inline-flex;
  min-height: 3.3rem;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.3rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(198, 139, 43, 0.94), rgba(245, 182, 90, 0.96));
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 24px 48px rgba(137, 101, 38, 0.22);
}

.thank-you-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.thank-you-wrap {
  width: min(calc(100% - 2rem), 760px);
  padding: 2rem 0;
}

.thank-you-card {
  padding: 2rem;
}

.thank-you-card h1 {
  max-width: 13ch;
  margin-bottom: 1rem;
  font-size: clamp(2.6rem, 10vw, 4.8rem);
}

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

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

@keyframes float-halo {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -10px, 0) scale(1.04);
  }
}

@media (max-width: 699px) {
  .topbar {
    padding: 0.9rem 1rem;
  }

  .section {
    width: min(calc(100% - 1.25rem), var(--max-width));
    padding: 3.25rem 0;
  }

  .hero {
    gap: 1.5rem;
    padding-top: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

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

  .portrait-caption {
    flex-direction: column;
    gap: 0.25rem;
  }

  .preset-grid {
    gap: 0.6rem;
  }

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

  .story-image {
    aspect-ratio: 4 / 4.85;
  }

  .story-copy,
  .youtube-copy,
  .donation-card,
  .thank-you-card {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .youtube-card {
    overflow: hidden;
  }

  .sticky-donate {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 1rem 1.2rem;
  }

  .footer {
    padding-bottom: 6.5rem;
  }
}

@media (min-width: 700px) {
  .section {
    width: min(calc(100% - 3rem), var(--max-width));
    padding: 5.5rem 0;
  }

  .hero {
    grid-template-columns: 1.02fr 0.98fr;
    gap: 2.4rem;
    min-height: calc(100vh - 88px);
  }

  .story-card:nth-child(odd) {
    transform: none;
  }

  .youtube-card {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
  }

  .youtube-card img {
    height: 100%;
  }

  .thank-you-card {
    padding: 3rem;
  }
}

@media (min-width: 980px) {
  .topbar {
    padding-inline: 2rem;
  }

  .donation-card {
    width: min(520px, 100%);
  }

  .donate-section {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2rem;
    align-items: start;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .story-card:nth-child(3n) {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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