:root {
  --bg: #fbfaf6;
  --surface: #ffffff;
  --band: #f2efe6;
  --ink: #1b2330;
  --muted: #5a6475;
  --line: #e3dfd3;
  --accent: #1f5f4a;
  --accent-ink: #ffffff;
  --accent-soft: #e3efe9;
  --chalk: #20322b;
  --chalk-ink: #eef4ef;
  --gold: #c9892b;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12161c;
    --surface: #1a2028;
    --band: #161b22;
    --ink: #e9edf2;
    --muted: #a3adbb;
    --line: #2a323d;
    --accent: #5cc39b;
    --accent-ink: #0e1a15;
    --accent-soft: #1d3029;
    --chalk: #0f1d18;
    --gold: #e0a64e;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
}
a { color: var(--accent); }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
section { padding: 72px 0; }
.band { background: var(--band); }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1.3rem; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.mark { display: inline-grid; place-items: center; background: var(--accent); color: var(--accent-ink); border-radius: 8px; font-size: .85rem; padding: 2px 6px; font-family: "Inter", sans-serif; font-weight: 600; }
.links { display: flex; align-items: center; gap: 22px; }
.links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.links a:hover { color: var(--accent); }
@media (max-width: 640px) { .links a:not(.btn) { display: none; } }

/* buttons */
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600; padding: 13px 24px; border-radius: 999px; border: 2px solid var(--accent); transition: transform .15s ease, opacity .15s ease; }
.btn:hover { transform: translateY(-1px); opacity: .92; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-small { padding: 7px 16px; font-size: .9rem; color: var(--accent-ink) !important; }
.btn-big { font-size: 1.15rem; padding: 16px 40px; margin-top: 8px; }

/* hero */
.hero { padding: 80px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; color: var(--gold); margin-bottom: 14px; }
.lead { font-size: 1.12rem; color: var(--muted); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.board { margin: 0; background: var(--chalk); color: var(--chalk-ink); border-radius: var(--radius); padding: 26px; box-shadow: 0 18px 40px -20px rgba(0,0,0,.45); border: 8px solid #6b4f32; }
.board-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px dashed rgba(238,244,239,.18); }
.board-row:last-of-type { border-bottom: 0; }
.board-row code { font-family: "Fraunces", Georgia, serif; font-size: 1.25rem; }
.board-row.ok code { color: #9fe0bf; }
.tag { min-width: 74px; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.board figcaption { margin-top: 14px; font-size: .9rem; opacity: .8; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }

/* cards */
.cards { display: grid; gap: 20px; margin-top: 28px; }
.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .three { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p { color: var(--muted); margin: 0; }
.num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: 14px; }
.pill { display: inline-block; font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--band); color: var(--muted); margin-bottom: 12px; border: 1px solid var(--line); }
.pill.live { background: var(--accent-soft); color: var(--accent); border-color: transparent; }

/* promise */
.promise { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.promise li { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 18px 20px; color: var(--muted); }
.promise strong { color: var(--ink); }
@media (max-width: 700px) { .promise { grid-template-columns: 1fr; } }

/* donate */
.donate { background: var(--accent-soft); }
.amounts { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 26px 0 18px; }
.amount { font: 600 1.1rem "Inter", sans-serif; padding: 12px 26px; border-radius: 12px; border: 2px solid var(--accent); background: var(--surface); color: var(--accent); cursor: pointer; }
.amount.selected { background: var(--accent); color: var(--accent-ink); }
.small { font-size: .88rem; color: var(--muted); }
.soon { margin-top: 12px; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0; }
.foot-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-inner > div:last-child { max-width: 460px; }
.footer p { margin: 8px 0 0; }

/* legal page */
.doc { padding: 56px 0 80px; }
.doc h2 { font-size: 1.4rem; margin-top: 1.6em; }

/* keep everything inside narrow phone screens */
.hero-grid > *, .cards > *, .promise > * { min-width: 0; }
.board-row { flex-wrap: wrap; gap: 4px 14px; }
.board-row code { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .board { padding: 18px; border-width: 6px; }
  .board-row code { font-size: 1.05rem; }
  section { padding: 56px 0; }
}
