:root {
  color-scheme: dark;
  --canvas: #0b0d11;
  --surface: #141924;
  --surface-2: #10141d;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --faint: #cbd5e1;
  --line: rgba(255, 255, 255, 0.1);
  --gold: #ffc21a;
  --gold-2: #ffd24a;
  --ink: #1a1204;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 11rem;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body,
.site-header {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 50;
  background: var(--gold);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
}

.skip:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

a {
  color: var(--gold-2);
}

.wrap {
  width: min(48rem, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 13, 17, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 20px;
  padding-block: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand svg {
  width: 32px;
  height: 32px;
  flex: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--gold);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.8125rem;
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
}

.crumbs a:hover {
  color: #fff;
}

.hero {
  padding: 18px 0 8px;
}

.kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: #f8fafc;
  line-height: 1.2;
  letter-spacing: -0.03em;
  scroll-margin-top: 11rem;
}

h1 {
  margin: 0;
  font-size: clamp(1.85rem, 4.4vw, 2.6rem);
}

h2 {
  margin: 2.6rem 0 0.75rem;
  font-size: clamp(1.35rem, 2.4vw, 1.6rem);
}

h3 {
  margin: 1.4rem 0 0.35rem;
  font-size: 1.08rem;
}

.lede,
.hero-note,
p {
  margin: 0.85rem 0;
}

.lede {
  font-size: 1.125rem;
  color: var(--faint);
}

.hero-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 6px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--gold);
  border: 1px solid #e8aa00;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.cta:hover {
  background: var(--gold-2);
}

.toc {
  margin: 22px 0 0;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.toc p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.toc ol {
  margin: 0;
  padding-left: 1.2rem;
}

.toc a {
  text-underline-offset: 3px;
}

.prose a {
  text-underline-offset: 3px;
}

.steps,
.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li,
.card,
.note,
.faq-item,
.end-cta {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.steps {
  display: grid;
  gap: 12px;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 14px 16px 14px 58px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 16px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 194, 26, 0.16);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
}

.steps h3,
.card h3 {
  margin-top: 0;
}

.cards {
  display: grid;
  gap: 12px;
}

@media (min-width: 720px) {
  .cards.cols-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  padding: 16px;
}

.card p:first-of-type,
.steps p,
.note p,
.faq-item p,
.end-cta p {
  margin-top: 0.4rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 36rem;
}

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

th {
  color: #f8fafc;
  font-size: 0.9rem;
}

tr:last-child td {
  border-bottom: 0;
}

caption {
  caption-side: bottom;
  padding: 10px 14px 12px;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: left;
}

.note {
  margin: 1.25rem 0;
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
}

.note p:first-child {
  margin-top: 0;
}

.figure {
  margin: 1.25rem 0 0;
}

.figure svg {
  display: block;
  width: 100%;
  height: auto;
  background: #090b10;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.figure figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.checklist {
  display: grid;
  gap: 10px;
}

.checklist li {
  padding-left: 1.1rem;
  position: relative;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--gold);
}

.faq-item {
  padding: 14px 16px;
  margin: 12px 0;
}

.faq-item h3 {
  margin: 0;
}

.end-cta {
  margin-top: 2rem;
  padding: 18px 16px;
}

.site-footer {
  margin-top: 28px;
  padding: 22px 0 calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.site-footer a {
  color: var(--faint);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
