:root {
  --night: #0f1b33;
  --ink: #16213a;
  --text: #2b3448;
  --muted: #5d6781;
  --line: #e3e7ef;
  --soft: #f5f7fb;
  --blue: #1f6feb;
  --blue-dark: #1558c4;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #fff;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px max(16px, calc((100% - 760px) / 2));
  background: var(--night);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.brand img { border-radius: 7px; }

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 16px 48px;
}

h1 {
  margin: 36px 0 18px;
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h2 {
  margin: 44px 0 10px;
  font-size: 25px;
  line-height: 1.25;
  color: var(--ink);
}

p, ul, ol { margin: 0 0 16px; }
li { margin-bottom: 6px; }
strong { color: var(--ink); }

a { color: var(--blue); }

.button {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.button:hover { background: var(--blue-dark); }
.button--small { padding: 8px 14px; font-size: 15px; white-space: nowrap; }
.cta { margin: 24px 0; }

figure { margin: 24px 0 8px; }

figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--soft);
  font: 0.9em ui-monospace, Consolas, monospace;
}

pre {
  overflow-x: auto;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
}

pre code { padding: 0; background: none; }

.table { overflow-x: auto; margin-bottom: 16px; }

table { width: 100%; border-collapse: collapse; }

th, td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th { color: var(--ink); background: var(--soft); }

em { color: var(--muted); }

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: center;
  padding: 24px 16px 32px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

footer a { color: var(--muted); }
