/* Sindri Engine — one stylesheet for the landing page, the play pages, the
   directory and the generated docs. */

:root {
  color-scheme: dark;
  --bg: #0b0d11;
  --bg-2: #0f1218;
  --panel: #141821;
  --panel-2: #11151c;
  --panel-3: #1b2029;
  --line: #262c37;
  --line-soft: #1b2029;
  --text: #ece7dc;
  --muted: #b9b3a6;
  --dim: #8b867d;
  --faint: #5f5b55;
  --gold: #f2b84b;
  --ember: #ff7a45;
  --tide: #5ec8c0;
  --green: #a3c27a;
  --blue: #7cc4e4;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 20px 50px -20px rgba(0, 0, 0, .6);
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Space Grotesk', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --pixel: 'Pixelify Sans', ui-sans-serif, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
}

* { box-sizing: border-box }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg) }

body {
  margin: 0;
  min-width: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, canvas, video { max-width: 100%; height: auto }
a { color: inherit; text-decoration: none }
::selection { background: var(--gold); color: var(--bg) }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px }
[hidden] { display: none !important }

.shell { max-width: 1200px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 32px) }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------- lockup */

.brand { display: flex; align-items: center; gap: 11px; flex: none }
.brand svg { flex: none }
.wordmark {
  font-family: var(--pixel);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
}
.wordmark i { color: var(--gold); font-style: normal }
.tagline { display: flex; align-items: center; gap: 6px; margin-top: 4px }
.tagline .rule { flex: 1; height: 1px; background: var(--line) }
.tagline .chip {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--bg);
  background: var(--text);
  padding: 1px 5px;
  border-radius: 2px;
}

/* ---------------------------------------------------------------- topbar */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 13, 17, .78);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.nav > .shell {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  flex-wrap: wrap;
  padding-block: 10px;
}
.nav nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.nav nav a { padding: 7px 11px; border-radius: 999px; transition: color .15s, background .15s }
.nav nav a:hover, .nav nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, .06) }
.nav nav .ghost { color: var(--text); border: 1px solid var(--line); margin-left: 6px }
.nav nav .ghost:hover { border-color: var(--gold) }

/* ------------------------------------------------------------- type scale */

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

h1, h2, h3 { font-family: var(--display); font-weight: 600; text-wrap: balance; margin: 0; letter-spacing: -0.02em }
.lede { font-size: 17px; line-height: 1.7; color: var(--muted); text-wrap: pretty; margin: 0 }
.dim { color: var(--dim) }

.block { padding-top: clamp(72px, 10vw, 128px) }
.block h2 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.08 }
.head { display: grid; gap: 20px 48px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: end }
.head h2 { margin-top: 14px }

/* ---------------------------------------------------------------- buttons */

.actions { display: flex; gap: 12px; flex-wrap: wrap }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  font: 600 15px/1 var(--sans);
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s;
}
.button:hover { border-color: var(--dim); background: rgba(255, 255, 255, .06) }
.button.primary { background: var(--gold); color: #1a1406; border-color: var(--gold) }
.button.primary:hover { background: #ffc964; border-color: #ffc964 }
.button svg { width: 16px; height: 16px; flex: none }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  font: 500 12.5px/1.4 var(--mono);
  color: var(--muted);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(163, 194, 122, .15) }

/* ------------------------------------------------------------------ hero */

.hero-wrap { position: relative; overflow: hidden; isolation: isolate }
.hero-wrap::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 900px;
  z-index: -1;
  background:
    radial-gradient(45% 50% at 78% 30%, rgba(94, 200, 192, .16), transparent 70%),
    radial-gradient(40% 45% at 15% 10%, rgba(242, 184, 75, .12), transparent 70%);
  pointer-events: none;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(48px, 8vw, 104px) clamp(24px, 4vw, 48px);
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; align-items: flex-start }
.hero h1 { font-size: clamp(40px, 6.4vw, 74px); line-height: 1.0; letter-spacing: -0.035em }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--gold), var(--ember)); -webkit-background-clip: text; background-clip: text; color: transparent }
.hero .lede { font-size: clamp(16.5px, 1.8vw, 19px); max-width: 560px }
.hero-shot {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .4);
  transform: perspective(1600px) rotateY(-4deg) rotateX(2deg);
  transition: transform .4s ease;
}
.hero-shot:hover { transform: none }
.hero-shot img { display: block; width: 100%; aspect-ratio: 25 / 18; object-fit: cover }
.hero-shot .play-badge { position: absolute; left: 18px; bottom: 18px }

