/* Same values as app/styles/tokens.css; this page ships without the app. */
:root {
  --text: #161c2d;
  --muted: #5e6e82;
  --bg: #f7f5f2;
  --card: #fff;
  --border: color-mix(in oklab, var(--text) 12%, transparent);
  --success: #4ac9a4;
  --danger: #ff6058;
  --warning: #ffad4a;
  --none: color-mix(in oklab, var(--text) 15%, transparent);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #eef0f5;
    --muted: #a3afbf;
    --bg: #12151f;
    --card: #1b2030;
  }
}

* {
  box-sizing: border-box;
}

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

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.5rem 1rem;
  display: grid;
  gap: 1.5rem;
}

section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 1.4rem;
}

h2 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

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

a {
  color: inherit;
}

#state {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.dot {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--none);
}

#state[data-state="up"] .dot {
  background: var(--success);
}

#state[data-state="down"] .dot {
  background: var(--danger);
}

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

.note {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

h3 {
  margin: 0;
  font-size: 1rem;
}

.component + .component {
  margin-top: 1.5rem;
}

.component-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.component-state {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.component-state[data-state="up"]::before,
.component-state[data-state="down"]::before {
  content: "";
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: var(--success);
}

.component-state[data-state="down"]::before {
  background: var(--danger);
}

.days {
  list-style: none;
  margin: 0.5rem 0;
  padding: 0;
  display: flex;
  gap: 2px;
  height: 2.25rem;
}

.days li {
  flex: 1;
  border-radius: 2px;
  background: var(--none);
}

.days li[data-level="full"] {
  background: var(--success);
}

.days li[data-level="partial"] {
  background: var(--warning);
}

.days li[data-level="low"] {
  background: var(--danger);
}
