@font-face {
	font-family: "Commit Mono";
	src: url("commit-mono-v143.woff2") format("woff2");
	font-style: normal;
	font-weight: 200 700;
	font-display: swap;
}

:root {
	--bg: #0B0D12;
	--bg-code: #111722;
	--bg-code-2: #151D29;
	--text: #F4F6FA;
	--muted: #9BA8B8;
	--copy-muted: #B6C0CD;
	--faint: #7E8B9B;
	--line-solid: #2B3544;
	--line-2: #526276;
	--accent: #93A4FF;
	--reference: #7CC9E8;
	--success: #91D4BB;
	--selection: #29375B;
	--syn-comment: #9BA8B8;
	--syn-kw: #DDA0FF;
	--syn-type: #67DAF0;
	--syn-num: #F4D06F;
	--syn-const: #F4D06F;
	--syn-op: #C5CEDA;
	--syn-fn: #FF9EAC;
	--syn-var: #F4F7FB;
	--syn-param: #97B4FF;
	--syn-macro: #DDA0FF;
	--syn-punct: #9BA8B8;
	--syn-str: #87DD98;
	--syn-text: #F4F7FB;
	--sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--mono: "Commit Mono", "SFMono-Regular", Consolas, monospace;
	--text-2xs: 11px;
	--text-xs: 12px;
	--text-sm: 13px;
	--text-base: 14px;
	--text-md: 15px;
	--text-lg: 16px;
	--text-xl: 18px;
	--text-3xl: 23px;
	--text-4xl: 28px;
	--maxw: 1380px;
	--pad: clamp(20px, 5vw, 48px);
	--space-2xs: 4px;
	--space-xs: 8px;
	--space-sm: 12px;
	--space-md: 16px;
	--space-lg: 24px;
	--space-xl: 32px;
	--space-2xl: 48px;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	background: var(--bg);
	scroll-padding-top: 24px;
}

body {
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-size: var(--text-xl);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	-webkit-text-size-adjust: 100%;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

a {
	color: var(--reference);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	text-decoration-thickness: 2px;
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

::selection {
	background: var(--selection);
	color: var(--text);
}

.skip {
	position: absolute;
	top: -100%;
	left: var(--space-md);
	z-index: 100;
	padding: var(--space-xs) var(--space-sm);
	background: var(--text);
	color: var(--bg);
	font-family: var(--mono);
	font-size: var(--text-sm);
}

.skip:focus {
	top: 0;
}

.wrap {
	width: 100%;
	max-width: var(--maxw);
	margin: 0 auto;
	padding-left: var(--pad);
	padding-right: var(--pad);
}

h1,
h2,
h3,
h4 {
	font-family: var(--sans);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.025em;
}

pre,
code {
	font-family: var(--mono);
}

pre {
	overflow-x: auto;
	tab-size: 2;
}

pre code {
	display: block;
	white-space: pre;
}

.eyebrow,
.nf-eyebrow {
	color: var(--accent);
	font-family: var(--mono);
	font-size: var(--text-xs);
	font-weight: 400;
	letter-spacing: 0;
	text-transform: lowercase;
}

header.site {
	background: var(--bg);
}

body.home-page header.site .wrap,
body.docs header.site .wrap {
	max-width: none;
}

.nav {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 68px;
	gap: var(--space-lg);
	padding-top: var(--space-md);
	padding-bottom: var(--space-md);
}

.brand {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	gap: var(--space-sm);
	color: var(--text);
	text-decoration: none;
}

.brand-wordmark {
	display: block;
	width: auto;
	height: 30px;
}

.brand .ver {
	color: var(--muted);
	font-family: var(--mono);
	font-size: var(--text-2xs);
	font-weight: 400;
	letter-spacing: 0;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: var(--space-lg);
	font-family: var(--mono);
	font-size: var(--text-sm);
}

.nav-links a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--muted);
	text-decoration-color: transparent;
}

.nav-links a:hover,
.nav-links a:focus-visible {
	color: var(--text);
	text-decoration-color: var(--accent);
}

.source-comment {
	color: var(--syn-comment);
}

[data-token="keyword"] {
	color: var(--syn-kw);
	font-weight: 600;
}

[data-token="macro"] {
	color: var(--syn-macro);
	font-weight: 600;
}

[data-token="namespace"],
[data-token="type"] {
	color: var(--syn-type);
	font-weight: 550;
}

[data-token="number"] {
	color: var(--syn-num);
	font-weight: 550;
}

[data-token="enumMember"],
[data-token="property"] {
	color: var(--syn-const);
	font-weight: 600;
}

[data-token="operator"] {
	color: var(--syn-op);
}

[data-token="function"] {
	color: var(--syn-fn);
	font-weight: 550;
}

