:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --ink: #1d1f22;
  --muted: #5b6168;
  --line: #e3e3df;
  --accent: #c8102e;
  --accent-ink: #ffffff;
  --code: #f0f0ec;
  --max: 760px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141517;
    --surface: #1c1e21;
    --ink: #ececea;
    --muted: #a3a8ae;
    --line: #2e3135;
    --accent: #ef3b52;
    --code: #24272b;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 650; font-size: 18px; }
.brand img { width: 32px; height: 32px; border-radius: 7px; }
nav { display: flex; gap: 18px; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: 16px; padding-right: 16px; }
main.wrap { padding-top: 40px; padding-bottom: 56px; }

.hero { display: flex; gap: 24px; align-items: center; margin-bottom: 28px; }
.hero img { width: 96px; height: 96px; border-radius: 20px; flex: none; }
.hero h1 { margin: 0 0 6px; font-size: 34px; line-height: 1.2; }
.hero p { margin: 0; color: var(--muted); font-size: 18px; }
@media (max-width: 520px) {
  .hero { flex-direction: column; align-items: flex-start; }
  .hero h1 { font-size: 28px; }
}

h1 { font-size: 30px; line-height: 1.25; margin: 0 0 6px; }
h2 { font-size: 21px; margin: 36px 0 10px; padding-top: 4px; }
h3 { font-size: 17px; margin: 24px 0 6px; }
p, ul, ol { margin: 0 0 14px; }
li { margin-bottom: 6px; }
.meta { color: var(--muted); font-size: 14px; margin-bottom: 28px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 18px 0;
}
.card > :last-child { margin-bottom: 0; }
.callout { border-left: 4px solid var(--accent); }

table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { font-weight: 600; }
.table-scroll { overflow-x: auto; }
code { background: var(--code); padding: 1px 6px; border-radius: 5px; font-size: 0.9em; word-break: break-all; }

.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 40px; margin-bottom: 14px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-size: 14px; font-weight: 650;
}

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer .wrap { padding-top: 22px; padding-bottom: 28px; }
.site-footer nav { margin-bottom: 8px; }
.site-footer p { margin: 4px 0; }
