:root {
  /* dark by default — deep-green variation of the light palette */
  --bg: #0e1512;
  --bg-soft: #131d18;
  --card: #182420;
  --border: #2c4038;
  --text: #e8f0ec;
  --muted: #a3b8ae;
  --heading: #c3d8cd;
  --accent: #6fae8e;
  --cta-text: #0e1512;
  --live: #4ade80;
  --live-bg: transparent;
  --live-border: var(--live);
  --live-glow: color-mix(in srgb, var(--live) 55%, transparent);
  --scheme: dark;
}

:root[data-theme="light"] {
  --bg: #faf9f7;
  --bg-soft: #f4f3f0;
  --card: #ffffff;
  --border: #ddd;
  --text: #222;
  --muted: #555;
  --heading: #222;
  --accent: #4a7c59;
  --cta-text: #ffffff;
  --live: #ffffff;
  --live-bg: var(--accent);
  --live-border: var(--accent);
  --live-glow: transparent;
  --scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  color-scheme: var(--scheme);
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 960px;
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
}

.logo {
  width: 32px;
  height: 32px;
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand-dot { color: var(--accent); }

.nav nav { display: flex; gap: 1.4rem; }

.nav a, footer a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover { color: var(--accent); }

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.25rem 0.55rem;
  cursor: pointer;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.hero {
  max-width: 960px;
  margin: 0 auto;
  padding: 5rem 1.25rem 4rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--heading);
}

.lead {
  max-width: 46rem;
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 1.75rem;
}

.cta {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  background: var(--accent);
  color: var(--cta-text);
  font-weight: 600;
  text-decoration: none;
}

.cta:hover { filter: brightness(1.1); }

section {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--heading);
}

.section-lead {
  color: var(--muted);
  max-width: 46rem;
  margin: -1rem 0 1.5rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--heading);
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.card-top a { color: var(--text); text-decoration: none; }
.card-top a:hover { color: var(--accent); }

.badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

.badge.live {
  color: var(--live);
  background: var(--live-bg);
  border: 1px solid var(--live-border);
  box-shadow: 0 0 6px var(--live-glow);
}

.badge.soon {
  color: var(--muted);
  border: 1px solid var(--border);
}

footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
}

footer a:hover { color: var(--accent); }

@media (max-width: 560px) {
  .nav { flex-direction: column; gap: 0.75rem; }
  footer { flex-wrap: wrap; }
}