:root {
  /* Dark theme by default (#3). All UI colors derive from these tokens.
     Text colors meet WCAG AA (>=4.5:1) against --card, where the content
     sits; the status hues (online/offline/checking) stay distinct on dark. */
  --bg: #14161a;
  --card: #22252b;
  --ink: #e8e6e1;
  --muted: #a6acb6;
  --accent: #7fc191;
  --online: #66bb6a;
  --offline: #f2645f;
  --checking: #ffb74d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

.card {
  width: min(32rem, 100%);
  background: var(--card);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

h1 {
  margin: 0;
  color: var(--accent);
}

.tagline {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.placeholder {
  margin: 1.5rem 0;
}

.health h2 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.status {
  margin: 0;
  font-weight: 600;
}

.status--checking {
  color: var(--checking);
}

.status--online {
  color: var(--online);
}

.status--offline {
  color: var(--offline);
}

.lang {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.lang button {
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
}

.lang button:hover {
  background: var(--accent);
  color: var(--bg);
}
