/* effects — the library's own look: night ground, hairlines, mono labels, one accent. */

@font-face {
	font-family: 'Space Grotesk';
	font-weight: 300 700;
	font-display: swap;
	src: url('fonts/space-grotesk-latin-wght-normal.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Space Grotesk';
	font-weight: 300 700;
	font-display: swap;
	src: url('fonts/space-grotesk-latin-ext-wght-normal.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'JetBrains Mono';
	font-weight: 400;
	font-display: swap;
	src: url('fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
	font-family: 'JetBrains Mono';
	font-weight: 500;
	font-display: swap;
	src: url('fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2');
}

:root {
	--bg: #111110;
	--bg-raised: #1a1a15;
	--bg-sunk: #0b0b0a;
	--line: #2c2b27;
	--line-strong: #45443f;
	--tx: #f2f0e6;
	--mut: #b9b7ae;
	--sub: #8f8d85;
	--acc: #dd5b3e;
	--acc-soft: #3a2019;
	--str: #e0b96a;
	--num: #9ecbbd;
	--sans: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
	--wrap: 1200px;
	color-scheme: dark;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
	scroll-padding-top: 88px;
	-webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}
body {
	margin: 0;
	background: var(--bg);
	color: var(--tx);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
a {
	color: inherit;
	text-decoration: none;
}
a:hover {
	color: var(--acc);
}
:focus-visible {
	outline: 2px solid var(--acc);
	outline-offset: 2px;
	border-radius: 3px;
}
img,
video,
canvas {
	display: block;
	max-width: 100%;
}
h1,
h2,
h3,
h4,
p,
figure,
pre {
	margin: 0;
}
button {
	font: inherit;
	color: inherit;
	cursor: pointer;
}
::selection {
	background: var(--acc);
	color: var(--bg);
}

.wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 24px;
}
.mono {
	font-family: var(--mono);
}
.eyebrow {
	font-family: var(--mono);
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--acc);
}
.muted {
	color: var(--mut);
}
.sub {
	color: var(--sub);
}
.sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.skip {
	position: absolute;
	left: 16px;
	top: -60px;
	z-index: 100;
	background: var(--acc);
	color: var(--bg);
	padding: 10px 16px;
	border-radius: 6px;
}
.skip:focus {
	top: 12px;
}

/* ------------------------------------------------------------ header */

.top {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--bg) 86%, transparent);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s;
}
.top.scrolled,
.docs-page .top {
	border-bottom-color: var(--line);
}
.top-in {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 64px;
}
.docs-page .top-in {
	max-width: 1400px;
}
.brand {
	display: flex;
	align-items: center;
	gap: 2px;
	font-weight: 700;
	font-size: 21px;
	letter-spacing: -0.02em;
	padding: 10px 0;
}
.brand b {
	color: var(--acc);
	font-family: var(--mono);
	font-weight: 500;
}
.brand:hover {
	color: var(--tx);
}
.brand-tag {
	margin-left: 12px;
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0;
	color: var(--sub);
	border: 1px solid var(--line);
	border-radius: 4px;
	padding: 2px 8px;
}
.nav {
	display: flex;
	align-items: center;
	gap: 2px;
	font-size: 15px;
}
.nav a {
	padding: 12px 13px;
	color: var(--mut);
}
.nav a:hover,
.nav a[aria-current='page'] {
	color: var(--tx);
}
.nav a[aria-current='page'] {
	text-decoration: underline;
	text-decoration-color: var(--acc);
	text-underline-offset: 8px;
	text-decoration-thickness: 2px;
}
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 22px;
	border-radius: 6px;
	border: 1px solid var(--line-strong);
	background: transparent;
	color: var(--tx);
	font-weight: 500;
	font-size: 16px;
	white-space: nowrap;
	transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.btn:hover {
	border-color: var(--tx);
	color: var(--tx);
}
.btn.primary {
	background: var(--acc);
	border-color: var(--acc);
	color: var(--bg);
}
.btn.primary:hover {
	background: #ea6d51;
	border-color: #ea6d51;
	color: var(--bg);
}
.nav .btn {
	min-height: 40px;
	padding: 0 16px;
	margin-left: 8px;
	font-size: 15px;
	color: var(--bg);
}
@media (max-width: 640px) {
	.nav .hide-s,
	.nav .btn,
	.brand-tag {
		display: none;
	}
	.nav a {
		padding: 12px 9px;
	}
}

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

