:root {
  --bg: #0f1115;
  --fg: #e6e9ef;
  --muted: #9aa3b2;
  --accent: #4c9aff;
  --border: #262b36;
  --card: #161a22;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

a:hover {
  text-decoration: underline;
}

header {
  border-bottom: 1px solid var(--border);
}

nav {
  max-width: 880px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .brand {
  color: var(--fg);
  font-weight: 600;
}

.brand .middot {
  color: var(--muted);
}

main {
  flex: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.hero h1 {
  font-size: 1.9rem;
  margin: 0 0 0.75rem;
}

.hero p {
  font-size: 1.05rem;
  max-width: 42em;
}

.muted {
  color: var(--muted);
}

code {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  font-size: 0.9em;
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.1rem;
  background: var(--accent);
  color: #0f1115;
  border-radius: 8px;
  font-weight: 600;
}

.btn:hover {
  text-decoration: none;
  filter: brightness(1.1);
}

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

.cards article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}

.cards h2 {
  font-size: 1.1rem;
  margin-top: 0;
}

.prose section {
  margin-bottom: 1.5rem;
}

.prose h2 {
  font-size: 1.15rem;
}

footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

footer p {
  max-width: 880px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --fg: #1a1f29;
    --muted: #5b6472;
    --accent: #1a6fe0;
    --border: #e2e5ea;
    --card: #f5f7fa;
  }

  .btn {
    color: #ffffff;
  }
}