/*
 * status.tanzanite.ai — one hand-written stylesheet, no framework, no fonts
 * fetched from anywhere. Light and dark come from prefers-color-scheme only;
 * there is no theme toggle to persist and nothing to store.
 */

:root {
  --bg: #fbfbfd;
  --fg: #16161a;
  --muted: #6b6b76;
  --card: #ffffff;
  --line: #e4e4ea;
  --ok: #16794a;
  --ok-dot: #1aa35f;
  --bad: #9a5b09;
  --bad-dot: #d08214;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e11;
    --fg: #f2f2f5;
    --muted: #9a9aa6;
    --card: #17171c;
    --line: #2a2a33;
    --ok: #56d39a;
    --ok-dot: #29b877;
    --bad: #e8ab54;
    --bad-dot: #d08214;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 34rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.head h1 {
  margin: 0 0 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.verdict {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem 1.5rem 1.4rem;
}

.dot {
  width: 10px;
  height: 10px;
  margin: 0 0 0.9rem;
  border-radius: 50%;
  background: var(--muted);
}

.verdict[data-state="operational"] .dot {
  background: var(--ok-dot);
}

.verdict[data-state="degraded"] .dot {
  background: var(--bad-dot);
}

.headline {
  margin: 0 0 0.35rem;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.2;
}

.verdict[data-state="operational"] .headline {
  color: var(--ok);
}

.verdict[data-state="degraded"] .headline {
  color: var(--bad);
}

.sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.note {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--bad-dot);
  border-radius: 10px;
  background: var(--card);
  font-size: 0.9rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.checks {
  margin-top: 1.75rem;
}

.checks h2 {
  margin: 0 0 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.checks ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  overflow: hidden;
}

.checks li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}

.checks li:first-child {
  border-top: 0;
}

.checks li .name {
  overflow-wrap: anywhere;
}

.checks li .state {
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.checks li[data-state="ok"] .state {
  color: var(--ok);
}

.checks li[data-state="degraded"] .state {
  color: var(--bad);
}

.meta {
  margin: 1.75rem 0 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.meta div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.meta dt {
  color: var(--muted);
}

.meta dd {
  margin: 0;
}

.foot {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

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

.foot a:hover,
.sub a:hover {
  color: var(--fg);
  text-decoration: underline;
}

[hidden] {
  display: none !important;
}
