:root {
  --bg: #ffffff;
  --bg-card: #f7f8fa;
  --bg-card-hover: #eef0f4;
  --text: #18181b;
  --text-muted: #52525b;
  --border: #e4e4e7;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --max-width: 60rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --bg-card: #18181b;
    --bg-card-hover: #27272a;
    --text: #f4f4f5;
    --text-muted: #a1a1aa;
    --border: #27272a;
    --accent: #60a5fa;
    --accent-hover: #93c5fd;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family:
    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Oxygen, Ubuntu,
    Cantarell, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.hero {
  text-align: center;
  margin-bottom: 3rem;
}

.logo {
  display: inline-block;
  width: 96px;
  height: 96px;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 1rem 0 0.5rem;
  letter-spacing: -0.02em;
}

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

.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.card:hover,
.card:focus-visible {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
  outline: none;
}

.card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.card p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card code {
  background: var(--border);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  font-size: 0.85em;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas,
    monospace;
}

.cta {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.95rem;
}

.card:hover .cta,
.card:focus-visible .cta {
  color: var(--accent-hover);
}

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

footer a {
  color: var(--text-muted);
}
