:root {
  --bg: #faf9f5;
  --surface: #ffffff;
  --surface-soft: #f3f1e9;
  --text: #1f221b;
  --text-soft: #565a4e;
  --text-faint: #898d80;
  --border: rgba(31, 34, 27, 0.10);
  --border-strong: rgba(31, 34, 27, 0.22);
  --accent: #2f6f5e;
  --accent-hover: #285e50;
  --accent-soft: #e6f1ec;
  --on-accent: #ffffff;
  --radius: 10px;
  --radius-lg: 16px;
  --maxw: 960px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14150f;
    --surface: #1d1f16;
    --surface-soft: #23261b;
    --text: #ecebe1;
    --text-soft: #b0b3a5;
    --text-faint: #82867a;
    --border: rgba(236, 235, 225, 0.13);
    --border-strong: rgba(236, 235, 225, 0.24);
    --accent: #71c1a9;
    --accent-hover: #85ccb6;
    --accent-soft: #1e3a31;
    --on-accent: #12140e;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
[hidden] { display: none !important; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
strong { font-weight: 500; }

.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-sm { width: 15px; height: 15px; }

/* --- 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(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font-weight: 500; }
.brand-dot { color: var(--text-faint); }
.nav-links { display: flex; gap: 22px; }
.nav-links a { color: var(--text-soft); text-decoration: none; font-size: 14px; }
.nav-links a:hover { color: var(--text); }

/* --- buttons --- */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: transparent; color: var(--text); font: inherit; font-size: 14px; line-height: 1; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--surface-soft); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }

/* --- hero --- */
.hero { text-align: center; padding: 76px 0 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-soft); border: 1px solid var(--border); border-radius: 999px; padding: 5px 14px; margin-bottom: 22px; }
.hero h1 { font-size: clamp(30px, 6vw, 46px); line-height: 1.1; margin: 0 auto 14px; max-width: 16ch; }
.lede { font-size: clamp(16px, 2.4vw, 19px); color: var(--text-soft); max-width: 48ch; margin: 0 auto; }
.hero-actions { display: flex; gap: 10px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }

/* --- mission --- */
.section-eyebrow { display: block; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 12px; }
.mission { padding: 40px 20px; max-width: 720px; }
.mission-lead { font-family: var(--serif); font-size: clamp(20px, 3.2vw, 26px); line-height: 1.42; color: var(--text); margin-bottom: 1.2rem; }
.mission p { color: var(--text-soft); }
.mission p strong { color: var(--text); }

/* --- principles --- */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; padding: 20px 20px 56px; }
.principle { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.principle .icon { color: var(--accent); }
.principle h3 { font-size: 16px; margin: 12px 0 6px; }
.principle p { font-size: 14px; color: var(--text-soft); margin: 0; }

/* --- flock --- */
.flock { padding-bottom: 40px; }
.flock-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.flock-head h2 { font-size: 22px; margin: 0; }
.flock-count { font-size: 13px; color: var(--text-faint); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.card-top { display: flex; align-items: center; gap: 12px; }
.logo { width: 42px; height: 42px; border-radius: 11px; overflow: hidden; flex: none; display: flex; align-items: center; justify-content: center; background: var(--surface-soft); }
.logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-pad { background: #fbeaf0; padding: 6px; }
.logo-pad img { object-fit: contain; }
.card-name { font-weight: 500; }
.status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-faint); margin-top: 2px; }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dot-live { background: #6a9a2f; }
.dot-soon { background: #b4b2a9; }
.card-desc { font-size: 14px; color: var(--text-soft); margin: 14px 0; line-height: 1.55; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.badge { font-size: 11.5px; font-weight: 500; padding: 3px 10px; border-radius: 999px; }
.badge-open { background: #e8f1d9; color: #3c6a12; }
.badge-free { background: #e0f2ea; color: #0f6e56; }
.badge-soon { background: #eeece4; color: #5f5e5a; }
.card-note { font-size: 12.5px; color: var(--text-faint); margin: 0 0 14px; line-height: 1.5; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--border); padding-top: 14px; margin-top: auto; }

/* donate menu */
.donate { position: relative; }
.donate-menu { position: absolute; bottom: calc(100% + 8px); left: 0; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 6px; min-width: 180px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); display: flex; flex-direction: column; gap: 2px; }
.donate-menu a { font-size: 13px; color: var(--text); text-decoration: none; padding: 8px 10px; border-radius: 7px; }
.donate-menu a:hover { background: var(--surface-soft); }

/* notify */
.notify { width: 100%; }
.notify-form { display: flex; gap: 8px; width: 100%; }
.notify-form input { flex: 1; min-width: 0; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--bg); color: var(--text); font: inherit; font-size: 14px; }
.notify-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.notify-msg { font-size: 13px; margin: 0; }
.notify-msg.ok { color: #3c6a12; }
.notify-msg.err { color: #a33; }

/* --- funding --- */
.funding { display: flex; gap: 12px; align-items: flex-start; background: var(--accent-soft); border-radius: 14px; padding: 18px 20px; margin-top: 24px; }
.funding .icon { color: var(--accent); margin-top: 2px; }
.funding strong { display: block; margin-bottom: 4px; }
.funding p { font-size: 14px; color: var(--text-soft); margin: 0; line-height: 1.6; }

/* --- faq --- */
.faq { padding: 16px 20px 48px; max-width: 720px; }
.faq h2 { font-size: 22px; margin: 0 0 16px; }
.faq details { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 0 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; font-weight: 500; font-size: 15px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-faint); font-size: 18px; line-height: 1; flex: none; transition: transform .15s; }
.faq details[open] summary::after { content: "–"; color: var(--accent); }
.faq details p { font-size: 14px; color: var(--text-soft); margin: 0 0 16px; line-height: 1.6; }
.faq details a { color: var(--accent); }

/* --- legal (privacy) --- */
.legal h1 { font-size: clamp(26px, 5vw, 34px); margin: 0 0 14px; }
.legal h2 { font-size: 17px; margin: 28px 0 8px; }
.legal a { color: var(--accent); }
.legal-updated { font-size: 12.5px; color: var(--text-faint); margin-top: 32px; }
.footer-fine a { color: var(--text-faint); }

/* --- footer --- */
.footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 26px 0 40px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.keeper { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-soft); }
.keeper-logo { width: 16px; height: 16px; display: block; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-soft); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-fine { font-size: 12px; color: var(--text-faint); margin-top: 16px; }
