:root {
  --bg: #ffffff;
  --fg: #171717;
  --muted: rgba(23, 23, 23, 0.72);
  --faint: rgba(23, 23, 23, 0.52);
  --border: rgba(23, 23, 23, 0.14);
  --soft: rgba(23, 23, 23, 0.045);
  --header: rgba(255, 255, 255, 0.88);
  --code-bg: rgba(23, 23, 23, 0.05);
  --accent: #1d4ed8;
  --shadow: 0 30px 70px rgba(23, 23, 23, 0.07);
  --max: 72rem;
  --header-h: 4.25rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --fg: #ededed;
    --muted: rgba(237, 237, 237, 0.72);
    --faint: rgba(237, 237, 237, 0.52);
    --border: rgba(237, 237, 237, 0.16);
    --soft: rgba(237, 237, 237, 0.05);
    --header: rgba(10, 10, 10, 0.88);
    --code-bg: rgba(237, 237, 237, 0.06);
    --accent: #93c5fd;
    --shadow: none;
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

a:hover {
  color: var(--fg);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  background: var(--fg);
  color: var(--bg);
  padding: 0.5rem 0.8rem;
  border-radius: 0.5rem;
  z-index: 100;
}

.skip:focus {
  transform: none;
  top: 0.5rem;
}

.wrap {
  width: min(var(--max), calc(100% - 3rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.45rem;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
}

.burger,
.burger::before,
.burger::after {
  display: block;
  width: 1rem;
  height: 1.5px;
  background: var(--fg);
  border-radius: 1px;
  position: relative;
}

.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 0;
}

.burger::before {
  top: -5px;
}

.burger::after {
  top: 5px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.92rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--fg);
}

.nav-cta {
  color: var(--bg) !important;
  background: var(--fg);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
}

.nav-cta:hover {
  opacity: 0.9;
}

main {
  display: block;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 4rem;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: -16rem;
  left: 50%;
  width: 46rem;
  height: 28rem;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(37, 99, 235, 0.16), transparent 68%);
  pointer-events: none;
}

.hero .wrap,
.section .wrap {
  position: relative;
}

.kicker,
.eyebrow {
  color: var(--faint);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.page-head h1 {
  letter-spacing: -0.035em;
  line-height: 1.08;
  font-weight: 620;
}

.hero h1 {
  margin: 1.25rem auto 0;
  max-width: 16ch;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
}

.lede,
.section .intro,
.page-head p {
  color: var(--muted);
  font-size: 1.08rem;
}

.lede {
  max-width: 42rem;
  margin: 1.25rem auto 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.actions.start {
  justify-content: flex-start;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.button.primary {
  background: var(--fg);
  color: var(--bg);
}

.button.primary:hover {
  opacity: 0.9;
}

.button.secondary {
  border-color: var(--border);
  color: var(--fg);
}

.button.secondary:hover {
  background: var(--soft);
}

.fine {
  color: var(--faint);
  font-size: 0.82rem;
  margin-top: 1rem;
}

.banner {
  width: min(46rem, 100%);
  margin: 0 auto 1.5rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--soft);
  color: var(--muted);
  font-size: 0.92rem;
}

.strip {
  border-block: 1px solid var(--border);
  padding: 1.1rem 0;
}

.strip ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 4.5rem 0;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.section h2,
.page-head h1 {
  margin: 0.7rem 0 0;
  max-width: 18ch;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.section .intro {
  max-width: 40rem;
  margin-top: 0.9rem;
}

.grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 2rem;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.step {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.15rem 1.15rem 1.2rem;
  background: var(--card);
}

.card h3,
.step h3 {
  margin: 0;
  font-size: 1.02rem;
}

.card p,
.step p,
.prose p,
.prose li {
  color: var(--muted);
}

.card p,
.step p {
  margin: 0.55rem 0 0;
  font-size: 0.95rem;
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--faint);
  font-size: 0.78rem;
}

.figure {
  margin: 2rem 0 0;
}

.shot {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.shot img {
  display: block;
  width: 100%;
  min-width: 42rem;
  height: auto;
}

figcaption {
  color: var(--faint);
  font-size: 0.88rem;
  margin-top: 0.65rem;
}

.checks {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.checks li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
}

.checks strong {
  display: block;
}

.checks span {
  color: var(--muted);
}

code,
pre {
  font-family: ui-monospace, "SFMono-Regular", "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

p code,
li code {
  background: var(--code-bg);
  border-radius: 0.3rem;
  padding: 0.1rem 0.3rem;
  font-size: 0.86em;
}

pre {
  overflow-x: auto;
  margin: 0.8rem 0 0;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  background: var(--code-bg);
  font-size: 0.84rem;
  line-height: 1.55;
}

.hash {
  word-break: break-all;
}

.page {
  padding: 3.5rem 0 4.5rem;
}

.page-head {
  max-width: 44rem;
}

.page-head p {
  margin-top: 1rem;
}

.prose {
  max-width: 44rem;
  margin-top: 2rem;
}

.prose h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.prose ul {
  padding-left: 1.15rem;
}

.prose a {
  color: var(--accent);
}

.contact-link {
  display: inline-flex;
  margin-top: 1.4rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  text-decoration: none;
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.6rem 0 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
}

.footer-bar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.2rem;
}

.footer-bar a {
  color: var(--muted);
  text-decoration: none;
}

.footer-bar a:hover {
  color: var(--fg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 860px) {
  .nav-button {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.4rem 1.5rem 1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }

  .nav a {
    padding: 0.7rem 0;
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.3rem;
  }

  .nav-toggle:checked ~ .nav {
    display: flex;
  }

  .nav-toggle:focus-visible ~ .nav-button {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
  }

  .grid.three,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3.2rem;
  }

  .wrap {
    width: min(var(--max), calc(100% - 2rem));
  }
}

@media (min-width: 861px) and (max-width: 1100px) {
  .grid.three {
    grid-template-columns: 1fr 1fr;
  }
}