.hero {
	padding: 40px 0 28px;
}
.hero-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px 48px;
	margin-bottom: 32px;
}
.hero-title {
	flex: 0 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.hero h1 {
	font-size: clamp(36px, 4.6vw, 64px);
	line-height: 0.98;
	letter-spacing: -0.04em;
	font-weight: 700;
}
.hero h1 span {
	color: var(--sub);
}
.hero-side {
	flex: 1 1 300px;
	max-width: 440px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.hero-side p {
	color: var(--mut);
}
.row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

/* the reel: one large stage, the list beside it */
.reel {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: stretch;
}
.reel-stage {
	flex: 4 1 560px;
	min-width: 0;
	border: 1px solid var(--line);
	border-radius: 12px;
	overflow: hidden;
	background: var(--bg-sunk);
}
.reel-view {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #000;
}
.reel-view > * {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.reel-view video {
	object-fit: cover;
}
.reel-view [hidden] {
	display: none;
}
.reel-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 16px;
	padding: 10px 16px;
	border-top: 1px solid var(--line);
	font-family: var(--mono);
	font-size: 13px;
	color: var(--sub);
	min-height: 56px;
}
.reel-bar strong {
	font-family: var(--sans);
	font-size: 16px;
	color: var(--tx);
}
.reel-bar a {
	margin-left: auto;
	padding: 8px 0;
	color: var(--acc);
}
.reel-list {
	flex: 1 1 260px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.reel-item {
	flex: 1 1 auto;
	min-height: 78px;
	max-height: 108px;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: transparent;
	text-align: left;
	transition: border-color 0.15s, background 0.15s;
}
.reel-item:hover {
	border-color: var(--line-strong);
}
.reel-item[aria-pressed='true'] {
	border-color: var(--acc);
	background: var(--bg-raised);
}
.reel-item img,
.reel-item .slot {
	width: 118px;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 6px;
	flex: none;
	background: var(--bg-sunk);
}
.reel-item .slot {
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px dashed var(--line-strong);
	font-family: var(--mono);
	font-size: 11px;
	color: var(--sub);
}
.reel-item > span {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}
.reel-item b {
	font-size: 15px;
}
.reel-item small {
	font-family: var(--mono);
	font-size: 11px;
	color: var(--sub);
}
.tag-live {
	color: var(--acc);
}
.tag-live::before {
	content: '';
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--acc);
	margin-right: 6px;
	vertical-align: 1px;
}
@media (max-width: 900px) {
	.reel-list {
		flex-direction: row;
		overflow-x: auto;
		padding-bottom: 4px;
	}
	.reel-item {
		flex: 0 0 250px;
	}
}

.stats {
	display: flex;
	flex-wrap: wrap;
	margin-top: 40px;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}
.stat {
	flex: 1 1 240px;
	padding: 22px 20px 22px 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.stat b {
	font-size: 40px;
	letter-spacing: -0.03em;
	line-height: 1.1;
}
.stat span {
	font-size: 14px;
	color: var(--mut);
	max-width: 30ch;
}

/* ------------------------------------------------------------ sections */

.section {
	padding: 96px 0 24px;
}
.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 40px;
}
.section-head > div {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 780px;
}
.section h2 {
	font-size: clamp(32px, 4.2vw, 56px);
	line-height: 1.04;
	letter-spacing: -0.03em;
}
.section-head p {
	color: var(--mut);
}
.more {
	font-family: var(--mono);
	font-size: 13px;
	color: var(--acc);
	padding: 12px 0;
	white-space: nowrap;
}

.pipes {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.pipe {
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.pipe.ours {
	border-color: var(--acc);
	background: var(--bg-raised);
}
.pipe h3 {
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--sub);
}
.pipe.ours h3 {
	color: var(--acc);
}
.pipe ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-family: var(--mono);
	font-size: 13px;
	color: var(--mut);
}
.pipe li {
	display: flex;
	align-items: center;
	gap: 8px;
}
.pipe li span {
	padding: 9px 12px;
	border: 1px dashed var(--line-strong);
	border-radius: 6px;
}
.pipe.ours li span {
	border: 0;
	background: var(--line);
	color: var(--tx);
}
.pipe li + li::before {
	content: '→';
	color: var(--sub);
}
.pipe.ours li + li::before {
	color: var(--acc);
}

.measured {
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	align-items: flex-start;
	margin-top: 56px;
}
.measured > div:first-child {
	flex: 1 1 300px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.measured h3 {
	font-size: 26px;
	letter-spacing: -0.02em;
}
.measured p {
	color: var(--mut);
	font-size: 15px;
}
.rows {
	flex: 2 1 520px;
	min-width: 0;
	display: flex;
	flex-direction: column;
}
.rows > div {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 4px 24px;
	padding: 14px 0;
	border-top: 1px solid var(--line);
}
.rows > div:last-child {
	border-bottom: 1px solid var(--line);
}
.rows dt,
.rows .k {
	color: var(--mut);
	font-size: 15px;
	flex: 1 1 320px;
}
.rows .v {
	font-family: var(--mono);
	font-size: 14px;
	white-space: nowrap;
}
.rows .v b {
	color: var(--acc);
	font-weight: 500;
}
.bars {
	display: flex;
	flex-direction: column;
	gap: 14px;
	font-family: var(--mono);
	font-size: 13px;
	margin-bottom: 32px;
}
.bars .bar-row {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.bars .bar-label {
	display: flex;
	justify-content: space-between;
	gap: 16px;
}
.bars .bar {
	height: 26px;
	border-radius: 4px;
	background: var(--line-strong);
	min-width: 4px;
}
.bars .bar.ours {
	background: var(--acc);
}

.split {
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	align-items: flex-start;
}
.split > * {
	min-width: 0;
}
.split .text {
	flex: 1 1 380px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.split .visual {
	flex: 1.3 1 480px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.points {
	display: flex;
	flex-direction: column;
}
.points > div {
	padding: 16px 0;
	border-top: 1px solid var(--line);
}
.points b {
	display: block;
	margin-bottom: 4px;
}
.points span {
	color: var(--mut);
	font-size: 15px;
}
.points code {
	font-family: var(--mono);
	font-size: 0.9em;
	color: var(--tx);
}

.cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
	gap: 12px;
}
.card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: 10px;
	transition: border-color 0.15s, background 0.15s;
}
a.card:hover {
	border-color: var(--acc);
	background: var(--bg-raised);
	color: var(--tx);
}
.card h3 {
	font-family: var(--mono);
	font-size: 15px;
	font-weight: 400;
	color: var(--acc);
}
.card p {
	font-size: 15px;
	color: var(--mut);
}
.card small {
	font-family: var(--mono);
	font-size: 12px;
	line-height: 1.6;
	color: var(--sub);
}

.cta {
	padding: 120px 0 96px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 28px;
}
.cta h2 {
	font-size: clamp(40px, 6vw, 88px);
	line-height: 1;
	letter-spacing: -0.04em;
}
.cta h2 span {
	color: var(--acc);
}

.foot {
	border-top: 1px solid var(--line);
	margin-top: 48px;
}
.foot-in {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	padding-top: 24px;
	padding-bottom: 36px;
	font-size: 14px;
	color: var(--sub);
}
.foot nav {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}
.foot a {
	padding: 12px;
	color: var(--mut);
}
.foot a:hover {
	color: var(--acc);
}

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

pre.code,
.prose pre {
	position: relative;
	overflow-x: auto;
	padding: 18px 18px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--bg-raised);
	font-family: var(--mono);
	font-size: 13.5px;
	line-height: 1.65;
	tab-size: 4;
	color: var(--tx);
}
pre.term {
	background: var(--bg-sunk);
	color: var(--mut);
}
pre code {
	font: inherit;
}
.codebox {
	position: relative;
}
.codebox .file {
	padding: 10px 18px;
	border: 1px solid var(--line);
	border-bottom: 0;
	border-radius: 10px 10px 0 0;
	background: var(--bg-raised);
	font-family: var(--mono);
	font-size: 12px;
	color: var(--sub);
}
.codebox .file + pre {
	border-radius: 0 0 10px 10px;
}
.copy {
	position: absolute;
	top: 8px;
	right: 8px;
	height: 30px;
	padding: 0 10px;
	border: 1px solid var(--line-strong);
	border-radius: 5px;
	background: var(--bg);
	font-family: var(--mono);
	font-size: 11px;
	color: var(--mut);
	opacity: 0;
	transition: opacity 0.15s;
}
.codebox:hover .copy,
.copy:focus-visible {
	opacity: 1;
}
.copy:hover {
	color: var(--tx);
	border-color: var(--tx);
}
@media (hover: none) {
	.copy {
		opacity: 1;
	}
}
.tk-k {
	color: var(--acc);
}
.tk-s {
	color: var(--str);
}
.tk-n {
	color: var(--num);
}
.tk-c {
	color: var(--sub);
}
.tk-t {
	color: #c9bfe6;
}
.tk-p {
	color: var(--acc);
	user-select: none;
}
.tk-a {
	color: var(--sub);
}

/* ------------------------------------------------------------ players */

.demo {
	border: 1px solid var(--line);
	border-radius: 12px;
	overflow: hidden;
	background: var(--bg-sunk);
	margin: 28px 0;
}
.demo-view {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #0b0b0a;
	cursor: pointer;
}
.demo-view img,
.demo-view canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.demo-view canvas {
	opacity: 0;
}
.demo-view.live canvas {
	opacity: 1;
}
.demo-note {
	position: absolute;
	left: 12px;
	bottom: 12px;
	padding: 6px 10px;
	border-radius: 5px;
	background: rgba(11, 11, 10, 0.85);
	font-family: var(--mono);
	font-size: 12px;
	color: var(--mut);
}
.demo-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 14px;
	padding: 6px 14px;
	border-top: 1px solid var(--line);
	font-family: var(--mono);
	font-size: 12.5px;
	color: var(--sub);
}
.demo-bar .play,
.sound .play {
	width: 40px;
	height: 40px;
	flex: none;
	border-radius: 50%;
	border: 1px solid var(--line-strong);
	background: transparent;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--tx);
}
.demo-bar .play:hover,
.sound .play:hover {
	border-color: var(--acc);
	color: var(--acc);
}
.demo-bar .play svg,
.sound .play svg {
	width: 12px;
	height: 14px;
}
.demo-bar .scrub {
	flex: 3 1 180px;
	min-width: 0;
}
.demo-bar .clock {
	min-width: 132px;
	color: var(--mut);
	font-variant-numeric: tabular-nums;
}
.demo-bar .name {
	margin-left: auto;
}
.demo-knobs {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 24px;
	padding: 4px 14px 8px;
	border-top: 1px solid var(--line);
	font-family: var(--mono);
	font-size: 12.5px;
}
.demo-knobs:empty {
	display: none;
}
.demo-knobs label {
	flex: 1 1 220px;
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--acc);
}
.demo-knobs output {
	min-width: 5ch;
	text-align: right;
	color: var(--mut);
	font-variant-numeric: tabular-nums;
}
input[type='range'] {
	flex: 1;
	min-width: 0;
	height: 40px;
	margin: 0;
	accent-color: var(--acc);
	background: transparent;
	cursor: pointer;
}
.demo .codebox,
.prose .demo .codebox {
	margin: 0;
}
.demo .codebox pre {
	border: 0;
	border-top: 1px solid var(--line);
	border-radius: 0;
	max-height: 460px;
}
.demo-caption {
	padding: 10px 16px;
	border-top: 1px solid var(--line);
	font-size: 14px;
	color: var(--mut);
}