.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 12px;
  border-radius: 999px;
  background: rgba(11, 13, 17, .78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .14);
  font: 600 14px/1 var(--sans);
  color: var(--text);
}
.play-badge::before {
  content: "";
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l9 5-9 5z' fill='%231a1406'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* -------------------------------------------------------------- stat strip */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  margin-top: clamp(24px, 4vw, 40px);
}
.stats > div { padding: 22px 4px; display: flex; flex-direction: column; gap: 4px }
.stats b { font: 600 clamp(26px, 3vw, 34px)/1 var(--display); letter-spacing: -0.02em }
.stats span { font-size: 13.5px; color: var(--dim) }

/* --------------------------------------------------------- feature blocks */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 0;
  margin-top: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
}
.feature.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) }
.feature.flip .feature-media { order: 2 }
.feature-media { position: relative; display: block; min-height: 300px; background: #000 }
.feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease }
.feature-media:hover img { transform: scale(1.03) }
.feature-media .play-badge { position: absolute; left: 18px; bottom: 18px }
.feature-body { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 16px; align-items: flex-start }
.feature-body h3 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.05 }
.feature-body p { margin: 0; color: var(--muted); line-height: 1.7 }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none }
.chips li { font: 500 12px/1.4 var(--mono); color: var(--muted); padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .02) }

.role { font: 500 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--tide) }
.role.flagship { color: var(--gold) }
.role.tool { color: var(--ember) }

/* ------------------------------------------------------------------ cards */

.cards {
  display: grid;
  gap: 18px;
  margin-top: 32px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
}
.cards.small { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)) }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: var(--line); transform: translateY(-3px); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .8) }
.card .thumb { position: relative; aspect-ratio: 16 / 10; background: var(--bg-2); overflow: hidden }
.card .thumb.blank { display: grid; place-items: end start; padding: 16px; background: radial-gradient(70% 90% at 20% 10%, rgba(94, 200, 192, .2), transparent 70%), radial-gradient(60% 80% at 90% 100%, rgba(242, 184, 75, .18), transparent 70%), var(--bg-2) }
.card .thumb.blank span { position: relative; z-index: 1; font: 600 22px/1 var(--display); color: rgba(236, 231, 220, .35) }
.card .thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease }
.card:hover .thumb img { transform: scale(1.04) }
.card .thumb::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(20, 24, 33, .85));
}
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1 }
.card h3 { font-size: 19px; line-height: 1.2 }
.card p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--dim); text-wrap: pretty }
.cards.small .card p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden }
.card .go { margin-top: auto; padding-top: 8px; font: 600 13.5px/1 var(--sans); color: var(--gold) }
.card a.cover { position: absolute; inset: 0; z-index: 1 }
.card a.cover:focus-visible { outline-offset: -3px; border-radius: var(--radius) }

/* -------------------------------------------------------- authoring stack */

.stack {
  display: grid;
  gap: 1px;
  margin-top: 40px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.stack > article { background: var(--panel); padding: 26px; display: flex; flex-direction: column; gap: 10px }
.stack .icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(242, 184, 75, .1); color: var(--gold); font: 600 15px var(--mono) }
.stack article:nth-child(2) .icon { background: rgba(94, 200, 192, .1); color: var(--tide) }
.stack article:nth-child(3) .icon { background: rgba(255, 122, 69, .1); color: var(--ember) }
.stack article:nth-child(4) .icon { background: rgba(124, 196, 228, .1); color: var(--blue) }
.stack h3 { font-size: 20px; margin-top: 6px }
.stack p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--dim) }

.frame { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; margin: 0 }
.frame > figcaption, .frame > .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line-soft);
  font: 12px var(--mono);
  color: var(--dim);
}
.frame > figcaption .lights { display: inline-flex; gap: 6px }
.frame > figcaption .lights i { width: 10px; height: 10px; border-radius: 50%; background: var(--line) }
.frame img { display: block; width: 100% }
.caption { font: 12.5px/1.7 var(--mono); color: var(--faint); padding: 12px 2px 0 }

/* ------------------------------------------------------------- code panels */

