/* Out-of-band status page. Self-contained: no fonts, no images, no third-party CSS —
   the CSP on this distribution is `default-src 'none'`, and the page's job is to load
   when nothing else does. Colours are chosen so every status is distinguishable by
   text as well as hue (the label is always printed). */

:root {
  color-scheme: light dark;
  --bg: #faf9f6;
  --card: #ffffff;
  --ink: #1f1d1a;
  --muted: #6b665e;
  --rule: #e6e2da;
  --green: #1e7a4a;
  --orange: #a35d00;
  --red: #b3261e;
  --gray: #7a746b;
  --link: #8c6e2d;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16150f;
    --card: #1f1e17;
    --ink: #f3efe6;
    --muted: #b1aa9d;
    --rule: #33312a;
    --green: #5ec48a;
    --orange: #f0a545;
    --red: #ef6a62;
    --gray: #9d968a;
    --link: #d1b06a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding: 40px 16px 48px;
}

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

a { color: var(--link); }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

.page-header { margin-bottom: 24px; }
.eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
h1 { margin: 0 0 8px; font-size: 22px; font-weight: 500; }
.muted { color: var(--muted); margin: 0; }
.small { font-size: 12px; }
.center { text-align: center; margin-top: 32px; }

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 2px;
}

.overall {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
}
.overall .headline { margin: 0; font-size: 16px; }
.dot {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gray);
}
[data-state="operational"] .dot { background: var(--green); }
[data-state="degraded"] .dot { background: var(--orange); }
[data-state="outage"] .dot { background: var(--red); }
[data-state="unknown"] .dot,
[data-state="loading"] .dot,
[data-state="unreachable"] .dot { background: var(--gray); }

.section { margin-top: 24px; }
.section-title {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.list > .row + .row { border-top: 1px solid var(--rule); }
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
}
.row .label { margin: 0; }
.row .detail { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.row .right { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.uptime { font-size: 12px; color: var(--muted); }
@media (max-width: 480px) { .uptime { display: none; } }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 12px;
  border: 1px solid currentColor;
}
.badge.operational { color: var(--green); }
.badge.degraded { color: var(--orange); }
.badge.outage { color: var(--red); }
.badge.unknown { color: var(--gray); }
.badge.resolved { color: var(--green); }
.badge.investigating, .badge.identified, .badge.monitoring { color: var(--orange); }
.badge.critical { color: var(--red); }

.incident { padding: 14px 20px; margin-bottom: 12px; }
.incident .title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.incident h3 { margin: 0; font-size: 15px; font-weight: 500; }
.incident .when { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.updates {
  list-style: none;
  margin: 12px 0 0;
  padding: 0 0 0 14px;
  border-left: 1px solid var(--rule);
}
.updates li + li { margin-top: 8px; }
.updates .meta { margin: 0; font-size: 12px; color: var(--muted); }
.updates .body { margin: 0; }

.notice {
  padding: 14px 20px;
  text-align: center;
}
