:root {
  color-scheme: dark;
  --bg: #080809;
  --border: #26262b;
  --text: #f5f5f7;
  --muted: #c7c7ce;
  --accent: #64e68a;
  --accent-focus: #30d158;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

main.narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 72px;
}

main.narrow > a:first-child {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 16px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

main.narrow > a:first-child:hover {
  text-decoration: underline;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin: 0 0 12px;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 32px 0 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

p {
  margin: 0 0 14px;
  color: var(--muted);
}

strong {
  color: var(--text);
}

code {
  background: #16161a;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.9em;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: 2px solid var(--accent-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (max-width: 600px) {
  main.narrow {
    padding: 28px 18px 56px;
  }
}