.sound {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	padding: 8px 14px;
	border: 1px solid var(--line);
	border-radius: 12px 12px 0 0;
	background: var(--bg-sunk);
	margin-top: 28px;
	font-family: var(--mono);
	font-size: 12.5px;
	color: var(--sub);
}
.sound canvas {
	flex: 1 1 240px;
	min-width: 0;
	height: 48px;
}
.prose .sound + .codebox {
	margin: 0 0 28px;
}
.sound + .codebox pre {
	border-top: 0;
	border-radius: 0 0 12px 12px;
	margin-bottom: 28px;
	max-height: 460px;
}

/* ------------------------------------------------------------ docs */

.docs {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 24px;
	display: grid;
	grid-template-columns: 232px minmax(0, 1fr) 200px;
	gap: 0 56px;
	align-items: start;
}
.side {
	position: sticky;
	top: 65px;
	max-height: calc(100vh - 65px);
	overflow-y: auto;
	padding: 28px 8px 48px 12px;
	margin-left: -12px;
	font-size: 15px;
	scrollbar-width: thin;
	scrollbar-color: var(--line) transparent;
}
.side h2 {
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--sub);
	margin: 24px 0 6px;
}
.side h2:first-of-type {
	margin-top: 0;
}
.side a {
	display: block;
	padding: 7px 12px;
	margin-left: -12px;
	border-radius: 6px;
	color: var(--mut);
}
.side a:hover {
	color: var(--tx);
}
.side a[aria-current='page'] {
	color: var(--tx);
	background: var(--line);
}
.side .fxn {
	font-family: var(--mono);
	font-size: 14px;
}
.side-toggle {
	display: none;
}
.search {
	position: relative;
	margin-bottom: 24px;
}
.search input {
	width: 100%;
	height: 42px;
	padding: 0 12px 0 36px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: transparent;
	color: var(--tx);
	font: inherit;
	font-size: 14px;
}
.search input::placeholder {
	color: var(--sub);
}
.search input:focus {
	outline: none;
	border-color: var(--acc);
}
.search svg {
	position: absolute;
	left: 12px;
	top: 13px;
	width: 16px;
	height: 16px;
	color: var(--sub);
	pointer-events: none;
}
.search kbd {
	position: absolute;
	right: 8px;
	top: 9px;
	font-family: var(--mono);
	font-size: 11px;
	color: var(--sub);
	border: 1px solid var(--line);
	border-radius: 4px;
	padding: 2px 6px;
}
.results {
	position: absolute;
	z-index: 20;
	left: 0;
	top: 48px;
	width: min(420px, calc(100vw - 48px));
	max-height: 60vh;
	overflow-y: auto;
	border: 1px solid var(--line-strong);
	border-radius: 8px;
	background: var(--bg-raised);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
	padding: 6px;
}
.results:empty {
	display: none;
}
.results a {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin: 0;
	padding: 8px 10px;
	font-size: 14px;
	color: var(--tx);
}
.results a small {
	color: var(--sub);
	font-family: var(--mono);
	font-size: 11px;
	white-space: nowrap;
}
.results a.sel,
.results a:hover {
	background: var(--line);
	color: var(--tx);
}
.results .none {
	padding: 10px;
	font-size: 14px;
	color: var(--sub);
}

