:root {
	color-scheme: light dark;
	--bg: #f8f7f4;
	--fg: #171410;
	--muted: #635d55;
	--line: #dcd7cf;
	--soft: #eeeae3;
	--card: #fffcf7;
	--accent: #a85e2e;
	--accent-fg: #fffaf3;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme]) {
		--bg: #0a0907;
		--fg: #f2eee7;
		--muted: #b9afa3;
		--line: #3d3730;
		--soft: #181511;
		--card: #201b16;
		--accent: #e6a36c;
		--accent-fg: #22160d;
	}
}

:root[data-theme="dark"] {
	--bg: #0a0907;
	--fg: #f2eee7;
	--muted: #b9afa3;
	--line: #3d3730;
	--soft: #181511;
	--card: #201b16;
	--accent: #e6a36c;
	--accent-fg: #22160d;
}
:root[data-theme="light"] {
	color-scheme: light;
}
:root[data-theme="dark"] {
	color-scheme: dark;
}

* {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
}
body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: "DM Sans", sans-serif;
	line-height: 1.5;
}
a {
	color: inherit;
}
button {
	font: inherit;
}
.wrap {
	width: min(100% - 48px, 1320px);
	margin-inline: auto;
}
.skip {
	position: absolute;
	top: -100px;
	left: 16px;
	z-index: 20;
	padding: 8px 12px;
	background: var(--fg);
	color: var(--bg);
}
.skip:focus {
	top: 12px;
}
:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 4px;
}
.site-header {
	display: flex;
	align-items: center;
	gap: 36px;
	min-height: 88px;
	border-bottom: 1px solid var(--line);
}
.wordmark {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	text-decoration: none;
	font-family: "Space Grotesk", sans-serif;
	font-weight: 700;
	letter-spacing: 0.11em;
	font-size: 15px;
}
.wordmark-mark {
	display: inline-grid;
	place-items: center;
	width: 29px;
	height: 29px;
	border: 2px solid var(--fg);
	font-size: 17px;
	letter-spacing: 0;
	line-height: 1;
}
.wordmark-mark span {
	color: var(--accent);
}
nav {
	display: flex;
	align-items: center;
	gap: 30px;
	margin-left: auto;
}
nav a,
.text-link {
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}
nav a:hover,
.text-link:hover {
	color: var(--accent);
}
.theme-toggle {
	width: 35px;
	height: 35px;
	border: 1px solid var(--line);
	background: transparent;
	color: var(--fg);
	cursor: pointer;
	border-radius: 50%;
}
.theme-toggle:hover {
	border-color: var(--accent);
}
.hero {
	min-height: min(760px, calc(100svh - 88px));
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.85fr);
	align-items: center;
	gap: clamp(36px, 6vw, 100px);
	padding-block: 72px 96px;
}
.eyebrow {
	display: flex;
	gap: 10px;
	align-items: center;
	color: var(--accent);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.19em;
}
.status-dot {
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--accent);
}
h1,
h2,
h3 {
	margin: 0;
	font-family: "Space Grotesk", sans-serif;
	letter-spacing: -0.055em;
	line-height: 1.05;
}
h1 {
	margin-top: 24px;
	font-size: clamp(54px, 6.3vw, 104px);
	font-weight: 500;
}
h1 em {
	font-style: normal;
	color: var(--accent);
}
.lead {
	max-width: 580px;
	margin: 28px 0 0;
	color: var(--muted);
	font-size: clamp(17px, 1.5vw, 21px);
	line-height: 1.55;
}
.hero-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 27px;
	margin-top: 38px;
}
.button {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	min-width: 217px;
	padding: 14px 17px;
	background: var(--fg);
	color: var(--bg);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}
