:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1c1b19;
  --muted: #5f5c55;
  --line: #e4e0d8;
  --accent: #1f5fbf;
  --accent-soft: #e8f0fc;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131416;
    --surface: #1b1d20;
    --text: #ecebe8;
    --muted: #a3a09a;
    --line: #2d3035;
    --accent: #7fb0ff;
    --accent-soft: #1c2a40;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand { font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
nav.site { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 15px; }
nav.site a { color: var(--muted); text-decoration: none; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--text); text-decoration: underline; }

main { padding: 48px 0 64px; }

h1 { font-size: 36px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 16px; text-wrap: balance; }
h2 { font-size: 22px; line-height: 1.3; letter-spacing: -0.01em; margin: 44px 0 12px; }
h3 { font-size: 17px; margin: 28px 0 8px; }
p, ul, ol { margin: 0 0 16px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 8px; }

.lede { font-size: 20px; line-height: 1.55; color: var(--muted); margin-bottom: 28px; }
.meta { color: var(--muted); font-size: 15px; margin-bottom: 32px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 8px; }
.button {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.button:hover { text-decoration: underline; }

.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 16px 18px 16px 58px;
  margin-bottom: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
  line-height: 28px;
  text-align: center;
}
.steps strong { display: block; }

.table-scroll { overflow-x: auto; margin-bottom: 16px; }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 600; }
code { font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--accent-soft); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }

.note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 16px 18px;
  margin: 0 0 20px;
}
.note p:last-child { margin-bottom: 0; }

address { font-style: normal; margin-bottom: 16px; }

footer.site {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14.5px;
  padding: 28px 0 48px;
}
footer.site p { margin-bottom: 8px; }
footer.site a { color: var(--muted); }

@media (max-width: 520px) {
  body { font-size: 16px; }
  h1 { font-size: 29px; }
  .lede { font-size: 18px; }
  main { padding-top: 32px; }
}