.toc {
	position: sticky;
	top: 65px;
	max-height: calc(100vh - 65px);
	overflow-y: auto;
	padding: 40px 0 48px;
	font-size: 13.5px;
	scrollbar-width: thin;
}
.toc h2 {
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--sub);
	margin-bottom: 10px;
}
.toc a {
	display: block;
	padding: 5px 0 5px 12px;
	border-left: 1px solid var(--line);
	color: var(--sub);
}
.toc a.l3 {
	padding-left: 24px;
}
.toc a:hover {
	color: var(--tx);
}
.toc a.on {
	color: var(--tx);
	border-left-color: var(--acc);
}

.doc {
	min-width: 0;
	padding: 40px 0 96px;
	max-width: 820px;
}
.crumb {
	font-family: var(--mono);
	font-size: 13px;
	color: var(--sub);
	margin-bottom: 12px;
}
.doc h1 {
	font-size: clamp(36px, 4.6vw, 58px);
	line-height: 1.02;
	letter-spacing: -0.03em;
	margin-bottom: 20px;
}
.prose > p:first-child {
	font-size: 19px;
	color: var(--mut);
}
.prose p,
.prose ul,
.prose ol,
.prose table,
.prose blockquote {
	margin: 0 0 18px;
}
.prose pre {
	margin: 0;
}
.prose .codebox {
	margin: 22px 0;
}
.prose h2 {
	font-size: 30px;
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin: 56px 0 16px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}
.prose h3 {
	font-size: 21px;
	letter-spacing: -0.01em;
	margin: 36px 0 12px;
}
.prose h4 {
	font-size: 17px;
	margin: 28px 0 8px;
}
.prose h2 a.anchor,
.prose h3 a.anchor {
	margin-left: 10px;
	color: var(--line-strong);
	font-family: var(--mono);
	font-weight: 400;
	font-size: 0.7em;
	opacity: 0;
}
.prose h2:hover a.anchor,
.prose h3:hover a.anchor,
.prose a.anchor:focus-visible {
	opacity: 1;
}
.prose a:not(.anchor) {
	color: var(--tx);
	text-decoration: underline;
	text-decoration-color: var(--acc);
	text-underline-offset: 3px;
}
.prose a:not(.anchor):hover {
	color: var(--acc);
}
.prose code {
	font-family: var(--mono);
	font-size: 0.88em;
}
.prose :not(pre) > code {
	padding: 2px 6px;
	border-radius: 4px;
	background: var(--bg-raised);
	border: 1px solid var(--line);
	white-space: nowrap;
}
.prose h2 code,
.prose h3 code {
	font-size: 0.9em;
}
.prose ul,
.prose ol {
	padding-left: 22px;
}
.prose li {
	margin-bottom: 6px;
}
.prose li::marker {
	color: var(--sub);
}
.prose blockquote {
	padding: 4px 0 4px 18px;
	border-left: 2px solid var(--acc);
	color: var(--mut);
}
.prose blockquote p:last-child {
	margin-bottom: 0;
}
.prose blockquote strong {
	color: var(--tx);
}
.table {
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: 10px;
	margin: 22px 0;
}
.prose table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	font-size: 14.5px;
	text-align: left;
}
.prose th {
	padding: 11px 16px;
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sub);
	border-bottom: 1px solid var(--line);
	white-space: nowrap;
}
.prose td {
	padding: 10px 16px;
	border-bottom: 1px solid #22211e;
	color: var(--mut);
	vertical-align: top;
}
.prose tr:last-child td {
	border-bottom: 0;
}
.prose td:first-child {
	color: var(--tx);
}
.prose td code {
	background: transparent !important;
	border: 0 !important;
	padding: 0 !important;
}
.prose td:first-child code {
	color: var(--acc);
}
.prose hr {
	border: 0;
	border-top: 1px solid var(--line);
	margin: 40px 0;
}
.pager {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	margin-top: 64px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}
.pager a {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 8px 0;
	font-weight: 500;
}
.pager a small {
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 400;
	color: var(--sub);
}
.pager a:last-child {
	text-align: right;
	margin-left: auto;
}
.doc-foot {
	margin-top: 28px;
	font-size: 14px;
	color: var(--sub);
}
.doc-foot a {
	color: var(--mut);
	text-decoration: underline;
	text-decoration-color: var(--line-strong);
	text-underline-offset: 3px;
}