.split {
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  align-items: center;
}
.split > div:first-child { display: flex; flex-direction: column; gap: 20px }
.checks { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none }
.checks li { display: flex; gap: 12px; color: var(--muted); font-size: 15px; line-height: 1.55 }
.checks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: rgba(163, 194, 122, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23a3c27a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat }

.code { border: 1px solid var(--line); border-radius: var(--radius); background: #0d1016; min-width: 0; overflow: hidden; box-shadow: var(--shadow) }
.code .bar { display: flex; justify-content: space-between; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line-soft); font: 12px var(--mono); color: var(--dim); background: var(--panel-2) }
.code pre {
  margin: 0;
  padding: clamp(16px, 3vw, 24px);
  overflow-x: auto;
  font-family: var(--mono);
  font-size: clamp(12px, 1.5vw, 13.5px);
  line-height: 1.75;
  color: var(--muted);
}
.code .k { color: #e59ad0 }
.code .t { color: var(--tide) }
.code .v { color: var(--text) }
.code .s { color: var(--green) }
.code .n { color: var(--gold) }
.code .c { color: var(--faint); font-style: italic }
.code .p { color: var(--faint) }
.code .err { text-decoration: underline wavy var(--ember); text-underline-offset: 4px }
.diag { padding: 12px 16px; border-top: 1px solid var(--line-soft); font: 12.5px/1.6 var(--mono); color: var(--ember); background: rgba(255, 122, 69, .06) }
.diag span { color: var(--dim) }
code.inline { font-family: var(--mono); font-size: .88em; color: var(--text); background: var(--panel-3); padding: 2px 6px; border-radius: 5px }

/* ---------------------------------------------------------------- missing */

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  padding: clamp(24px, 4vw, 48px);
}
.panel h2 { margin: 14px 0 0; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.12; max-width: 760px }
.panel .list {
  display: grid;
  gap: 0 32px;
  margin-top: 28px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  font-size: 15px;
  color: var(--muted);
}
.panel .list div { padding: 11px 0; border-bottom: 1px dashed var(--line); display: flex; gap: 12px; align-items: baseline }
.panel .list div::before { content: "○"; color: var(--faint); font-family: var(--mono); font-size: 12px }
.panel .note { color: var(--dim); margin-top: 26px; line-height: 1.75; max-width: 760px; font-size: 15px }
.panel .note a { color: var(--gold) }

/* ------------------------------------------------------------- doc links */

.doclinks {
  display: grid;
  gap: 12px;
  margin-top: 32px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.doclinks a { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 18px 20px; display: block; min-width: 0; transition: border-color .15s, background .15s }
.doclinks a:hover { background: var(--panel-3); border-color: var(--line) }
.doclinks b { font: 600 16px var(--display) }
.doclinks span { display: block; font-size: 14px; color: var(--dim); margin-top: 6px }
.doclinks a:hover span { color: var(--gold) }

/* -------------------------------------------------------------------- try */

.try {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 48px);
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(242, 184, 75, .1), transparent 60%),
    var(--panel-2);
}
.try h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1 }
.try .sub { margin: 14px 0 0; color: var(--dim); line-height: 1.7 }

/* ----------------------------------------------------------------- footer */

footer { margin-top: clamp(72px, 10vw, 128px); border-top: 1px solid var(--line-soft) }
footer > .shell {
  padding-block: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--faint);
}
footer .brand .wordmark { font-size: 14px; color: var(--dim) }
footer .brand .tagline .rule { background: var(--line-soft) }
footer .brand .tagline .chip { background: var(--dim); font-size: 7.5px; padding: 1px 4px }
footer a { color: var(--dim) }
footer a:hover { color: var(--text) }
footer nav { display: flex; gap: 18px; flex-wrap: wrap }

/* ====================================================== generated doc pages */

.docs-body { background: var(--bg) }

.docs-shell {
  display: grid;
  grid-template-columns: minmax(190px, 250px) minmax(0, 820px) minmax(160px, 210px);
  gap: clamp(28px, 4vw, 56px);
  max-width: 1400px;
  margin: auto;
  padding: 48px 32px 96px;
}

.sidebar { position: sticky; top: 86px; align-self: start; min-width: 0; max-height: calc(100vh - 100px); overflow-y: auto; scrollbar-width: thin }
.sidebar .side-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 24px 0 8px;
  padding-left: 12px;
}
.sidebar a { display: block; padding: 7px 12px; color: var(--dim); font-size: 14px; border-radius: 7px }
.sidebar a:hover { color: var(--text); background: var(--panel) }
.sidebar a.current { color: var(--gold); background: rgba(242, 184, 75, .08) }

