:root {
  --bg: #0b0c10;
  --panel: #11131a;
  --text: #e8eaf0;
  --muted: #a7afc3;
  --line: rgba(232, 234, 240, 0.12);
  --link: #8ab4ff;
  --code: #d7e3ff;
  --max: 76ch;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: calc(var(--max) + 2rem); margin: 0 auto; padding: 0 1rem; }

.top {
  position: sticky;
  top: 0;
  background: rgba(11, 12, 16, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
}
.brand {
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--text);
}
.nav { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); }

main { padding: 2rem 0 2.5rem; }
section {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}
section:first-of-type { border-top: 0; }

h1, h2, h3 { line-height: 1.25; }
h1 { font-size: 1.9rem; margin: 0 0 0.5rem; }
h2 { font-size: 1.35rem; margin: 0 0 0.5rem; }
h3 { font-size: 1.05rem; margin: 0.75rem 0 0.5rem; color: var(--muted); font-weight: 600; }

p { margin: 0.6rem 0; }
ul { margin: 0.6rem 0; padding-left: 1.2rem; }
li { margin: 0.25rem 0; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(138, 180, 255, 0.08);
  text-decoration: none;
  font-weight: 600;
}
.btn:hover {
  text-decoration: none;
  border-color: rgba(138, 180, 255, 0.28);
  background: rgba(138, 180, 255, 0.12);
}

code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
code {
  color: var(--code);
  background: rgba(138, 180, 255, 0.08);
  border: 1px solid rgba(138, 180, 255, 0.14);
  padding: 0.08rem 0.35rem;
  border-radius: 6px;
}
pre {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1rem;
  border-radius: 10px;
  overflow: auto;
  white-space: pre;
}

.muted { color: var(--muted); }
.footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 2rem;
  color: var(--muted);
}