.button:hover {
	background: var(--accent);
	color: var(--accent-fg);
}
.hero-art {
	background: var(--card);
	border: 1px solid var(--line);
	padding: clamp(20px, 2.5vw, 38px);
	transform: rotate(1deg);
	box-shadow: 17px 17px 0 var(--soft);
}
.art-top {
	display: flex;
	justify-content: space-between;
	padding-bottom: 22px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.16em;
	color: var(--muted);
}
.art-row {
	display: grid;
	grid-template-columns: 50px 1fr 28px;
	align-items: center;
	min-height: 79px;
	border-top: 1px solid var(--line);
	font-family: "Space Grotesk", sans-serif;
	font-size: clamp(23px, 2.1vw, 32px);
	letter-spacing: -0.04em;
}
.art-num {
	color: var(--muted);
	font:
		700 11px "DM Sans",
		sans-serif;
	letter-spacing: 0.04em;
}
.art-symbol {
	text-align: right;
	font-size: 22px;
	color: var(--muted);
}
.accent-row {
	color: var(--accent);
}
.accent-row .art-symbol {
	color: var(--accent);
}
.art-foot {
	margin: 24px 0 0;
	border-top: 1px solid var(--line);
	padding-top: 22px;
	color: var(--muted);
	font-size: 12px;
}
.section {
	padding-block: clamp(80px, 9vw, 144px);
}
.section-heading {
	max-width: 710px;
}
h2 {
	margin-top: 14px;
	font-size: clamp(39px, 4.4vw, 70px);
	font-weight: 500;
}
.section-heading > p:last-child {
	max-width: 550px;
	color: var(--muted);
	font-size: 18px;
}
.workflow-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	margin-top: 56px;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}
.workflow-grid article {
	min-height: 230px;
	padding: 29px 26px 26px 0;
}
.workflow-grid article + article {
	border-left: 1px solid var(--line);
	padding-left: 26px;
}
.step {
	color: var(--accent);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.14em;
}
h3 {
	margin-top: 30px;
	font-size: 25px;
	font-weight: 500;
}
.workflow-grid p {
	margin-top: 14px;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.65;
}
code {
	font-size: 0.92em;
}
.boundary {
	background: var(--soft);
}
.boundary-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 11vw;
}
.boundary-inner > div:last-child {
	padding-top: 16px;
}
.boundary-inner p:not(.eyebrow) {
	margin: 0 0 23px;
	color: var(--muted);
	font-size: 17px;
	line-height: 1.7;
}
.boundary-inner .text-link {
	display: inline-block;
	margin-top: 7px;
	color: var(--accent);
}
footer {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	padding-block: 42px;
	color: var(--muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
}
footer a {
	text-decoration: none;
}

@media (max-width: 920px) {
	.site-header {
		gap: 18px;
	}
	nav {
		gap: 16px;
	}
	.hero {
		grid-template-columns: 1fr;
		min-height: 0;
		gap: 56px;
	}
	.hero-art {
		max-width: 620px;
		transform: none;
	}
	.workflow-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.workflow-grid article:nth-child(3) {
		border-left: 0;
		padding-left: 0;
		border-top: 1px solid var(--line);
	}
	.workflow-grid article:nth-child(4) {
		border-top: 1px solid var(--line);
	}
}
@media (max-width: 640px) {
	.wrap {
		width: min(100% - 40px, 1320px);
	}
	.site-header {
		min-height: 72px;
		flex-wrap: wrap;
		padding-block: 16px;
	}
	nav {
		order: 3;
		width: 100%;
		justify-content: space-between;
		margin-left: 0;
		gap: 8px;
	}
	nav a {
		font-size: 11px;
	}
	.theme-toggle {
		margin-left: auto;
	}
	.hero {
		padding-block: 60px 90px;
	}
	h1 {
		font-size: clamp(49px, 13vw, 72px);
	}
	.hero-art {
		box-shadow: 10px 10px 0 var(--soft);
	}
	.workflow-grid {
		grid-template-columns: 1fr;
	}
	.workflow-grid article,
	.workflow-grid article + article,
	.workflow-grid article:nth-child(3) {
		min-height: 0;
		border-left: 0;
		border-top: 1px solid var(--line);
		padding: 25px 0 23px;
	}
	.workflow-grid article:first-child {
		border-top: 0;
	}
	h3 {
		margin-top: 16px;
	}
	.boundary-inner {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	footer {
		flex-direction: column;
	}
}
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.theme-control {
	margin-left: auto;
}
.theme-control select {
	font: inherit;
	font-size: 12px;
	background: var(--card);
	color: var(--fg);
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 8px 12px;
}
.setup-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 64px;
	align-items: start;
	margin-block: 32px;
}
.command-card {
	border: 1px solid var(--line);
	background: var(--card);
	padding: 24px;
}
.command-heading {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	font-size: 11px;
	letter-spacing: 0.08em;
}
.copy-command {
	background: var(--soft);
	border: 1px solid var(--line);
	color: var(--fg);
	padding: 8px 12px;
	cursor: pointer;
}
.command-card pre {
	overflow-x: auto;
	font-size: 13px;
	line-height: 2;
	padding-block: 20px;
	margin: 0;
}
.command-card code {
	white-space: pre;
}
.command-card p {
	min-height: 3em;
	font-size: 12px;
	color: var(--muted);
}
.setup-notes {
	list-style: none;
	padding: 0;
	margin: 0;
	counter-reset: setup;
}
.setup-notes li {
	position: relative;
	padding-left: 36px;
	margin-bottom: 28px;
	counter-increment: setup;
}
.setup-notes li::before {
	content: counter(setup, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: 4px;
	color: var(--muted);
	font-size: 11px;
}
.setup-notes h3 {
	margin: 0 0 8px;
}
.setup-notes p {
	color: var(--muted);
	margin: 0;
	max-width: 46ch;
}
@media (max-width: 900px) {
	.setup-grid {
		grid-template-columns: 1fr;
		gap: 36px;
	}
}
@media (max-width: 640px) {
	.command-card {
		padding: 18px;
	}
	.command-card pre {
		font-size: 11px;
	}
}
