:root {
  color-scheme: light;
  --ink: #24211d;
  --muted: #635f58;
  --paper: #fffaf1;
  --soft: #f3eadb;
  --line: #dfd1bd;
  --brand: #136f63;
  --brand-dark: #0d554c;
  --sun: #f2b84b;
  --blue: #295c7a;
  --white: #ffffff;
  --shadow: 0 18px 45px rgb(35 30 22 / 14%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgb(255 255 255 / 38%);
  background: rgb(255 250 241 / 88%);
  backdrop-filter: blur(16px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--brand);
  color: var(--white);
}

.nav {
  gap: clamp(10px, 2vw, 24px);
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: min(720px, calc(100vh - 50px));
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: clamp(56px, 8vw, 108px) clamp(18px, 5vw, 72px);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgb(32 25 18 / 84%) 0%, rgb(32 25 18 / 62%) 38%, rgb(32 25 18 / 12%) 74%),
    linear-gradient(0deg, rgb(32 25 18 / 32%), transparent 45%);
}

.hero-content {
  position: relative;
  max-width: 690px;
  color: var(--white);
}

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

.hero .eyebrow {
  color: #ffd987;
}

h1,
h2 {
  margin: 0;
  line-height: 1.04;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.hero-text {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgb(255 255 255 / 88%);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.6;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--sun);
  color: #271b08;
}

.button.secondary {
  border-color: rgb(255 255 255 / 42%);
  background: rgb(255 255 255 / 12%);
  color: var(--white);
}

.donation-panel .button.secondary {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

.button.disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip div {
  min-height: 96px;
  padding: 22px clamp(18px, 4vw, 46px);
  background: var(--white);
}

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

.trust-strip strong {
  margin-bottom: 8px;
}

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

.section {
  padding: clamp(58px, 8vw, 112px) clamp(18px, 5vw, 72px);
}

.two-column,
.split,
.donation-band {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(300px, 1.12fr);
  gap: clamp(28px, 6vw, 84px);
}

.copy p,
.donation-panel p,
.progress-panel p,
.cost-grid p,
.timeline p,
.faq p,
.footer p {
  color: var(--muted);
  line-height: 1.7;
}

.copy p:first-child,
.donation-panel p:first-of-type {
  margin-top: 0;
}

.donation-band {
  align-items: start;
  background: var(--soft);
}

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

.donation-panel {
  padding: clamp(22px, 4vw, 38px);
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 26px;
}

.amount-grid button {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fdf8ee;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.amount-grid button.is-selected {
  border-color: var(--brand);
  background: #e4f2ed;
  color: var(--brand-dark);
}

.custom-amount {
  margin-top: 20px;
}

.custom-amount label {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}

.input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--white);
}

.input-row input {
  width: 100%;
  min-height: 48px;
  border: 0;
  outline: 0;
  font: inherit;
}

.progress-panel {
  padding: 26px;
}

.progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-weight: 800;
}

.progress-track {
  height: 14px;
  margin: 18px 0;
  overflow: hidden;
  border-radius: 999px;
  background: #eadcc8;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  transition: width 240ms ease;
}

.small {
  font-size: 0.92rem;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 30px;
}

.cost-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.cost-grid article {
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--white);
}

.cost-grid span,
.cost-grid strong {
  display: block;
}

.cost-grid span {
  color: var(--blue);
  font-weight: 800;
}

.cost-grid strong {
  margin-top: 10px;
  font-size: 1.8rem;
}

.timeline {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.timeline article {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.timeline time {
  color: var(--brand-dark);
  font-weight: 800;
}

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--white);
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
}

.footer {
  padding: 32px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: var(--white);
}

.not-found {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 18px;
  padding: clamp(28px, 6vw, 72px);
}

.not-found h1 {
  max-width: 760px;
  color: var(--ink);
}

.not-found p {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .hero {
    min-height: 690px;
    align-items: end;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgb(32 25 18 / 86%) 0%, rgb(32 25 18 / 60%) 52%, rgb(32 25 18 / 10%) 100%),
      linear-gradient(90deg, rgb(32 25 18 / 45%), transparent 70%);
  }

  .trust-strip,
  .two-column,
  .split,
  .donation-band,
  .cost-grid {
    grid-template-columns: 1fr;
  }

  .amount-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .topbar {
    padding-inline: 14px;
  }

  .brand {
    font-size: 0.92rem;
  }

  .hero {
    min-height: 720px;
    padding-inline: 16px;
  }

  .button {
    width: 100%;
  }
}