[data-token="variable"] {
	color: var(--syn-var);
}

[data-token="parameter"] {
	color: var(--syn-param);
}

.block-comment-line {
	display: inline-block;
	padding-left: 1ch;
}

[data-token="string"] {
	color: var(--syn-str);
	font-weight: 550;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.home-page {
	display: grid;
	min-height: 100svh;
	grid-template-rows: auto 1fr auto;
}

.home-split {
	display: grid;
	width: 100%;
	max-width: 1600px;
	margin: 0 auto;
	padding-left: var(--pad);
	padding-right: var(--pad);
	grid-template-columns: minmax(300px, 34rem) max-content;
	gap: clamp(40px, 6vw, 96px);
	align-items: start;
	justify-content: center;
}

.notebook-hero {
	max-width: 34rem;
	padding: clamp(72px, 11vh, 128px) 0;
}

.notebook-hero h1 {
	margin-left: -0.06em;
	font-size: clamp(96px, 11vw, 168px);
	line-height: 1;
}

.hero-wordmark {
	display: block;
	width: auto;
	height: 1em;
}

.project-lede {
	max-width: 34ch;
	margin-top: clamp(36px, 6vh, 64px);
	font-size: clamp(20px, 2vw, 26px);
	font-weight: 560;
	letter-spacing: -0.02em;
	line-height: 1.35;
}

.notebook-intro {
	display: grid;
	gap: var(--space-sm);
	max-width: 46ch;
	margin-top: var(--space-lg);
	color: var(--copy-muted);
	font-size: var(--text-md);
	line-height: 1.62;
}

.project-meta {
	margin-top: var(--space-lg);
	padding-top: var(--space-md);
	border-top: 1px solid var(--line-solid);
	color: var(--faint);
	font-family: var(--mono);
	font-size: var(--text-2xs);
	line-height: 1.6;
}

.project-meta > span + span::before {
	margin-right: 1ch;
	content: "·";
}

.notebook-section {
	min-width: 0;
	padding: clamp(72px, 11vh, 128px) 0;
}

.source-artifact {
	max-width: 32rem;
}

.source-viewport {
	--source-scroll-cue-opacity: 1;

	position: relative;
}

.source-viewport[data-scroll-cue="0"] {
	--source-scroll-cue-opacity: 0;
}

.source-viewport[data-scroll-cue="1"] {
	--source-scroll-cue-opacity: 0.125;
}

.source-viewport[data-scroll-cue="2"] {
	--source-scroll-cue-opacity: 0.25;
}

.source-viewport[data-scroll-cue="3"] {
	--source-scroll-cue-opacity: 0.375;
}

.source-viewport[data-scroll-cue="4"] {
	--source-scroll-cue-opacity: 0.5;
}

.source-viewport[data-scroll-cue="5"] {
	--source-scroll-cue-opacity: 0.625;
}

.source-viewport[data-scroll-cue="6"] {
	--source-scroll-cue-opacity: 0.75;
}

.source-viewport[data-scroll-cue="7"] {
	--source-scroll-cue-opacity: 0.875;
}

.source-scroll-hint {
	display: none;
}

@media (min-width: 961px) {
	.source-viewport > pre {
		max-height: min(64svh, 44rem);
		overflow-y: auto;
		scrollbar-color: var(--line-2) transparent;
		scrollbar-gutter: stable;
		scrollbar-width: thin;
	}

	.source-viewport::after {
		position: absolute;
		right: 0;
		bottom: 0;
		left: 0;
		height: 5rem;
		background: linear-gradient(to bottom, transparent, var(--bg-code));
		content: "";
		opacity: var(--source-scroll-cue-opacity);
		pointer-events: none;
	}

	.source-scroll-hint {
		position: absolute;
		right: clamp(18px, 2vw, 26px);
		bottom: var(--space-sm);
		z-index: 1;
		display: block;
		padding: 0.35rem 0.6rem;
		border-radius: 999px;
		background: var(--bg-code);
		color: var(--muted);
		font-family: var(--mono);
		font-size: var(--text-2xs);
		line-height: 1.4;
		opacity: var(--source-scroll-cue-opacity);
		pointer-events: none;
	}

	.source-viewport:focus-within::after,
	.source-viewport:focus-within .source-scroll-hint {
		opacity: 0;
	}
}

.notebook-heading {
	margin: 0;
}

.artifact {
	margin: 0;
	background: var(--bg-code);
	border: 1px solid var(--line-2);
	border-radius: 18px;
	overflow: hidden;
}

.artifact-bar {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-md);
	padding: var(--space-sm) clamp(18px, 2vw, 26px);
	border-bottom: 1px solid var(--line-solid);
	background: var(--bg-code-2);
	color: var(--muted);
	font-family: var(--mono);
	font-size: var(--text-2xs);
	line-height: 1.45;
}

