:root {
  --bg: #f7f7f9;
  --surface: #ffffff;
  --text: #16161d;
  --text-muted: #5a5a68;
  --border: #e4e4ea;
  --footer-text: #8b8b9e;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f13;
    --surface: #17171e;
    --text: #f0f0f3;
    --text-muted: #9d9dae;
    --border: #2a2a34;
    --footer-text: #6f6f80;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

.hero {
  padding: 64px 0 32px;
}

.hero h1 {
  font-size: 2.5rem;
  margin: 0 0 8px;
}

.subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  padding-bottom: 64px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.card-body h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

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

.dot-up { background: #2fb673; }
.dot-down { background: #e2504a; }
.dot-unknown { background: var(--text-muted); opacity: 0.5; }

.status-meta {
  display: block;
  min-height: 1.1em;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.badge-soon {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--border);
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: 999px;
}

.card-link {
  margin-top: auto;
  color: var(--accent, var(--text));
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.card-link:hover {
  text-decoration: underline;
}

.card-soon .card-link-disabled {
  color: var(--text-muted);
  font-weight: 500;
}

.footer {
  padding: 24px 0 48px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer a {
  color: var(--footer-text);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer .site-meta {
  color: var(--footer-text);
  font-size: 0.8rem;
}
