:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --text: #1d1b26;
  --muted: #5d5a6b;
  --line: #e6e2ea;
  --accent: #4a37d6;
  --accent-2: #ff6b5b;
  --code-bg: #f3f0f7;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14121b;
    --surface: #1c1a25;
    --text: #ecebf2;
    --muted: #a7a3b6;
    --line: #2e2b3a;
    --accent: #a99cff;
    --accent-2: #ff8c7f;
    --code-bg: #25222f;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

.top {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.top .wrap { display: flex; align-items: center; gap: 12px; padding-block: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 650; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.top nav { margin-left: auto; display: flex; gap: 16px; flex-wrap: wrap; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--text); }

.wrap { max-width: 46rem; margin: 0 auto; padding-inline: 16px; }
main.wrap { padding-block: 40px 56px; }

h1 { font-size: clamp(1.7rem, 4vw, 2.2rem); line-height: 1.2; margin: 0 0 8px; letter-spacing: -0.01em; }
h2 { font-size: 1.25rem; margin: 2.2em 0 0.5em; padding-top: 0.4em; }
h3 { font-size: 1.05rem; margin: 1.6em 0 0.4em; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: 0.35em; }
.meta { color: var(--muted); font-size: 0.92rem; margin-bottom: 28px; }
.lead { font-size: 1.1rem; color: var(--muted); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 24px 0;
}
.card h2 { margin-top: 0; padding-top: 0; }
.summary li { margin-bottom: 0.5em; }

.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; margin-bottom: 16px; }
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 700; font-size: 0.9rem;
}

.table-wrap { overflow-x: auto; margin: 0 0 1.2em; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { font-weight: 650; background: var(--code-bg); }

code, kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--code-bg);
  padding: 1px 6px;
  border-radius: 5px;
}
.hero { display: flex; gap: 20px; align-items: center; margin-bottom: 8px; }
.hero img { width: 72px; height: 72px; border-radius: 18px; flex: none; }

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
footer .wrap { padding-block: 22px 32px; display: flex; gap: 8px 18px; flex-wrap: wrap; }
footer a { color: var(--muted); }

@media (max-width: 520px) {
  .top nav { margin-left: 0; width: 100%; }
  .hero { flex-direction: column; align-items: flex-start; }
}