.artifact-actions {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
}

.artifact-bar a,
.artifact-copy {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	flex: none;
}

.artifact-bar a {
	text-decoration-color: transparent;
}

.artifact-copy {
	min-width: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
	font: inherit;
	justify-content: center;
	text-decoration: underline;
	text-decoration-color: transparent;
	text-underline-offset: 0.2em;
}

.artifact-bar a:hover,
.artifact-bar a:focus-visible,
.artifact-copy:hover,
.artifact-copy:focus-visible {
	color: var(--text);
	text-decoration-color: currentColor;
}

.artifact-copy:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.artifact-copy[data-copy-state="pending"] {
	color: var(--muted);
}

.artifact-copy[data-copy-state="success"] {
	color: var(--success);
}

.artifact-copy[data-copy-state="error"] {
	color: var(--accent);
}

[data-clipboard-buffer] {
	position: fixed;
	top: 0;
	left: -9999px;
	opacity: 0;
	pointer-events: none;
}

.source-viewport > pre {
	margin: 0;
	padding: clamp(22px, 3vw, 32px) clamp(18px, 2vw, 26px);
	color: var(--syn-text);
	font-size: clamp(14px, 1.6vw, 15px);
	font-weight: 450;
	line-height: 1.58;
}

.source-viewport > pre:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: -2px;
}

.artifact-output {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-lg);
	padding: var(--space-sm) clamp(18px, 2vw, 26px);
	border-top: 1px solid var(--line-solid);
	background: var(--bg-code-2);
	color: var(--muted);
	font-family: var(--mono);
	font-size: var(--text-2xs);
}

.artifact-output pre {
	margin: 0;
	color: var(--success);
	font-size: var(--text-sm);
	line-height: 1.4;
}

.nf-page {
	display: flex;
	min-height: 100vh;
	flex-direction: column;
}

.nf-main {
	display: flex;
	width: 100%;
	max-width: var(--maxw);
	margin: 0 auto;
	padding: clamp(72px, 12vw, 140px) var(--pad);
	flex: 1;
}

.nf {
	max-width: 42rem;
}

.nf h1 {
	margin-top: var(--space-sm);
	font-size: clamp(32px, 5vw, 46px);
}

.nf-lede {
	max-width: 38rem;
	margin-top: var(--space-lg);
	color: var(--copy-muted);
}

.nf-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-lg);
	margin-top: var(--space-xl);
	font-family: var(--mono);
	font-size: var(--text-sm);
}

footer.site {
	border-top: 1px solid var(--line-solid);
	padding-top: var(--space-lg);
	padding-bottom: var(--space-lg);
}

.foot-simple {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-md) var(--space-xl);
}

.foot-simple-note {
	color: var(--muted);
	font-family: var(--mono);
	font-size: var(--text-xs);
}

.foot-simple-note b {
	color: var(--text);
	font-weight: 500;
}

.foot-simple > a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-family: var(--mono);
	font-size: var(--text-xs);
}

@media (max-width: 960px) {
	.home-split {
		padding-right: var(--pad);
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.notebook-hero {
		width: 100%;
		max-width: 40rem;
		padding-bottom: var(--space-2xl);
		justify-self: center;
	}

	.notebook-section {
		width: max-content;
		max-width: 100%;
		padding-top: 0;
		justify-self: center;
	}

	.artifact {
		border-right: 1px solid var(--line-2);
		border-radius: 18px;
	}
}

@media (max-width: 680px) {
	.nav {
		min-height: 64px;
	}

	.nav-links {
		gap: var(--space-md);
	}

	.notebook-hero {
		padding-top: clamp(64px, 13vh, 96px);
	}

	.notebook-hero h1 {
		font-size: clamp(82px, 26vw, 116px);
	}

	.project-lede {
		margin-top: var(--space-xl);
		font-size: clamp(20px, 6vw, 24px);
	}

	.artifact-bar {
		align-items: flex-start;
	}

	.artifact-bar > span:first-child {
		min-width: 0;
		overflow-wrap: anywhere;
	}

	.foot-simple {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (max-width: 470px) {
	.brand .ver {
		display: none;
	}

	.nav-links {
		gap: var(--space-sm);
	}

	.notebook-section {
		width: auto;
		justify-self: stretch;
	}

	.source-artifact {
		margin-left: calc(-1 * var(--pad));
		margin-right: calc(-1 * var(--pad));
		border-right: 0;
		border-left: 0;
		border-radius: 0;
	}

	.artifact-output {
		align-items: flex-start;
		flex-direction: column;
		gap: var(--space-xs);
	}
}
