/* One theme only: the brand's dark green with cream ink (the app icon and
   logo colours). No light/dark switching. */
:root {
  --bg: #0d3b2e;          /* brand green — also the logo's background */
  --surface: #134a3a;     /* cards: one step lighter than the page */
  --border: #2a5e4d;
  --text: #e8dcc4;        /* brand cream — the logo's ink */
  --muted: #b9c4b3;
  --accent: #e8dcc4;      /* primary buttons: cream on green */
  --accent-text: #0d3b2e;
  --accent-soft: #1d5847; /* secondary buttons, inline code */
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--text); }

a:hover { color: #ffffff; }

.topbar,
main,
.footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.topbar .brand img {
  display: block;
  width: auto;
  height: 48px;
}

.topbar-link {
  margin-left: auto;
  font-size: 0.95rem;
}

.hero {
  text-align: center;
  padding: 32px 0 32px;
}

/* The logo replaces the heading TEXT but stays inside <h1>, so the page keeps
   its heading for screen readers / search engines; alt covers a failed load. */
.hero .logo {
  margin: 0;
  line-height: 0;
}

.hero .logo img {
  width: min(480px, 90vw);
  height: auto;
}

.tagline {
  margin: 8px 0 16px;
  color: var(--muted);
  font-size: 1.2rem;
  font-style: italic;
}

.lead {
  max-width: 640px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.1rem;
}

.downloads h2 { text-align: center; }

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

.card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.card h3 { margin: 0 0 4px; }

.card p {
  flex: 1;
  margin: 0 0 16px;
  color: var(--muted);
}

.button {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.button:hover { color: var(--accent-text); filter: brightness(1.08); }

.button.secondary {
  background: var(--accent-soft);
  color: var(--text);
}

.button.secondary:hover { color: #ffffff; }

.note {
  text-align: center;
  color: var(--muted);
}

code {
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--accent-soft);
  font-size: 0.9em;
}

.legal {
  max-width: 760px;
  padding-bottom: 32px;
}

.legal h1 { line-height: 1.2; }

.legal h2 { margin-top: 32px; }

.footer {
  margin-top: 48px;
  padding-top: 16px;
  padding-bottom: 32px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}
