@font-face {
	font-family: "Archivo";
	src: url("assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
}
@font-face {
	font-family: "IBM Plex Mono";
	src: url("assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: "IBM Plex Mono";
	src: url("assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
	font-weight: 500;
	font-display: swap;
}

:root {
	--rack: #26323b;
	--rail: #1b242b;
	--well: #1f2a32;
	--seam: #3a4954;
	--chalk: #dce3e8;
	--dust: #9aa9b4;
	--ink: #1a1d21;
	--buff: #efe6cc;
	--sky: #cbe0ec;
	--signal: #f2c14e;
	--rose: #e9b7b0;
	--sage: #cfe3c8;

	--sans: "Archivo", system-ui, sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
	--measure: 68ch;
	--gutter: clamp(1rem, 4vw, 2.5rem);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--rail);
	color: var(--chalk);
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.6;
}

/* Layout: one reading column; the board and screenshots break out wider. */
/* Both share one outer width so text and board start on the same left edge. */
.wrap,
.wide {
	width: min(100% - 2 * var(--gutter), 84rem);
	margin-inline: auto;
}
.prose > * {
	max-width: var(--measure);
}

a {
	color: inherit;
	text-decoration-color: var(--dust);
	text-underline-offset: 0.2em;
}
a:hover {
	text-decoration-color: var(--signal);
}
:focus-visible {
	outline: 2px solid var(--signal);
	outline-offset: 3px;
	border-radius: 2px;
}

code,
pre {
	font-family: var(--mono);
	font-size: 0.875em;
}
:not(pre) > code {
	background: var(--well);
	padding: 0.1em 0.35em;
	border-radius: 3px;
	white-space: nowrap;
}

.skip {
	position: absolute;
	left: -999px;
	top: 0.5rem;
	background: var(--buff);
	color: var(--ink);
	padding: 0.5rem 0.75rem;
	border-radius: 3px;
	z-index: 10;
}
.skip:focus {
	left: 0.5rem;
}
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Masthead */
.masthead {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 1.25rem;
}
.wordmark {
	font-stretch: 70%;
	font-weight: 800;
	font-size: 1.5rem;
	letter-spacing: -0.01em;
	text-decoration: none;
}
.masthead nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.25rem;
	font-size: 0.9375rem;
}

/* Hero: the headline is set condensed and heavy, like the printed fields of a flight strip. */
.hero {
	padding-block: clamp(1.5rem, 4vw, 3rem) clamp(2rem, 4vw, 3rem);
}
h1 {
	margin: 0;
	max-width: 19ch;
	font-stretch: 66%;
	font-weight: 800;
	font-size: clamp(2.75rem, 7.2vw, 5.5rem);
	line-height: 0.95;
	letter-spacing: -0.015em;
	text-wrap: balance;
}
.lede {
	max-width: 58ch;
	margin: 1.25rem 0 1.5rem;
	font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
	line-height: 1.5;
}

.install {
	display: flex;
	align-items: stretch;
	max-width: 34rem;
	border-radius: 3px;
	background: var(--buff);
	color: var(--ink);
}
.install code {
	flex: 1;
	min-width: 0;
	overflow-x: auto;
	padding: 0.8rem 1rem;
	background: none;
	font-size: 0.9375rem;
	font-weight: 500;
	white-space: nowrap;
}
.copy {
	flex: none;
	border: 0;
	border-left: 1px solid rgb(26 29 33 / 0.3);
	background: none;
	color: inherit;
	padding-inline: 1rem;
	font: inherit;
	font-stretch: 75%;
	font-weight: 700;
	cursor: pointer;
	border-radius: 0 3px 3px 0;
}
.copy:hover {
	background: var(--ink);
	color: var(--buff);
}
.install + p {
	margin-top: 1rem;
}
.after-install {
	margin: 0.75rem 0 0;
	color: var(--dust);
}

/* The simulated board */
.demo {
	margin-bottom: clamp(3rem, 8vw, 6rem);
}
.demo-bar {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.75rem;
}
.demo-bar h2 {
	margin: 0;
	font-stretch: 100%;
	letter-spacing: 0;
	line-height: 1.4;
	font-size: 1rem;
	font-weight: 400;
	color: var(--dust);
}
.quiet {
	flex: none;
	border: 1px solid var(--seam);
	background: none;
	color: var(--chalk);
	font: inherit;
	font-size: 0.875rem;
	padding: 0.2rem 0.7rem;
	border-radius: 3px;
	cursor: pointer;
}
.quiet:hover {
	border-color: var(--chalk);
}
.board-scroll {
	overflow-x: auto;
	border-radius: 6px;
}
.board {
	display: grid;
	grid-template-columns: 9.5rem repeat(4, minmax(12.5rem, 1fr));
	gap: 0.5rem 2px;
	min-width: 62rem;
}
.col-head {
	padding: 0 0.5rem 0.15rem;
	font-stretch: 75%;
	font-weight: 600;
	font-size: 0.9375rem;
	color: var(--dust);
}
.lane-head {
	position: sticky;
	left: 0;
	z-index: 1;
	background: var(--rack);
	border-radius: 6px 0 0 6px;
	padding: 0.75rem;
}
.lane-head strong {
	display: block;
	line-height: 1.2;
}
.lane-head span {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.75rem;
	line-height: 1.35;
	color: var(--dust);
}
.cell {
	background: rgb(38 50 59 / 0.6);
	padding: 0.4rem;
	min-height: 6.75rem;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}
.cell:last-child,
.cell.last {
	border-radius: 0 6px 6px 0;
}

.strip {
	display: flex;
	border-radius: 3px;
	color: var(--ink);
	background: var(--buff);
	font-size: 0.9375rem;
	animation: land 0.35s ease-out;
}
.strip.sky {
	background: var(--sky);
}
.strip.signal {
	background: var(--signal);
}
.strip.sage {
	background: var(--sage);
}
.strip .holder {
	flex: none;
	width: 6px;
	border-radius: 3px 0 0 3px;
	background: rgb(26 29 33 / 0.25);
}
.strip.working .holder {
	background: linear-gradient(180deg, transparent, var(--ink) 50%, transparent);
	background-size: 100% 200%;
	animation: sweep 1.6s linear infinite;
}
.strip .body {
	flex: 1;
	min-width: 0;
	padding: 0.45rem 0.6rem;
}
.strip .title {
	display: block;
	font-weight: 600;
	line-height: 1.25;
}
.strip .meta {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	margin-top: 0.15rem;
	font-stretch: 75%;
	font-size: 0.8125rem;
}
.strip .meta b {
	font-weight: 600;
}
.strip .meta i {
	margin-left: auto;
	font-family: var(--mono);
	font-style: normal;
	font-stretch: normal;
	font-size: 0.6875rem;
	opacity: 0.6;
}
.strip .note {
	display: block;
	margin-top: 0.15rem;
	font-size: 0.8125rem;
	line-height: 1.3;
}
.strip .act {
	margin-top: 0.45rem;
	padding-top: 0.4rem;
	border-top: 1px solid rgb(26 29 33 / 0.25);
}
.strip button {
	border: 1px solid rgb(26 29 33 / 0.65);
	background: var(--ink);
	color: var(--signal);
	font: inherit;
	font-stretch: 75%;
	font-weight: 700;
	font-size: 0.875rem;
	padding: 0.2rem 0.6rem;
	border-radius: 3px;
	cursor: pointer;
}
.strip button:hover {
	background: none;
	color: var(--ink);
}

@keyframes sweep {
	from {
		background-position: 0 100%;
	}
	to {
		background-position: 0 -100%;
	}
}
@keyframes land {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
}

/* On a phone, keep the lane labels narrow so the Planning column (where a card waits) peeks into view. */
@media (max-width: 40rem) {
	.board {
		grid-template-columns: 6.25rem repeat(4, 11.5rem);
		min-width: 0;
		width: max-content;
	}
	.lane-head {
		padding: 0.6rem 0.5rem;
		font-size: 0.875rem;
		overflow-wrap: anywhere;
	}
}

.legend {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1.5rem;
	margin: 0.9rem 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.875rem;
	color: var(--dust);
}
.swatch {
	display: inline-block;
	width: 1.6rem;
	height: 0.7rem;
	margin-right: 0.5rem;
	border-radius: 2px;
	vertical-align: -0.02em;
}
.swatch.buff {
	background: var(--buff);
}
.swatch.sky {
	background: var(--sky);
}
.swatch.signal {
	background: var(--signal);
}
.swatch.sage {
	background: var(--sage);
}

/* Sections */
section.prose {
	padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
h2 {
	margin: 0 0 1.25rem;
	font-stretch: 70%;
	font-weight: 750;
	font-size: clamp(1.875rem, 4vw, 2.75rem);
	line-height: 1.05;
	letter-spacing: -0.01em;
}
h3 {
	margin: 0 0 0.3rem;
	font-size: 1.1875rem;
	font-weight: 650;
	line-height: 1.3;
}
p {
	margin: 0 0 1rem;
}

/* The route really is a sequence, so it is numbered. */
.route {
	list-style: none;
	margin: 2rem 0 0;
	padding: 0;
	counter-reset: step;
}
.route li {
	counter-increment: step;
	position: relative;
	padding: 0 0 1.75rem 3.5rem;
	border-left: 2px solid var(--seam);
	margin-left: 1.1rem;
}
.route li:last-child {
	border-left-color: transparent;
	padding-bottom: 0;
}
.route li::before {
	content: counter(step);
	position: absolute;
	left: -1.15rem;
	top: -0.2rem;
	width: 2.2rem;
	height: 2.2rem;
	display: grid;
	place-items: center;
	border-radius: 3px;
	background: var(--buff);
	color: var(--ink);
	font-stretch: 75%;
	font-weight: 800;
	font-size: 1.125rem;
}
.route li:nth-child(2)::before {
	background: var(--signal);
}
.route li:nth-child(3)::before {
	background: var(--sky);
}
.route li:nth-child(4)::before {
	background: var(--sage);
}
.route p {
	margin: 0;
	color: var(--dust);
}
.route p code {
	color: var(--chalk);
}

.facts {
	margin: 2rem 0 0;
	max-width: none;
	display: grid;
	gap: 0;
}
.facts > div {
	display: grid;
	grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
	gap: 0.25rem 2rem;
	padding-block: 1rem;
	border-top: 1px solid var(--seam);
}
.facts dt {
	font-weight: 650;
}
.facts dd {
	margin: 0;
	max-width: 56ch;
	color: var(--dust);
}
.facts dd code {
	color: var(--chalk);
}
.facts.compact > div {
	padding-block: 0.65rem;
}
@media (max-width: 40rem) {
	.facts > div {
		grid-template-columns: 1fr;
	}
}

.shot {
	margin-block: clamp(1rem, 4vw, 2.5rem);
}
.shot img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--seam);
	border-radius: 6px;
}
.shot figcaption {
	margin-top: 0.75rem;
	max-width: var(--measure);
	font-size: 0.9375rem;
	color: var(--dust);
}

