:root {
  --ink: #12201b;
  --muted: #5c6b64;
  --paper: #f4f7f4;
  --white: #ffffff;
  --line: #dde6df;
  --green: #147a5a;
  --green-dark: #0e5c44;
  --mint: #e6f5ee;
  --shadow: 0 18px 50px rgba(18, 32, 27, .10);
}

* { box-sizing: border-box; }

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

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
  font-size: 20px;
  letter-spacing: -.02em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

.main-nav { display: flex; gap: 22px; font-size: 14px; font-weight: 600; }
.main-nav a { color: var(--muted); }
.main-nav a:hover { color: var(--ink); }

.hero {
  min-height: 420px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 72px 0 120px;
}

.hero-inner {
  color: #fff;
  max-width: 760px;
  margin-left: max(20px, calc((100% - 1120px) / 2));
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 800;
  opacity: .9;
  margin: 0 0 12px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.02;
  margin: 0 0 14px;
  letter-spacing: -.03em;
}

.hero-sub {
  font-size: 18px;
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, .9);
}

.cause-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 24px;
  align-items: start;
  margin-top: -72px;
  padding-bottom: 64px;
}

.cause-main { display: grid; gap: 18px; }

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

.progress-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.progress-head strong { font-size: 28px; letter-spacing: -.03em; }
.progress-head span { color: var(--muted); }

.progress {
  height: 12px;
  background: #e9efe9;
  border-radius: 999px;
  overflow: hidden;
  margin: 16px 0 12px;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), #31b37f);
  border-radius: inherit;
}

.remaining { margin: 0; color: var(--muted); }
.remaining strong { color: var(--ink); }

.status-badge {
  margin-left: auto;
  background: var(--mint);
  color: var(--green-dark);
  border: 1px solid #c8e8d8;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.recommended {
  display: inline-block;
  width: fit-content;
  background: #fff4dc;
  color: #8a5a00;
  border: 1px solid #f0d9a8;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.field-note { margin: 4px 0 2px; color: var(--muted); font-size: 12px; }

.story h2 { margin: 0 0 12px; font-size: 22px; letter-spacing: -.02em; }
.story h3 { margin: 24px 0 10px; font-size: 17px; }
.story p { margin: 0 0 12px; color: #33423b; }
.story ul { margin: 0 0 14px; padding-left: 20px; color: #33423b; }
.story li { margin-bottom: 6px; }

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

.donate-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 88px;
}

.donate-card h2 { margin: 0 0 16px; font-size: 20px; letter-spacing: -.02em; }

.goal-cta {
  background: var(--mint);
  border: 1px solid #c8e8d8;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
  display: grid;
  gap: 10px;
}

.goal-cta > span { font-size: 13px; color: var(--green-dark); font-weight: 700; }

.goal-button {
  background: var(--green);
  color: #fff;
  text-align: center;
}

.goal-button:hover { background: var(--green-dark); color: #fff; }

.presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.preset {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
  font-weight: 700;
  color: var(--ink);
  background: #fbfdfb;
}

.preset:hover { border-color: var(--green); color: var(--green-dark); }

.alert {
  background: #fff1f0;
  border: 1px solid #f3c7c3;
  color: #9b2c24;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 14px;
}

.donation-form { display: grid; gap: 6px; }
.donation-form label { font-size: 13px; font-weight: 700; color: #33423b; margin-top: 6px; }

.donation-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  font-size: 15px;
  background: #fbfdfb;
  color: var(--ink);
}

.donation-form input:focus {
  outline: 2px solid #bfe6d4;
  border-color: var(--green);
}

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.button:hover { background: var(--green-dark); color: #fff; }
.button.wide { width: 100%; margin-top: 12px; }
.center { text-align: center; }

.confirmation { padding: 48px 0 72px; max-width: 640px; }
.confirmation h1 { margin: 0 0 8px; font-size: 32px; letter-spacing: -.03em; }

.amount {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -.04em;
  color: var(--green);
  margin: 16px 0;
}

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

.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  display: grid;
  gap: 4px;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.stat strong { font-size: 28px; letter-spacing: -.03em; }

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
  font-size: 14px;
}

.table th, .table td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); }
.table th {
  background: #f0f6f1;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}

.site-footer { border-top: 1px solid var(--line); background: var(--white); padding: 22px 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .cause-layout { grid-template-columns: 1fr; margin-top: 20px; }
  .donate-card { position: static; }
  .hero { min-height: 360px; padding-bottom: 56px; }
  .hero-inner { margin-left: 20px; margin-right: 20px; }
}

@media (max-width: 560px) {
  .wrap { width: calc(100% - 28px); }
  .presets { grid-template-columns: repeat(2, 1fr); }
  .row { grid-template-columns: 1fr; }
  .hero { min-height: 320px; }
  .hero h1 { font-size: 34px; }
  .panel, .donate-card { padding: 20px; }
}

/* Trust and organization */
.verified-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero-note { color: rgba(255, 255, 255, .85); font-size: 13px; font-weight: 600; }
.organizer h2 { margin: 0 0 12px; font-size: 22px; letter-spacing: -.02em; }
.organizer p { margin: 0 0 10px; color: #33423b; }
.trust { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; }
.trust p { margin: 0 0 6px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.trust .trust-title { color: var(--ink); font-weight: 800; font-size: 13px; }
.trust a { font-weight: 700; }

/* Content pages */
.page { padding: 48px 0 72px; max-width: 860px; }
.page h1 { margin: 0 0 12px; font-size: clamp(30px, 4vw, 42px); letter-spacing: -.03em; }
.lead { font-size: 18px; color: #33423b; max-width: 720px; margin: 0 0 26px; }
.page .panel { margin-bottom: 18px; }
.page .panel h2 { margin: 0 0 10px; font-size: 21px; letter-spacing: -.02em; }
.page .panel p { margin: 0 0 10px; color: #33423b; }
.steps { margin: 0 0 12px; padding-left: 20px; color: #33423b; }
.steps li { margin-bottom: 10px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.faq h2 { margin-top: 22px; }
.faq h2:first-child { margin-top: 0; }
.donation-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  font-size: 15px;
  font-family: inherit;
  background: #fbfdfb;
  color: var(--ink);
  resize: vertical;
}
.alert.success { background: var(--mint); border-color: #c8e8d8; color: var(--green-dark); }
.receipt {
  background: #f8fbf8;
  border: 1px dashed #c8d9cc;
  border-radius: 12px;
  padding: 16px;
  margin: 18px 0;
}
.receipt h2 {
  margin: 0 0 8px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}
.receipt p { margin: 0 0 6px; font-size: 13px; color: #33423b; }

/* Footer */
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer-brand { font-size: 18px; margin-bottom: 10px; }
.site-footer h3 {
  margin: 0 0 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}
.site-footer p { margin: 0 0 6px; }
.small { font-size: 12px; line-height: 1.5; color: var(--muted); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .main-nav { gap: 14px; font-size: 13px; }
}
