:root {
  --bg: #0b0d12;
  --bg-elevated: #12151c;
  --border: #232733;
  --text: #e8eaf0;
  --text-dim: #9aa1b2;
  --accent: #6d8dff;
  --accent-dim: #3b4a8f;
  --radius: 12px;
  --max-width: 960px;
  font-synthesis: none;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f8fa;
    --bg-elevated: #ffffff;
    --border: #e3e5ea;
    --text: #14161c;
    --text-dim: #5a6072;
    --accent: #3b5bdb;
    --accent-dim: #d6deff;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

header.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
}

header.site-header .brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

header.site-header nav a {
  margin-left: 1.25rem;
  color: var(--text-dim);
  font-size: 0.95rem;
}

header.site-header nav a:hover { color: var(--text); }

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.hero h1 {
  font-size: 2.25rem;
  margin: 0 0 0.5rem;
}

.hero p.lead {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 40em;
}

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

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color 0.15s ease;
}

.card:hover { border-color: var(--accent-dim); }

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

.card p {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin: 0;
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}
