:root {
  color-scheme: dark;
  --bg: #05060a;
  --bg-surface: #0f121a;
  --border: rgba(255, 255, 255, 0.14);
  --muted: rgba(255, 255, 255, 0.6);
  --accent: #58d68d;
  --accent-strong: #87f7b7;
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: #f7f9ff;
}

.page-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.site-header h1 {
  margin: 0;
  font-size: clamp(2.5rem, 3vw, 3rem);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}

.primary-nav {
  display: flex;
  gap: 1rem;
}

.primary-nav a,
.text-link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
}

.primary-nav a:hover,
.text-link:hover {
  border-color: var(--accent-strong);
}

.intro {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--bg-surface);
  margin-bottom: 2.5rem;
}

.lede {
  font-size: 1.2rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.intro-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
}

.intro-row ul {
  padding-left: 1.2rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--muted);
}

.preview {
  margin-bottom: 2rem;
}

.preview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.card {
  border-radius: 1rem;
  padding: 1.25rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008));
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card h4 {
  margin: 0;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  flex-grow: 1;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.tag--status {
  color: var(--accent-strong);
  border-color: rgba(135, 247, 183, 0.4);
}

.tag--status.tag--down {
  color: #ff8a8a;
  border-color: rgba(255, 138, 138, 0.45);
}

.pagination {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.pagination .pager {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  padding: 0.45rem 0.75rem;
  border-radius: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.button:hover {
  border-color: rgba(135, 247, 183, 0.4);
}

.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

a.card-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

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

footer {
  margin-top: 3rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .intro-row {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .primary-nav {
    flex-wrap: wrap;
  }
}