@media (max-width: 1180px) {
	.docs {
		grid-template-columns: 232px minmax(0, 1fr);
	}
	.toc {
		display: none;
	}
}
@media (max-width: 820px) {
	.docs {
		display: block;
	}
	.side {
		position: static;
		max-height: none;
		padding: 16px 0 0;
		overflow: visible;
	}
	.side-toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		height: 46px;
		padding: 0 14px;
		margin-top: 12px;
		border: 1px solid var(--line);
		border-radius: 6px;
		background: transparent;
		font-size: 15px;
	}
	.side-links {
		display: none;
		padding: 16px 0 8px 12px;
	}
	.side.open .side-links {
		display: block;
	}
	.doc {
		padding-top: 28px;
	}
}

/* ------------------------------------------------------------ examples */

.page-head {
	padding: 56px 0 32px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.page-head h1 {
	font-size: clamp(40px, 6vw, 84px);
	line-height: 1;
	letter-spacing: -0.04em;
}
.page-head h1 span {
	color: var(--sub);
}
.page-head p {
	max-width: 640px;
	font-size: 19px;
	color: var(--mut);
}
.feature {
	display: flex;
	flex-wrap: wrap;
	border: 1px solid var(--line);
	border-radius: 12px;
	overflow: hidden;
	background: var(--bg-raised);
}
.feature-media {
	flex: 2 1 560px;
	min-width: 0;
	background: #000;
}
.feature-media video {
	width: 100%;
	aspect-ratio: 16 / 9;
}
.feature-info {
	flex: 1 1 320px;
	min-width: 0;
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.feature-info h2 {
	font-size: 40px;
	line-height: 1;
	letter-spacing: -0.03em;
}
.feature-info p {
	color: var(--mut);
	font-size: 15px;
}
.facts {
	display: flex;
	flex-direction: column;
	font-family: var(--mono);
	font-size: 13px;
	margin: 0;
}
.facts div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 9px 0;
	border-top: 1px solid var(--line);
}
.facts div:last-child {
	border-bottom: 1px solid var(--line);
}
.facts dt {
	color: var(--sub);
}
.facts dd {
	margin: 0;
	text-align: right;
}
.grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: 24px 16px;
}
@media (max-width: 420px) {
	.grid {
		grid-template-columns: 1fr;
	}
}
.tile {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}
.tile .demo {
	margin: 0;
}
.tile-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
}
.tile-head b {
	font-size: 19px;
}
.tile-head small {
	font-family: var(--mono);
	font-size: 12px;
	color: var(--sub);
}
.tile p {
	font-size: 15px;
	color: var(--mut);
}
.tile .slot {
	aspect-ratio: 16 / 9;
	border: 1px dashed var(--line-strong);
	border-radius: 10px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-family: var(--mono);
	font-size: 12px;
	color: var(--sub);
}
.tile video {
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 10px;
	border: 1px solid var(--line);
	background: #000;
}
.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	font-family: var(--mono);
	font-size: 12px;
	color: var(--mut);
}
.chips span,
.chips a {
	padding: 3px 8px;
	border: 1px solid var(--line);
	border-radius: 4px;
}