.doc { min-width: 0; overflow-wrap: anywhere }
.doc-kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold) }
.doc h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.06; margin: 14px 0 28px; overflow-wrap: normal }
.doc h2 { font-size: clamp(24px, 3vw, 30px); margin: 56px 0 18px; padding-top: 20px; border-top: 1px solid var(--line-soft) }
.doc h3 { font-size: 19px; margin: 34px 0 12px }
.doc p, .doc li { color: var(--muted); line-height: 1.8; font-size: 16px }
.doc strong { color: var(--text) }
.doc a { color: var(--gold); text-decoration: underline; text-decoration-color: rgba(242, 184, 75, .35); text-underline-offset: 3px }
.doc a:hover { text-decoration-color: var(--gold) }
.doc pre {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  background: #0d1016;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
  tab-size: 2;
}
.doc code { font-family: var(--mono); font-size: 0.86em; color: var(--text); background: var(--panel-3); padding: 1px 5px; border-radius: 5px }
.doc pre code { display: block; width: max-content; min-width: 100%; color: var(--muted); background: none; padding: 0 }
.doc blockquote { margin: 24px 0; border-left: 3px solid var(--gold); background: var(--panel); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 4px 20px }
.doc table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  -webkit-overflow-scrolling: touch;
}
.doc th, .doc td { text-align: left; padding: 11px 12px; border: 1px solid var(--line-soft); color: var(--muted); white-space: nowrap }
.doc th { background: var(--panel); color: var(--text) }
.doc hr { border: 0; border-top: 1px solid var(--line-soft); margin: 40px 0 }

.toc { position: sticky; top: 86px; align-self: start; min-width: 0; font-size: 13px }
.toc b { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--faint) }
.toc a { display: block; color: var(--dim); margin: 10px 0 }
.toc a:hover { color: var(--gold) }

/* ------------------------------------------------------------ responsive */

@media (max-width: 1180px) {
  .docs-shell { grid-template-columns: 210px minmax(0, 1fr) }
  .toc { display: none }
}

@media (max-width: 920px) {
  .docs-shell { grid-template-columns: 190px minmax(0, 1fr); gap: 30px; padding-inline: 24px }
  .hero { grid-template-columns: 1fr }
  .hero-shot { transform: none }
  .feature, .feature.flip { grid-template-columns: 1fr }
  .feature.flip .feature-media { order: 0 }
  .feature-media { min-height: 0; aspect-ratio: 16 / 10 }
}

@media (max-width: 620px) {
  .nav nav .nav-extra { display: none }
}

@media (max-width: 700px) {
  .nav > .shell { min-height: 56px; flex-wrap: nowrap }
  .nav nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; font-size: 13.5px; margin-right: -8px }
  .nav nav::-webkit-scrollbar { display: none }
  .nav nav a { white-space: nowrap; padding: 7px 9px }
  .nav .brand .tagline { display: none }
  .docs-shell { display: block; padding: 24px 16px 72px }
  .sidebar {
    position: relative;
    top: 0;
    max-height: none;
    margin: 0 -16px 30px;
    padding: 0 16px;
    border-bottom: 1px solid var(--line-soft);
    overflow: hidden;
  }
  .sidebar .side-title { display: none }
  .sidebar nav {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .sidebar nav::-webkit-scrollbar { display: none }
  .sidebar a { flex: 0 0 auto; white-space: nowrap; border-radius: 0; border-bottom: 2px solid transparent; padding: 12px 10px }
  .sidebar a.current { border-bottom-color: var(--gold); background: none }
  .doc p, .doc li { font-size: 15px }
  .doc pre { padding: 14px; font-size: 12px }
  .doc table { font-size: 13px }
  .stats > div { padding: 16px 4px }
}

@media (max-width: 460px) {
  .actions .button { flex: 1 1 100% }
  .doc h2 { margin-top: 40px }
  .nav nav .ghost { display: none }
}

@media (hover: none) {
  .button, .nav a, .sidebar a, .doclinks a, .card { touch-action: manipulation }
  .card:hover { transform: none }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  *, *::before, *::after { transition: none !important; animation: none !important }
  .hero-shot { transform: none }
}
