/* Oodle Docs status page — minimal, dependency-free. British English in copy. */

:root {
  --bg: #0f172a;
  --card: #1e293b;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --border: #334155;
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #ef4444;
  --grey: #64748b;
  --max-width: 720px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #475569;
    --border: #e2e8f0;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

header {
  margin-bottom: 2rem;
}

header h1 {
  margin: 0 0 0.25rem;
  font-size: 1.75rem;
}

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.card h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.overall h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.overall.operational h2 {
  color: var(--green);
}

.overall.degraded h2 {
  color: var(--amber);
}

.overall.outage h2 {
  color: var(--red);
}

.overall.maintenance h2 {
  color: var(--grey);
}

#component-list,
#incident-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.component {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.component:last-child {
  border-bottom: none;
}

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

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-pill::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  display: inline-block;
}

.status-pill.operational {
  background: rgba(34, 197, 94, 0.1);
  color: var(--green);
}

.status-pill.operational::before {
  background: var(--green);
}

.status-pill.degraded {
  background: rgba(245, 158, 11, 0.1);
  color: var(--amber);
}

.status-pill.degraded::before {
  background: var(--amber);
}

.status-pill.outage {
  background: rgba(239, 68, 68, 0.1);
  color: var(--red);
}

.status-pill.outage::before {
  background: var(--red);
}

.status-pill.maintenance {
  background: rgba(100, 116, 139, 0.1);
  color: var(--grey);
}

.status-pill.maintenance::before {
  background: var(--grey);
}

.incident {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.incident:last-child {
  border-bottom: none;
}

.incident-title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
}

.incident-meta {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.incident-updates {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  border-left: 2px solid var(--border);
  padding-left: 1rem;
}

.incident-updates li {
  margin-bottom: 0.5rem;
}

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

footer {
  margin-top: 2rem;
  text-align: center;
}
