:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --panel: rgba(255, 255, 255, 0.04);
  --text: #f5f5f5;
  --muted: #a3a3a3;
  --dim: #737373;
  --border: rgba(255, 255, 255, 0.08);
  --brand: #7c3aed;
  --brand-soft: rgba(124, 58, 237, 0.18);
  --brand-border: rgba(124, 58, 237, 0.35);
}

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

html {
  scroll-behavior: smooth;
  font-family:
    "Space Grotesk", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.85;
}

.site-header {
  width: min(780px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 0;
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-header .brand:hover {
  opacity: 1;
  color: var(--brand);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  color: #c4b5fd;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shell {
  width: min(780px, calc(100% - 40px));
  margin: 0 auto;
}

.document {
  max-width: 780px;
  padding: 32px 0 72px;
}

.document h1 {
  margin: 28px 0 12px;
  font-size: clamp(36px, 6vw, 52px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.document h2 {
  margin: 36px 0 12px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.document p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.document .muted {
  color: var(--dim);
  font-size: 15px;
}

.document ul,
.document ol {
  margin: 0 0 16px;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.document li {
  margin-bottom: 8px;
}

.doc-footer {
  width: min(780px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
}

.doc-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.doc-footer p {
  margin: 0;
  font-size: 13px;
  color: var(--dim);
}

.doc-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.doc-footer-links a {
  font-size: 13px;
  color: var(--muted);
}

.doc-footer-links a:hover {
  color: var(--brand);
  opacity: 1;
}

@media (max-width: 560px) {
  .document p,
  .document ul,
  .document ol {
    font-size: 16px;
  }
}
