:root {
  --bg: #050509;
  --bg-panel: #111320;
  --border: #30354b;
  --accent: #3bff9c;
  --error: #ff4b81;
  --text: #f5f7ff;
  --muted: #9aa0c2;
  --code: #d6e3ff;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #151a33 0, #050509 55%, #000 100%);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
}

.screen {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

/* header */

.site-header {
  margin-bottom: 1.8rem;
}

.site-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.site-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(59, 255, 156, 0.9);
}

.site-title {
  margin: 0.7rem 0 0.25rem;
  font-size: 1.9rem;
  text-transform: lowercase;
}

.site-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 30rem;
}

.site-nav {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.8rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  border: 1px solid transparent;
  background: rgba(8, 10, 20, 0.9);
}

.site-nav a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* cards */

.stack {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.card {
  background: var(--bg-panel);
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.75rem;
  background: #0b0d18;
  font-family: "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.78rem;
}

.traffic-lights {
  display: inline-flex;
  gap: 0.2rem;
  margin-right: 0.4rem;
}

.traffic-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #3a3d55;
}

.traffic-dot.red { background: #ff5f57; }
.traffic-dot.yellow { background: #ffbd2e; }
.traffic-dot.green { background: #28c840; }

.card-path {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
}

.card-status {
  white-space: nowrap;
  text-align: right;
}

.card-status .code {
  color: var(--error);
  font-weight: 600;
  margin-right: 0.35rem;
}

.card-status .label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.card-body {
  padding: 0.9rem 0.9rem 1rem;
  font-size: 0.9rem;
}

.card-body h2 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.card-body ul {
  margin: 0.4rem 0 0.2rem 1.1rem;
  padding: 0;
  color: var(--muted);
}

code {
  font-family: "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.8rem;
  color: var(--code);
}

a.inline {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dotted rgba(59, 255, 156, 0.7);
}

a.inline:hover {
  border-bottom-style: solid;
}

.site-footer {
  margin-top: 2rem;
  padding-top: 0.8rem;
  border-top: 1px solid #1f2336;
  font-size: 0.75rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .screen {
    padding: 1.7rem 1rem 2.4rem;
  }
}
