:root {
  --bg: #fbfaf7;
  --band: #f3f1ec;
  --surface: #ffffff;
  --text: #17161a;
  --muted: #55525c;
  --border: #e2dfd8;
  --accent: #3d5afe;
  --accent-soft: #e9edff;
  --accent-text: #ffffff;
  --code-bg: #ffffff;
  --radius: 14px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111113;
    --band: #18181b;
    --surface: #1d1d21;
    --text: #f0eff2;
    --muted: #a9a6b0;
    --border: #2c2c32;
    --accent: #8597ff;
    --accent-soft: #1f2440;
    --accent-text: #0d0d10;
    --code-bg: #0d1117;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 18px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
}

.top nav {
  display: flex;
  gap: 22px;
  font-size: 0.95rem;
}

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

.top nav a:hover { color: var(--text); }

/* Type */

h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.1; }

h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  margin: 0 0 22px;
}

h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin: 0 0 18px;
}

h3 {
  font-size: 1.8rem;
  margin: 0 0 6px;
}

p { margin: 0 0 16px; }

.eyebrow, .kicker {
  color: var(--accent);
  font-weight: 650;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.aka {
  margin-left: 8px;
  color: var(--muted);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.lede {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 34ch;
}

.section-lede {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 60ch;
  margin-bottom: 48px;
}

:not(pre) > code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.85em;
  background: var(--accent-soft);
  padding: 0.12em 0.4em;
  border-radius: 5px;
}

/* Buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.actions.center { justify-content: center; }

.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}

/* Code */

.code {
  margin: 0;
  min-width: 0;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px rgb(0 0 0 / 0.05);
}

.code figcaption {
  padding: 10px 18px;
  font-size: 0.82rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.code pre {
  margin: 0;
  overflow-x: auto;
}

.code pre code.hljs,
.code pre code {
  display: block;
  padding: 18px;
  background: transparent;
  font: 0.8rem/1.6 ui-monospace, "SF Mono", Menlo, monospace;
}

.compiler pre code { color: #d14343; }

@media (prefers-color-scheme: dark) {
  .compiler pre code { color: #ff8a80; }
}

.stack {
  display: grid;
  gap: 16px;
  min-width: 0;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 48px;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 64px;
}

.proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-bottom: 48px;
}

.proof div {
  border-top: 2px solid var(--accent);
  padding-top: 14px;
}

.proof strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.proof span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Features */

.feature {
  display: grid;
  grid-template-columns: 0.85fr 1.35fr;
  gap: 48px;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 88px;
  border-top: 1px solid var(--border);
}

.feature.flip { grid-template-columns: 1.35fr 0.85fr; }

.feature.flip .feature-copy { order: 2; }

.feature-copy { min-width: 0; }

.feature-copy > p { color: var(--muted); }

.points {
  list-style: none;
  padding: 0;
  margin: 8px 0 24px;
}

.points li {
  position: relative;
  padding-left: 30px;
  margin: 10px 0;
}

.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%233d5afe' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.more {
  font-weight: 600;
  text-decoration: none;
}

.more::after { content: " →"; }

/* Demos */

.demos {
  background: var(--band);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 96px 0;
}

.demo {
  display: grid;
  grid-template-columns: 0.85fr 1.35fr;
  gap: 48px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 28px;
}

.uses {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Closing */

.cta {
  text-align: center;
  padding-top: 96px;
  padding-bottom: 96px;
}

.cta p {
  color: var(--muted);
  font-size: 1.15rem;
}

footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Narrow screens */

@media (max-width: 900px) {
  .hero, .feature, .feature.flip, .demo { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip .feature-copy { order: 0; }
  .hero { padding-top: 48px; }
  .feature { padding-top: 56px; padding-bottom: 56px; }
  .demo { padding: 24px 20px; }
  .lede { max-width: none; }
}

@media (max-width: 720px) {
  .top nav a:not(.ext) { display: none; }
  .proof { grid-template-columns: 1fr; }
  body { font-size: 17px; }
}

/* The scope explainer's section on the landing page. */

.how {
  padding-top: 88px;
  padding-bottom: 88px;
  border-top: 1px solid var(--border);
}

.how .section-lede { margin-bottom: 28px; }
