:root {
  --bg: oklch(0.98 0.01 85);
  --fg: oklch(0.21 0 0);
  --muted: oklch(0.50 0 0);
  --card: oklch(1 0 0);
  --amber: oklch(0.78 0.13 70);
  --terracotta: oklch(0.65 0.14 30);
  --sage: oklch(0.65 0.04 145);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.header {
  border-bottom: 1px solid var(--fg);
}

.header-content {
  max-width: 48rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  color: var(--fg);
}

.logo-img { display: block; }

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav { display: flex; gap: 0.25rem; }

.nav a {
  padding: 0.5rem 0.75rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.nav a:hover { color: var(--fg); }

.main { flex: 1; }

.main-content {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.title-row h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.btn {
  padding: 0.5rem 1rem;
  background: var(--card);
  color: var(--fg);
  border: 1px solid var(--fg);
  box-shadow: 3px 3px 0 0 var(--fg);
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.btn:hover {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 0 var(--fg);
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--fg);
  box-shadow: 4px 4px 0 0 var(--fg);
}

.banner.operational { border-left: 4px solid var(--sage); }
.banner.degraded { border-left: 4px solid var(--amber); }
.banner.down { border-left: 4px solid var(--terracotta); }

.banner-content { display: flex; align-items: center; gap: 1rem; }

.banner-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--fg);
  font-family: "Space Mono", monospace;
  font-size: 1rem;
  font-weight: 700;
}

.banner.operational .banner-icon { background: var(--sage); }
.banner.degraded .banner-icon { background: var(--amber); }
.banner.down .banner-icon { background: var(--terracotta); }

.banner-text { display: flex; flex-direction: column; gap: 0.125rem; }
.banner-headline { margin: 0; font-size: 1rem; font-weight: 600; }
.banner-meta { margin: 0; font-size: 0.75rem; color: var(--muted); font-family: "Space Mono", monospace; }

.section { display: flex; flex-direction: column; gap: 0.75rem; }

.section-title {
  margin: 0;
  font-family: "Space Mono", monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.services { display: flex; flex-direction: column; gap: 0.5rem; }

.service {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1rem;
  background: var(--card);
  border: 1px solid var(--fg);
  box-shadow: 3px 3px 0 0 var(--fg);
}

.service-info { display: flex; flex-direction: column; gap: 0.125rem; }
.service-name { font-weight: 500; }
.service-desc { font-size: 0.75rem; color: var(--muted); }

.badge {
  padding: 0.25rem 0.5rem;
  font-family: "Space Mono", monospace;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--fg);
}

.badge-operational { background: var(--sage); }
.badge-degraded { background: var(--amber); }
.badge-down { background: var(--terracotta); }
.badge-warning { background: var(--terracotta); }

.error-state {
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--fg);
  box-shadow: 4px 4px 0 0 var(--fg);
  text-align: center;
}

.error-content { display: flex; flex-direction: column; align-items: center; gap: 1rem; }

.error-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--terracotta);
  border: 1px solid var(--fg);
  font-family: "Space Mono", monospace;
  font-size: 1.5rem;
  font-weight: 700;
}

.error-text { margin: 0; color: var(--muted); }

.footer {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}

.footer p { margin: 0; }

@media (max-width: 640px) {
  .nav { display: none; }
  .title-row { flex-direction: column; align-items: flex-start; }
  .banner { flex-direction: column; align-items: flex-start; }
}
