:root {
  --bg: #fafafa;
  --fg: #1b1b1f;
  --muted: #5f5f6b;
  --primary: #3f51b5;
  --border: #e0e0e6;
  --danger: #b3261e;
  color-scheme: light dark;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131316;
    --fg: #e4e4ea;
    --muted: #a0a0ad;
    --primary: #9fa8da;
    --border: #2c2c33;
  }
}

body { margin: 0; background: var(--bg); color: var(--fg); line-height: 1.5; }
.page { max-width: 960px; margin: 0 auto; padding: 32px 20px; }
.footer { text-align: center; color: var(--muted); padding: 24px; }
a { color: var(--primary); }
.button, button {
  display: inline-block; padding: 10px 18px; border-radius: 10px; border: 0;
  background: var(--primary); color: #fff; text-decoration: none; font: inherit; cursor: pointer;
}
button.secondary { background: transparent; color: var(--primary); border: 1px solid var(--border); }
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.muted { color: var(--muted); }
.error { color: var(--danger); }
table { width: 100%; border-collapse: collapse; margin-top: 16px; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--border); }
[hidden] { display: none !important; }

.site-header { border-bottom: 1px solid var(--border); }
.header-inner { padding-top: 16px; padding-bottom: 16px; }
.brand { margin: 0; font-weight: 700; letter-spacing: -0.02em; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lead { max-width: 38rem; font-size: 1.15rem; }
.modules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.modules article {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
}
.modules h2 { margin: 0 0 8px; font-size: 1.1rem; }
.modules p { margin: 0; color: var(--muted); }
@media (max-width: 720px) {
  .modules { grid-template-columns: 1fr; }
}
