:root {
  --bg: #fafafa;
  --fg: #111;
  --muted: #666;
  --border: #ddd;
  --link: #2563eb;
  --green: #22c55e;
  --yellow: #eab308;
  --red: #ef4444;
  --unknown: #9ca3af;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
}

.container { max-width: 960px; margin: 0 auto; padding: 0 1rem; }

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  margin-bottom: 1.5rem;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

nav a {
  margin-left: 1rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

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

h1 { font-size: 1.75rem; margin: 0 0 0.25rem; }
h2 { font-size: 1.2rem; margin-top: 2rem; }

.subtitle { color: var(--muted); margin-top: 0; }
.meta { color: var(--muted); font-size: 0.9rem; }
.hint { color: var(--muted); font-size: 0.85rem; }
.empty, .error { color: var(--muted); padding: 1rem 0; }

.table-wrap { overflow-x: auto; margin: 1rem 0; }

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.9rem;
}

th, td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.65rem;
  text-align: left;
}

th { background: #f3f4f6; font-weight: 600; }

a { color: var(--link); }

.indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.indicator.green { background: var(--green); }
.indicator.yellow { background: var(--yellow); }
.indicator.red { background: var(--red); }
.indicator.unknown { background: var(--unknown); }

.site-footer {
  margin-top: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

.prose section { margin-bottom: 1.5rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.35rem; }

.heatmap-table th, .heatmap-table td {
  font-size: 0.75rem;
  text-align: center;
  min-width: 3rem;
}

.heatmap-table th:first-child { text-align: left; }

@media (max-width: 640px) {
  h1 { font-size: 1.4rem; }
  nav a { margin-left: 0.6rem; font-size: 0.85rem; }
}
