:root {
  --bg: #fafafa;
  --text: #111827;
  --muted: #6b7280;
  --green: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
  --card: #ffffff;
  --border: #e5e7eb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1419;
    --text: #e4e4e7;
    --muted: #9ca3af;
    --card: #1a1f24;
    --border: #2a3038;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

header {
  padding: 40px 24px 16px;
  text-align: center;
}

header h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

header .subtitle {
  color: var(--muted);
  margin-top: 6px;
  font-size: 15px;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 24px 48px;
}

section {
  margin-bottom: 28px;
}

section h2 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 10px;
  padding-left: 4px;
}

.status-banner {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
}

.status-banner h2 {
  font-size: 22px;
  margin-bottom: 4px;
  text-transform: none;
  letter-spacing: normal;
  padding-left: 0;
}

.status-banner.green h2 { color: var(--green); }
.status-banner.amber h2 { color: var(--amber); }
.status-banner.red h2 { color: var(--red); }
.status-banner.unknown h2 { color: var(--muted); }
.status-banner p { color: var(--muted); }

.service-list,
.provider-list {
  list-style: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.service-list li,
.provider-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.service-list li:last-child,
.provider-list li:last-child {
  border-bottom: none;
}

.service-name {
  font-weight: 500;
}

.service-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}

.provider-list a.service-status:hover {
  color: var(--text);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
}

.status-dot.green {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.status-dot.amber {
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.status-dot.red {
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.incident-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--amber);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.incident-card:last-child {
  margin-bottom: 0;
}

.incident-card.red { border-left-color: var(--red); }
.incident-card.green { border-left-color: var(--green); }

.incident-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.incident-card p {
  color: var(--muted);
  font-size: 14px;
}

.incident-card time {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-top: 8px;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

a {
  color: inherit;
}

footer {
  text-align: center;
  padding: 24px;
  color: var(--muted);
  font-size: 13px;
}

footer p {
  margin-bottom: 4px;
}

footer a {
  color: inherit;
  text-decoration: underline;
}
