:root {
	--bg0: #0a0c10;
	--bg1: #121824;
	--ink: #ece8e1;
	--muted: #9a9488;
	--line: #2a3140;
	--accent: #c41616;
	--btn: #ece8e1;
	--btn-ink: #0a0c10;
	--quiet: #1c2230;
	--sans: "Segoe UI Light", "Segoe UI", Candara, "Avenir Next", sans-serif;
	--content: min(880px, calc(100% - 48px));
	--content-doc: min(1120px, calc(100% - 48px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	min-height: 100vh;
	background:
		radial-gradient(ellipse 200% 120% at 50% -10%, #3d4d62 0%, #222c3a 20%, transparent 90%),
		linear-gradient(165deg, var(--bg0) 0%, var(--bg1) 45%, #0d1018 100%);
	background-attachment: fixed;
	color: var(--ink);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.48;
}

a { color: inherit; }

img { display: block; }

.wrap {
	width: var(--content);
	margin: 0 auto;
}

header {
	border-bottom: 1px solid var(--line);
	background: rgba(10, 12, 16, 0.72);
	backdrop-filter: blur(8px);
}

.bar {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: 52px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 22px;
	letter-spacing: 0.01em;
	text-decoration: none;
}

.brand img { width: 22px; height: 22px; }

nav {
	display: flex;
	gap: 22px;
	margin-left: auto;
	font-size: 15px;
}

nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }

.langs {
	display: flex;
	gap: 10px;
	margin-left: 6px;
	font-size: 13px;
	letter-spacing: 0.08em;
}

.langs a.is-current { color: var(--ink); }

main { padding: 36px 0 48px; }

h1 {
	margin: 0;
	font-weight: 500;
	font-size: clamp(40px, 6vw, 60px);
	line-height: 1.05;
	letter-spacing: -0.03em;
}

.lede {
	max-width: 50rem;
	margin: 0;
	font-family: "Segoe UI Light", "Segoe UI", var(--sans);
	font-size: 18px;
	font-weight: 300;
	color: var(--ink);
	line-height: 1.45;
}

.hero-band {
	text-align: center;
}

.hero-band .lede {
	margin-left: auto;
	margin-right: auto;
}

.hero-band .download-block {
	margin-top: 28px;
}

.hero-band .dl-rows {
	max-width: 40rem;
	margin-left: auto;
	margin-right: auto;
	text-align: left;
}

.download-block { margin-top: 28px; }

.download-block h2 {
	margin: 0;
	font-weight: 300;
	font-size: 24px;
	letter-spacing: -0.02em;
}

.download-block h2 .ver {
	color: var(--muted);
	font-size: 0.92em;
	font-weight: 300;
}

.dl-rows {
	list-style: none;
	margin: 14px 0 0;
	padding: 0;
}

.dl-rows li {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 16px 20px;
	align-items: center;
	padding: 10px 0;
	border-top: 1px solid var(--line);
}

.dl-rows li:last-child { border-bottom: 1px solid var(--line); }

.dl-rows .req {
	margin: 0;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.45;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 132px;
	min-height: 38px;
	padding: 0 16px;
	border-radius: 999px;
	background: var(--btn);
	color: var(--btn-ink);
	text-decoration: none;
	font-size: 16px;
	font-weight: 600;
}

.btn.quiet {
	background: var(--quiet);
	color: var(--muted);
	font-weight: 500;
	cursor: default;
}

.pitch {
	margin: 24px 0 0;
}

.pitch p {
	margin: 0;
	color: var(--muted);
	font-size: 17px;
	line-height: 1.45;
}

.shot {
	width: var(--content);
	margin: 28px auto 0;
}

.shot-open {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: zoom-in;
}

.shot img,
.shot-open img {
	width: 100%;
	height: auto;
	border: 1px solid var(--line);
	border-radius: 8px;
}

.legacy-intro {
	padding-top: 48px;
}

.legacy-intro .lede {
	margin: 0;
	max-width: 40rem;
}

.legacy-body {
	padding-bottom: 48px;
}

.legacy-body .pitch {
	margin-top: 28px;
}

.legacy-note {
	margin: 16px 0 0;
	color: var(--muted);
	font-size: 15px;
}

.legacy-note a {
	color: var(--ink);
	text-decoration: underline;
	text-decoration-color: var(--line);
	text-underline-offset: 3px;
}

.legacy-download {
	margin-top: 28px;
}

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 40;
	display: none;
	place-items: center;
	padding: 24px;
	background: rgba(0, 0, 0, 0.82);
	cursor: zoom-out;
}

.lightbox.is-open { display: grid; }

.lightbox img {
	max-width: min(100%, 1400px);
	max-height: calc(100vh - 48px);
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
	cursor: zoom-out;
}

h2.section {
	margin: 32px 0 0;
	font-weight: 500;
	font-size: 24px;
	letter-spacing: -0.02em;
}

.features {
	margin: 0;
}

.feature-groups {
	margin: 12px 0 0;
	display: grid;
	gap: 22px;
}

.feature-group h3 {
	margin: 0;
	font-size: 17px;
	font-weight: 500;
	color: var(--muted);
	letter-spacing: -0.01em;
}

.feature-group ul {
	margin: 8px 0 0;
	padding: 0 0 0 1.15em;
	color: var(--muted);
	font-size: 17px;
	line-height: 1.45;
}

.feature-group li + li {
	margin-top: 6px;
}

.features-note {
	margin: 22px 0 0;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.45;
}

.intro {
	margin: 12px 0 0;
}

.intro p {
	margin: 0;
	color: var(--muted);
	font-size: 17px;
	line-height: 1.45;
}

.intro p + p { margin-top: 18px; }

.intro strong {
	color: var(--ink);
	font-weight: 600;
}

.intro a {
	color: var(--ink);
	text-decoration: underline;
	text-decoration-color: var(--line);
	text-underline-offset: 3px;
}

.intro a:hover { text-decoration-color: var(--muted); }

.tutorial-figure {
	margin: 16px 0 0;
}

.video-frame {
	position: relative;
	border: 1px solid var(--line);
	border-radius: 8px;
	overflow: hidden;
	background: #000;
}

.video-frame video {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: top;
}

.video-play {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 72px;
	height: 72px;
	border: 0;
	border-radius: 50%;
	background: var(--accent);
	color: #fff;
	cursor: pointer;
	display: grid;
	place-items: center;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
	transition: transform 0.15s ease, filter 0.15s ease;
}

.video-play:hover { transform: scale(1.05); filter: brightness(1.08); }

.video-play svg { width: 28px; height: 28px; margin-left: 3px; display: block; }

.video-frame.is-playing .video-play { display: none; }

.prose { max-width: 40rem; }
.prose p { margin: 12px 0 0; }
.prose h2 { margin-top: 32px; font-size: 22px; }
.prose ol { margin: 12px 0 0; padding-left: 1.2rem; }
.prose li + li { margin-top: 6px; }

.node-doc {
	width: var(--content-doc);
	display: grid;
	grid-template-columns: 11rem 1fr;
	gap: 28px 40px;
	align-items: start;
}

.node-toc {
	position: sticky;
	top: 16px;
	padding-top: 4px;
	font-family: "Segoe UI", Candara, "Avenir Next", sans-serif;
	font-size: 14px;
	line-height: 1.35;
}

.node-toc nav ol {
	list-style: none;
	margin: 0;
	padding: 0;
}

.node-toc li + li { margin-top: 2px; }

.node-toc a {
	display: block;
	padding: 3px 0;
	color: var(--muted);
	text-decoration: none;
}

.node-toc a:hover { color: var(--ink); }

.node-list {
	min-width: 0;
}

.node-list h1 {
	margin: 0;
	font-size: clamp(32px, 5vw, 44px);
	font-weight: 500;
	letter-spacing: -0.02em;
}

.node-card {
	scroll-margin-top: 16px;
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 20px;
	align-items: start;
	padding: 18px 0;
	border-top: 1px solid var(--line);
}

.node-list .node-card:last-child { border-bottom: 1px solid var(--line); }

.node-thumb {
	width: 50%;
	height: auto;
	display: block;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: #000;
}

.node-view {
	margin: 16px 0 0;
}

.node-view img {
	width: 50%;
	height: auto;
	display: block;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: #000;
}

.node-view-full img {
	width: 100%;
}

.node-body h2 {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
}

.node-body p {
	margin: 8px 0 0;
	color: var(--muted);
	line-height: 1.45;
}

.node-detail {
	margin-top: 10px;
}

.node-detail p {
	margin: 10px 0 0;
	color: var(--muted);
	font-size: 16px;
	line-height: 1.5;
}

.node-detail p:first-child { margin-top: 0; }

.node-detail strong {
	color: var(--ink);
	font-weight: 600;
}

.node-detail code {
	font-family: ui-monospace, Consolas, monospace;
	font-size: 0.92em;
	color: var(--ink);
}

footer {
	border-top: 1px solid var(--line);
	padding: 14px 0 20px;
	color: var(--muted);
	font-size: 14px;
	background: rgba(10, 12, 16, 0.5);
}

footer .bar { min-height: 0; justify-content: center; gap: 28px; }
footer a { color: var(--ink); }

footer a.footer-link,
footer a.channel span {
	text-decoration: underline;
	text-underline-offset: 3px;
}

footer a.channel {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
}

footer a.channel img {
	width: 16px;
	height: 16px;
}

@media (max-width: 720px) {
	header .bar {
		flex-wrap: nowrap;
		gap: 12px;
		padding: 8px 0;
	}

	header nav {
		margin-left: auto;
		width: auto;
		flex-shrink: 0;
		gap: 14px;
		font-size: 14px;
		white-space: nowrap;
	}

	header .brand { font-size: 20px; }

	footer .bar { flex-wrap: wrap; row-gap: 8px; }

	.shot { margin-top: 24px; }

	.node-card { grid-template-columns: 1fr; gap: 12px; }

	.node-doc {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.node-toc {
		position: static;
		margin-bottom: 20px;
		padding-bottom: 16px;
		border-bottom: 1px solid var(--line);
	}

	.node-toc nav ol {
		columns: 2;
		column-gap: 20px;
	}

	.dl-rows li { grid-template-columns: 1fr; }
	.btn { min-width: 0; width: 100%; }
}
