:root {
  --bg: #fbfbfd;
  --panel: #ffffff;
  --text: #101114;
  --muted: #4f5663;
  --line: rgba(16, 17, 20, 0.12);
  --brand: #5E00FF;
  --link: var(--brand);
  --code: #1b1f2a;
  --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(251, 251, 253, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}
.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 10px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
}
.brand img,
.brand .brand-logo {
  height: 24px;
  width: auto;
  display: block;
}
.nav { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); }

main { padding: 3.5rem 0 2.5rem; }
main > h1 { margin-top: 1rem; }
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 color-mix(in srgb, var(--brand) 35%, var(--line));
  color: var(--text);
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  text-decoration: none;
  font-weight: 600;
}
.btn:hover {
  text-decoration: none;
  border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
  background: color-mix(in srgb, var(--brand) 18%, transparent);
}

code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
code {
  color: var(--code);
  background: rgba(94, 0, 255, 0.06);
  border: 1px solid rgba(94, 0, 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);
}
