:root {
  --bg: #0b0a16;
  --bg-raised: #15132a;
  --border: #2a2647;
  --text: #e8e6f5;
  --text-muted: #a19dbf;
  --accent: #a78bfa;
  --accent-strong: #c4b5fd;
  --danger: #f87171;
  --radius: 14px;
  --max: 720px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, #2a1f5c55, transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

header.site {
  padding: 22px 0;
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 650; letter-spacing: 0.02em;
}
.brand svg { width: 26px; height: 26px; }
header.site nav a { color: var(--text-muted); text-decoration: none; font-size: 15px; }
header.site nav a:hover { color: var(--text); }

main { flex: 1; padding: 24px 0 64px; }

h1 { font-size: clamp(30px, 6vw, 42px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.01em; }
h2 { font-size: 22px; margin: 40px 0 10px; }
h3 { font-size: 18px; margin: 24px 0 6px; }
p, ul, ol { margin: 0 0 16px; }
li { margin-bottom: 6px; }

.lede { color: var(--text-muted); font-size: 19px; margin-bottom: 28px; }
.meta { color: var(--text-muted); font-size: 14px; }

.hero { padding: 48px 0 24px; }

.card {
  display: block;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 16px 0;
  color: inherit;
  text-decoration: none;
}
a.card { transition: border-color 0.15s, transform 0.15s; }
a.card:hover { border-color: var(--accent); color: inherit; transform: translateY(-1px); }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card .tag {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 6px;
}
.card.muted { border-style: dashed; color: var(--text-muted); }

.callout {
  border-left: 3px solid var(--accent);
  background: var(--bg-raised);
  padding: 14px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 20px 0;
}
.callout p:last-child { margin-bottom: 0; }

ol.steps { padding-left: 22px; }
ol.steps li { padding-left: 4px; margin-bottom: 10px; }

.button {
  display: inline-block;
  background: var(--accent);
  color: #120f24;
  font-weight: 650;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 999px;
}
.button:hover { background: var(--accent-strong); color: #120f24; }

table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--text-muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }

code { background: var(--bg-raised); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; font-size: 0.9em; }

footer.site {
  border-top: 1px solid var(--border);
  padding: 24px 0 32px;
  color: var(--text-muted);
  font-size: 14px;
}
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer.site a { color: var(--text-muted); }
footer.site a:hover { color: var(--text); }
