:root {
  --ink: #10251c;
  --muted: #66756c;
  --cream: #fff8ec;
  --paper: #ffffff;
  --green: #1f6b44;
  --green-dark: #154c31;
  --gold: #f2b84b;
  --line: rgba(16,37,28,.12);
  --shadow: 0 24px 70px rgba(16,37,28,.14);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--cream), #fff 46%, #f5fbf6);
}
a { color: inherit; text-decoration: none; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255,248,236,.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: white;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  font-weight: 900;
}
.brand strong, .brand small { display: block; line-height: 1.05; }
.brand small { color: var(--muted); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 18px; font-weight: 800; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--green); }
.btn {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--green);
  color: white;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(31,107,68,.22);
}
.btn-small { min-height: 38px; padding: 0 15px; }
.btn-ghost { background: white; color: var(--green); border: 1px solid var(--line); box-shadow: none; }
.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  align-items: center;
  gap: clamp(26px, 5vw, 70px);
  padding: 74px clamp(20px, 6vw, 86px);
  background:
    radial-gradient(circle at 85% 18%, rgba(242,184,75,.34), transparent 28%),
    radial-gradient(circle at 8% 8%, rgba(31,107,68,.12), transparent 26%);
}
.eyebrow { color: var(--green); font-weight: 900; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; }
h1 { font-size: clamp(3rem, 7vw, 6.7rem); line-height: .9; letter-spacing: -.07em; margin: 12px 0 24px; }
h2 { font-size: clamp(2rem, 4vw, 4rem); line-height: .98; letter-spacing: -.055em; margin: 8px 0 18px; }
h3 { margin: 0 0 10px; font-size: 1.2rem; }
p { line-height: 1.7; }
.hero-text { font-size: clamp(1.08rem, 2vw, 1.35rem); color: var(--muted); max-width: 680px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-card {
  min-height: 430px;
  border-radius: 36px;
  padding: 32px;
  color: white;
  background:
    linear-gradient(180deg, rgba(16,37,28,.12), rgba(16,37,28,.75)),
    linear-gradient(135deg, #27714b, #0f3324);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 28px;
}
.hero-card strong { font-size: 2.1rem; line-height: 1; letter-spacing: -.04em; position: relative; }
.hero-card p { color: rgba(255,255,255,.82); position: relative; }
.live-dot { width: 13px; height: 13px; border-radius: 50%; background: #34ff8b; box-shadow: 0 0 0 10px rgba(52,255,139,.18); margin-bottom: 18px; position: relative; }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 0 clamp(20px, 6vw, 86px) 46px;
  margin-top: -36px;
}
.stats article, .content-card, .cards article, .composer, .post-card, .give-card {
  background: rgba(255,255,255,.88);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 14px 45px rgba(16,37,28,.07);
}
.stats article { padding: 24px; }
.stats strong { display: block; font-size: 2.2rem; letter-spacing: -.06em; }
.stats span { color: var(--muted); font-weight: 700; }
.section { padding: 70px clamp(20px, 6vw, 86px); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.content-card { padding: 30px; font-size: 1.1rem; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pill-row span { padding: 9px 13px; border-radius: 999px; background: #eff8f1; color: var(--green); font-weight: 900; }
.section-head { max-width: 850px; margin-bottom: 26px; }
.row-head { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards article { padding: 26px; }
.cards p { color: var(--muted); margin-bottom: 0; }
.updates-section { background: #f3faf5; border-block: 1px solid var(--line); }
.composer { padding: 24px; margin-bottom: 24px; }
.composer label, .auth-box label { display: grid; gap: 7px; font-weight: 900; margin: 13px 0; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  font: inherit;
  outline: none;
  background: white;
}
input:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(31,107,68,.1); }
.composer-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.status { color: var(--muted); font-weight: 800; }
.posts-feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card { overflow: hidden; }
.post-media { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; background: #dce8df; display: block; }
.post-body { padding: 22px; }
.post-meta { color: var(--muted); font-size: .86rem; font-weight: 800; margin-bottom: 8px; }
.post-card h3 { font-size: 1.35rem; letter-spacing: -.03em; }
.post-card p { color: var(--muted); margin-bottom: 0; }
.give-section { background: linear-gradient(135deg, #143524, #276f49); color: white; }
.give-card { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.16); max-width: 900px; padding: clamp(28px, 5vw, 52px); }
.give-card .eyebrow, .give-card p { color: rgba(255,255,255,.82); }
.give-card .btn { background: var(--gold); color: #1f1708; }
.auth-dialog { border: 0; border-radius: 30px; padding: 0; box-shadow: var(--shadow); width: min(92vw, 460px); }
.auth-dialog::backdrop { background: rgba(16,37,28,.55); backdrop-filter: blur(4px); }
.auth-box { padding: 28px; }
.dialog-close { float: right; border: 0; background: #eff5f0; border-radius: 50%; width: 36px; height: 36px; font-size: 24px; cursor: pointer; }
.hidden { display: none !important; }
.empty-feed { border: 1px dashed var(--line); border-radius: 28px; padding: 30px; color: var(--muted); background: white; grid-column: 1 / -1; }
@media (max-width: 900px) {
  .site-header { align-items: flex-start; }
  .nav { gap: 10px; flex-wrap: wrap; justify-content: flex-end; font-size: .88rem; }
  .hero, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .stats, .grid, .posts-feed { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .brand small { display: none; }
  .nav a { display: none; }
  .hero { min-height: auto; }
  .stats, .grid, .posts-feed { grid-template-columns: 1fr; }
  .row-head { align-items: start; flex-direction: column; }
}
