:root {
  color-scheme: light dark;
  --bg: oklch(97.5% 0.006 255);
  --surface: oklch(94% 0.01 255);
  --ink: oklch(24% 0.025 255);
  --muted: oklch(44% 0.025 255);
  --line: oklch(87% 0.012 255);
  --accent: oklch(48% 0.19 258);
  --accent-ink: oklch(98% 0.005 258);
  --shadow: 0 1px 2px oklch(24% 0.03 255 / 0.1), 0 14px 36px oklch(24% 0.03 255 / 0.14);
  --font: system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --measure: 62ch;
  --pad: clamp(1.25rem, 5vw, 3rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: oklch(19% 0.012 255);
    --surface: oklch(24% 0.015 255);
    --ink: oklch(94% 0.01 255);
    --muted: oklch(75% 0.02 255);
    --line: oklch(33% 0.02 255);
    --accent: oklch(72% 0.14 255);
    --accent-ink: oklch(18% 0.03 255);
    --shadow: 0 1px 2px oklch(0% 0 0 / 0.4), 0 14px 36px oklch(0% 0 0 / 0.4);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--font);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

a { color: var(--accent); text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); letter-spacing: -0.03em; font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); letter-spacing: -0.02em; font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0; max-width: var(--measure); text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
code, pre { font-family: var(--mono); font-size: 0.92em; }

.wrap { width: min(100% - 2 * var(--pad), 72rem); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--accent); color: var(--accent-ink); padding: 0.6rem 1rem; border-radius: 8px; z-index: 10; }
.skip:focus { top: 1rem; }

header.site { padding-block: 1.25rem; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand img { width: 40px; height: 40px; border-radius: 9px; }
nav ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; flex-wrap: nowrap; white-space: nowrap; }
@media (max-width: 47.99rem) { nav li.extra { display: none; } nav ul { gap: 1rem; } }
nav a { color: var(--muted); text-decoration: none; padding-block: 0.4rem; display: inline-block; }
nav a:hover { color: var(--ink); text-decoration: underline; }

.hero { display: grid; gap: 3rem; align-items: center; padding-block: clamp(2rem, 6vw, 5rem); }
@media (min-width: 56rem) { .hero { grid-template-columns: 1.2fr 0.8fr; } }
.hero-copy { display: grid; gap: 1.5rem; justify-items: start; }
.lede { font-size: 1.25rem; color: var(--muted); }
.shot { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); width: 100%; background: var(--surface); }
.hero .shot { max-width: 26rem; justify-self: center; }

.button {
  display: inline-flex; align-items: center; min-height: 3rem; padding: 0.7rem 1.5rem;
  background: var(--accent); color: var(--accent-ink); font-weight: 650; font-size: 1.1rem;
  border-radius: 10px; text-decoration: none; transition: filter 0.15s ease-out;
}
.button:hover { filter: brightness(1.1); }
.dl { display: grid; gap: 0.6rem; justify-items: start; }
.fine { font-size: 0.95rem; color: var(--muted); }
.fine a { color: inherit; }

section { padding-block: clamp(2.5rem, 7vw, 5rem); }
section > .wrap > h2 { margin-bottom: 2rem; }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; display: grid; gap: 0.5rem; align-content: start; border-top: 2px solid var(--line); padding-top: 1rem; }
.steps li::before { content: counter(step); font: 700 2.25rem/1 var(--font); color: var(--accent); }

.feature { display: grid; gap: 1.5rem 3rem; align-items: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.feature:last-child { margin-bottom: 0; }
.feature .copy { display: grid; gap: 0.9rem; justify-items: start; }
.feature .shot { max-width: 34rem; }
.feature .shot.mid { max-width: 26rem; }
.feature .shot.tall { max-width: 17rem; }
@media (min-width: 56rem) {
  .feature { grid-template-columns: 1fr 1fr; }
  .feature.flip .copy { order: 2; }
  .feature .shot { justify-self: center; }
  .feature.wide { grid-template-columns: 1.3fr 0.7fr; }
  .feature.wide .shot { max-width: none; }
}

.cli { background: var(--surface); }
.cli .wrap { display: grid; gap: 2rem; }
@media (min-width: 56rem) {
  .cli .wrap { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
  .cli h2 { grid-column: 1 / -1; margin-bottom: 0; }
}
pre {
  margin: 0; padding: 1.25rem; overflow-x: auto;
  /* Edge shadows show when content scrolls. */
  background:
    linear-gradient(to right, var(--bg) 30%, transparent) left / 2rem 100% no-repeat local,
    linear-gradient(to left, var(--bg) 30%, transparent) right / 2rem 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, oklch(50% 0.02 255 / 0.35), transparent) left / 0.8rem 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, oklch(50% 0.02 255 / 0.35), transparent) right / 0.8rem 100% no-repeat scroll,
    var(--bg); border: 1px solid var(--line); border-radius: 12px; line-height: 1.7; }
@media (max-width: 40rem) { pre { font-size: 0.8rem; } }

.get .wrap { display: grid; gap: 1.5rem; justify-items: start; }
dl.facts { display: grid; gap: 0.25rem 2rem; grid-template-columns: max-content 1fr; margin: 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }

footer { border-top: 1px solid var(--line); padding-block: 2rem; color: var(--muted); font-size: 0.95rem; }
footer .wrap { display: flex; gap: 1rem 2rem; flex-wrap: wrap; justify-content: space-between; }
footer ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }

.notfound { min-height: 70vh; display: grid; align-content: center; gap: 1.25rem; justify-items: start; }
