:root {
  --ink: #0e1a24;
  --ink-soft: #243447;
  --paper: #f4f6f8;
  --surface: #ffffff;
  --accent: #0b7ea4;
  --accent-deep: #086482;
  --accent-soft: #d7eef5;
  --line: #d5e0e8;
  --muted: #5e6f7d;
  --white: #ffffff;
  --danger: #b42318;
  --shadow: 0 1px 2px rgba(14, 26, 36, 0.04), 0 12px 32px rgba(14, 26, 36, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef3f6;
    --ink-soft: #c5d2dc;
    --paper: #0e151b;
    --surface: #152029;
    --accent: #4eb3c9;
    --accent-deep: #7cc8d8;
    --accent-soft: rgba(78, 179, 201, 0.14);
    --line: #243443;
    --muted: #8aa0ae;
    --white: #0e151b;
    --danger: #f97066;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-deep); }
a:hover { color: var(--accent); }
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { left: 8px; }

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  max-width: 840px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.04em;
  text-decoration: none;
  color: var(--ink);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 14px;
  font-size: 13px;
  font-weight: 500;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.wrap {
  max-width: 840px;
  margin: 0 auto;
  padding: 36px 22px 48px;
}

.kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
h1 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.lede {
  margin: 0 0 14px;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.meta {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 13px;
}

.toc {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 4px 16px;
  margin: 0 0 12px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.toc p {
  grid-column: 1 / -1;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.toc a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
}
.toc a:hover { color: var(--accent-deep); }

article section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
article section:first-of-type { border-top: 0; }
article h2 {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin: 0 0 12px;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.num {
  flex: none;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-deep);
}
article p { margin: 0 0 12px; color: var(--ink-soft); }
article p:last-child { margin-bottom: 0; }
article ul, article ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
article li {
  position: relative;
  padding: 8px 0 8px 18px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
article li:last-child { border-bottom: 0; }
article ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--accent);
}
.note {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 14px;
}

.cards {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 8px 0 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
}
.card h2,
.card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.card p { margin: 0; font-size: 14px; color: var(--ink-soft); }

.steps {
  counter-reset: step;
  display: grid;
  gap: 12px;
  margin: 8px 0 24px;
}
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.step::before {
  content: counter(step);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { margin: 0 0 4px; font-size: 15px; }
.step p { margin: 0; font-size: 14px; color: var(--ink-soft); }

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.cta:hover { color: var(--paper); opacity: 0.92; }

.company {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-soft);
}
.company strong { color: var(--ink); font-weight: 700; }

.site-foot {
  border-top: 1px solid var(--line);
  padding: 22px;
}
.site-foot-inner {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}
.site-foot nav { display: flex; flex-wrap: wrap; gap: 14px; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--ink); }

@media (max-width: 420px) {
  .nav { font-size: 12px; gap: 6px 12px; }
}
