:root {
  color-scheme: dark;
  --bg: #0c0f14;
  --bg-elevated: #151a21;
  --line: #2a3340;
  --text: #e8edf2;
  --muted: #8b97a5;
  --accent: #7dd3c0;
  --accent-dim: #1d3a36;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  background:
    radial-gradient(900px 480px at 10% -10%, #1b2a2c 0%, transparent 55%), var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
  line-height: 1.5;
}

a {
  color: var(--accent);
}

a:hover {
  text-decoration-thickness: 2px;
}

.wrap {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 16px;
}

.nav a,
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

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

main {
  padding: 24px 0 64px;
}

.kicker {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0 0 12px;
  line-height: 1.15;
}

h1 {
  max-width: 16ch;
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.lede {
  max-width: 62ch;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 1.05rem;
}

.note {
  max-width: 70ch;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.95rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}

.button-primary {
  background: var(--accent);
  color: #08201c;
}

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

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 40px;
}

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

.card {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-elevated);
}

.card h2 {
  font-size: 1rem;
}

pre {
  margin: 0;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0 0 40px;
  list-style: none;
}

.features li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elevated);
}

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

.not-found {
  padding: 72px 0;
}

.not-found h1 {
  max-width: none;
}