.commands {
	width: 100%;
	max-width: 46rem;
	margin: 1.5rem 0;
	border-collapse: collapse;
	font-size: 1rem;
}
.commands th,
.commands td {
	padding: 0.7rem 0;
	border-top: 1px solid var(--seam);
	text-align: left;
	vertical-align: baseline;
}
.commands th {
	padding-right: 1.5rem;
	font-weight: 400;
	white-space: nowrap;
}
.commands td {
	color: var(--dust);
}
@media (max-width: 40rem) {
	.commands th,
	.commands td {
		display: block;
		padding: 0;
		border: 0;
	}
	.commands th {
		padding-top: 0.8rem;
		border-top: 1px solid var(--seam);
	}
	.commands td {
		padding-bottom: 0.8rem;
	}
}

.caution {
	border-left: 3px solid var(--signal);
	padding-left: 1rem;
	color: var(--dust);
}

pre {
	max-width: 46rem;
	margin: 1.5rem 0;
	padding: 1rem 1.25rem;
	overflow-x: auto;
	border-radius: 3px;
	background: var(--well);
	line-height: 1.55;
	tab-size: 2;
}

.foot {
	margin-top: 2rem;
	padding-block: 2rem 3rem;
	border-top: 1px solid var(--seam);
	font-size: 0.9375rem;
	color: var(--dust);
}
.foot p {
	max-width: var(--measure);
	margin: 0;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	.strip,
	.strip.working .holder {
		animation: none;
	}
	.strip.working .holder {
		background: var(--ink);
	}
}
