:root {
  color-scheme: light dark;
  --bg: #0d1117;
  --panel: #161b22;
  --border: #30363d;
  --text: #e6edf3;
  --muted: #9da7b3;
  --accent: #58a6ff;
  --accent-strong: #1f6feb;
  --max: 960px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a:hover { text-decoration: underline; }

.wrap {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--muted);
  font-weight: 600;
}

nav a[aria-current="page"] { color: var(--text); }

.hero {
  padding: 6rem 0 3rem;
}

.eyebrow {
  color: var(--accent);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1, h2 {
  line-height: 1.2;
}

h1 {
  margin: .2rem 0 1rem;
  font-size: clamp(2.6rem, 8vw, 5rem);
}

h2 {
  margin-top: 0;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

.button {
  display: inline-block;
  padding: .75rem 1rem;
  border-radius: 8px;
  background: var(--accent-strong);
  color: white;
  font-weight: 700;
}

.button:hover { text-decoration: none; }

.button.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1rem 0 2rem;
}

.card, .panel {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 12px;
}

.card {
  padding: 1.25rem;
}

.card p, .panel p, .prose p, .prose li {
  color: var(--muted);
}

.panel {
  padding: 1.5rem;
  margin: 1rem auto;
}

.prose {
  max-width: 820px;
  padding: 4rem 0;
}

.prose h1 {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
}

.prose h2 {
  margin-top: 2.4rem;
}

.prose ul {
  padding-left: 1.4rem;
}

footer {
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}

.footer-inner {
  min-height: 84px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; }
  .hero { padding-top: 4rem; }
  .nav { align-items: flex-start; padding: .9rem 0; }
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --panel: #f6f8fa;
    --border: #d0d7de;
    --text: #1f2328;
    --muted: #59636e;
    --accent: #0969da;
    --accent-strong: #1f6feb;
  }
}
