:root {
  color-scheme: light dark;
  --bg: #f6f6f7;
  --surface: #fff;
  --ink: #1a1a1e;
  --muted: #64646d;
  --line: rgba(17, 17, 26, 0.1);
  --accent: #5b5bd6;
  --accent-soft: #eeeeff;
  --shadow: 0 16px 40px rgba(17, 17, 26, 0.08);
  font-family: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0c;
    --surface: #141417;
    --ink: #f3f3f5;
    --muted: #a1a1aa;
    --line: rgba(255, 255, 255, 0.12);
    --accent: #8585f2;
    --accent-soft: #24244a;
    --shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: radial-gradient(
      80% 45% at 50% -10%,
      color-mix(in srgb, var(--accent) 16%, transparent),
      transparent 70%
    ), var(--bg);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
}

.container {
  width: min(100% - 2rem, 70rem);
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand span {
  color: var(--accent);
}

.site-nav,
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-nav a,
.footer-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--ink);
}

main {
  padding-block: 4.5rem 5rem;
}

.breadcrumbs {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.breadcrumbs a {
  color: var(--accent);
}

.hero {
  max-width: 48rem;
  margin-bottom: 3rem;
}

.kicker {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

h1 {
  max-width: 42rem;
  font-size: clamp(2.35rem, 7vw, 4.5rem);
}

h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.15rem;
}

.lead {
  max-width: 42rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.card,
.callout {
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card {
  padding: 1.5rem;
}

.card p,
.callout p,
.prose p,
.prose li {
  color: var(--muted);
}

.card p,
.callout p {
  margin: 0;
}

.callout {
  margin-top: 1rem;
  padding: 1.5rem;
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  background: color-mix(in srgb, var(--accent-soft) 70%, var(--surface));
}

.prose {
  max-width: 48rem;
}

.prose + .prose {
  margin-top: 2.5rem;
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul,
.prose ol {
  padding-left: 1.3rem;
}

.prose li + li {
  margin-top: 0.6rem;
}

.prose a {
  color: var(--accent);
  font-weight: 600;
}

.steps {
  counter-reset: step;
}

.steps .card {
  counter-increment: step;
}

.steps .card::before {
  display: block;
  margin-bottom: 1rem;
  color: var(--accent);
  content: "Step " counter(step, decimal-leading-zero);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: 1.5rem;
  padding: 0.55rem 1rem;
  border-radius: 0.75rem;
  color: #fff;
  background: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  filter: brightness(0.95);
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  min-height: 6rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 700px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 1rem;
  }

  main {
    padding-block: 3rem 4rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 1.5rem;
  }
}
