:root {
  color-scheme: dark;
  --bg: #0d0f12;
  --panel: #14181d;
  --line: #242a32;
  --ink: #e6e9ee;
  --dim: #8b949e;
  --faint: #5b636d;
  --ok: #3fb950;
  --warn: #d29922;
  --bad: #f85149;
  --accent: #6aa8ff;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 2rem 1.25rem 4rem;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 ui-sans-serif, -apple-system, "Segoe UI", Inter, Roboto, system-ui, sans-serif;
  display: flex;
  justify-content: center;
}

main { width: 100%; max-width: 40rem; }

h1 {
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.35rem;
}

h2 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--faint);
  margin: 2.5rem 0 0.75rem;
}

p { margin: 0 0 1rem; color: var(--dim); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code, .mono {
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, monospace;
  font-size: 0.88em;
}

.tagline {
  color: var(--faint);
  font-size: 0.9rem;
  margin: 0 0 2rem;
}

/* -- status indicator ---------------------------------------------------- */

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

.state {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
  font-size: 1.05rem;
}

.dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--faint);
  flex: none;
}

/* The pulse is deliberate: a page that animates is visibly live, so a frozen
   page reads as broken rather than as "everything is fine". */
.dot.live { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.is-ok   .dot { background: var(--ok);   box-shadow: 0 0 0 3px rgb(63 185 80 / 0.15); }
.is-warn .dot { background: var(--warn); box-shadow: 0 0 0 3px rgb(210 153 34 / 0.15); }
.is-bad  .dot { background: var(--bad);  box-shadow: 0 0 0 3px rgb(248 81 73 / 0.15); }

.is-ok   .state { color: var(--ok); }
.is-warn .state { color: var(--warn); }
.is-bad  .state { color: var(--bad); }

.detail {
  margin: 0.6rem 0 0;
  padding-left: 1.35rem;
  font-size: 0.9rem;
  color: var(--dim);
}

/* -- facts table --------------------------------------------------------- */

dl.facts {
  display: grid;
  grid-template-columns: minmax(7rem, auto) 1fr;
  gap: 0.45rem 1.25rem;
  margin: 0;
  font-size: 0.9rem;
}

dl.facts dt { color: var(--faint); }
dl.facts dd {
  margin: 0;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

/* -- misc ---------------------------------------------------------------- */

.note {
  border-left: 2px solid var(--line);
  padding-left: 1rem;
  font-size: 0.88rem;
  color: var(--faint);
}

footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--faint);
}

footer a { color: var(--faint); }

@media (prefers-reduced-motion: reduce) {
  .dot.live { animation: none; }
}
