:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --ink: #201d1a;
  --ink-soft: #57524c;
  --accent: #1f6f50;
  --accent-ink: #ffffff;
  --border: #e6e0d8;
  --donate: #c1440e;
  --donate-ink: #ffffff;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16140f;
    --surface: #1f1c17;
    --ink: #f3efe8;
    --ink-soft: #b8b1a6;
    --accent: #4caf82;
    --accent-ink: #0d1410;
    --border: #332e27;
    --donate: #ff7a45;
    --donate-ink: #201400;
  }
}

* { box-sizing: border-box; }

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

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2 {
  line-height: 1.15;
  font-weight: 700;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
}

h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin: 0 0 16px; }
h2 { font-size: 1.5rem; margin: 0 0 8px; }

.topbar {
  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);
}

.topbar-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
}

.nav-donate {
  background: var(--donate);
  color: var(--donate-ink);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
}

.hero-image {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 20px 0;
}

.hero-image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.hero {
  padding: 48px 0 32px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 10px;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 56ch;
}

.status-card {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin: 20px 0 24px;
}

.status-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

.status-value {
  font-size: 1.3rem;
  font-weight: 700;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--donate);
  color: var(--donate-ink);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn-large {
  font-size: 1.05rem;
  padding: 14px 28px;
}

.section {
  padding: 36px 0;
  border-top: 1px solid var(--border);
}

.section-lead {
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 18px;
}

.embed-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 16px;
}

.embed-frame iframe {
  width: 100%;
  height: 480px;
  border: 0;
  display: block;
}

.embed-placeholder {
  color: var(--ink-soft);
  text-align: center;
  padding: 40px 24px;
  font-size: 0.95rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.route-map {
  max-width: 260px;
  margin: 24px auto;
}

.route-map svg {
  width: 100%;
  height: auto;
  display: block;
}

.route-map .map-land {
  fill: var(--surface);
  stroke: var(--border);
  stroke-width: 2;
}

.route-map .map-label {
  font-size: 15px;
  font-weight: 700;
  fill: var(--ink);
}

.route-map .map-sublabel {
  font-size: 12px;
  fill: var(--ink-soft);
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-num {
  font-size: 1.5rem;
  font-weight: 700;
}

.stat-unit {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.route-line {
  color: var(--ink-soft);
}

.text-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover { text-decoration: underline; }

.bluesky-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.feed-empty {
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin: 0;
}

.feed-post {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.feed-post time {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.follow-links {
  font-size: 0.95rem;
}

.donate-section h2 { color: var(--donate); }

.site-footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  color: var(--ink-soft);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

.site-footer a { color: var(--ink-soft); }
