/* Atlas website.
   The look comes from the product's own name and logo: an atlas is a book of maps, and the logo is a
   graphite tile with a blue dot. So: graphite and map paper, contour lines drawn live behind the dark
   bands, grid references (A1, B2) instead of numbered cards, a legend for the permission table, and the
   blue dot used as the one accent ("you are here").
   Order: tokens, base, type, header, buttons, bands, home sections, the app demo, inner pages, footer, responsive. */

:root {
	--paper: #f4f3ef;
	--paper-2: #ebeae4;
	--card: #fbfbf9;
	--ink: #1c1c1e;
	--ink-2: #57575a;
	--ink-3: #8c8b88;
	--rule: rgb(28 28 30 / 0.14);
	--rule-2: rgb(28 28 30 / 0.28);
	--night: #1c1c1e;
	--night-2: #26262a;
	--on-night: #f3f2ee;
	--on-night-2: rgb(243 242 238 / 0.66);
	--on-night-3: rgb(243 242 238 / 0.4);
	--night-rule: rgb(243 242 238 / 0.13);
	--dot: #7aa7ff;
	--dot-ink: #2b5fd9;
	--dot-wash: rgb(122 167 255 / 0.16);
	--green: #1d7a45;
	--red: #b63a2b;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--font: "Segoe UI", -apple-system, "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
	--head: "Bahnschrift", "Segoe UI", -apple-system, "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
	--gut: 32px;
	--mono: "Cascadia Mono", "Cascadia Code", Consolas, "SFMono-Regular", Menlo, monospace;
	color-scheme: light;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 84px;
	background: var(--paper);
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--dot-ink);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

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

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

::selection {
	background: var(--dot);
	color: var(--ink);
}

h1,
h2,
h3,
h4 {
	margin: 0;
	font-family: var(--head);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	word-break: keep-all;
	overflow-wrap: anywhere;
}

p {
	margin: 0 0 1em;
}

code,
kbd,
pre {
	font-family: var(--mono);
	font-size: 0.88em;
}

code {
	background: var(--paper-2);
	border-radius: 4px;
	padding: 0.08em 0.38em;
	word-break: break-all;
}

kbd {
	display: inline-block;
	min-width: 1.9em;
	padding: 0.05em 0.45em;
	border: 1px solid var(--rule-2);
	border-bottom-width: 2px;
	border-radius: 5px;
	background: var(--card);
	text-align: center;
	font-size: 0.8em;
}

.i {
	width: 18px;
	height: 18px;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.wrap {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 var(--gut);
}

/* A rule that spans the content, not the gutters of .wrap. */
.rule-b {
	background: linear-gradient(var(--rc, var(--rule)), var(--rc, var(--rule))) bottom center / calc(100% - 2 * var(--gut)) 1px no-repeat;
}

.rule-t {
	background: linear-gradient(var(--rc, var(--rule)), var(--rc, var(--rule))) top center / calc(100% - 2 * var(--gut)) 1px no-repeat;
}

.wrap.narrow {
	max-width: 880px;
}

.skip {
	position: absolute;
	left: -9999px;
}

.skip:focus {
	left: 16px;
	top: 12px;
	z-index: 100;
	background: var(--card);
	padding: 8px 14px;
}

/* Type helpers */

.kicker {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	font-family: var(--mono);
	font-size: 12px;
	line-height: 1.4;
	letter-spacing: 0.04em;
	color: var(--ink-2);
}

.night .kicker {
	color: var(--on-night-3);
}

.ref {
	display: inline-grid;
	place-items: center;
	min-width: 28px;
	height: 20px;
	padding: 0 5px;
	border: 1px solid currentColor;
	border-radius: 3px;
	font-size: 11px;
	letter-spacing: 0.04em;
	color: var(--ink);
}

/* The logo's blue dot, used as a full stop after big headings. */
.dot {
	display: inline-block;
	width: 0.17em;
	height: 0.17em;
	margin-left: 0.07em;
	border-radius: 50%;
	background: var(--dot);
	vertical-align: baseline;
}

.lede {
	font-size: 18px;
	line-height: 1.75;
	max-width: 36em;
}

/* Header: light over the graphite band at the top of every page, paper once the page scrolls. */

.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 50;
	color: var(--on-night);
	transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
	background: rgb(244 243 239 / 0.9);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	backdrop-filter: saturate(1.4) blur(14px);
	color: var(--ink);
	box-shadow: 0 1px 0 var(--rule);
}

.header-row {
	display: flex;
	align-items: center;
	gap: 36px;
	height: 64px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: inherit;
	text-decoration: none;
	font-family: var(--head);
	font-weight: 700;
	font-size: 18px;
	letter-spacing: -0.01em;
}

.brand:hover {
	color: inherit;
}

.brand img {
	border-radius: 7px;
	box-shadow: 0 0 0 1px rgb(255 255 255 / 0.14);
}

.nav {
	display: flex;
	gap: 28px;
}

.nav a {
	color: inherit;
	text-decoration: none;
	font-size: 14.5px;
	opacity: 0.72;
	transition: opacity 0.2s;
	position: relative;
}

.nav a:hover,
.nav a[aria-current] {
	opacity: 1;
}

.nav a[aria-current]::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -8px;
	width: 5px;
	height: 5px;
	margin-left: -2.5px;
	border-radius: 50%;
	background: var(--dot);
}

.header-cta {
	margin-left: auto;
	background: var(--on-night);
	color: var(--ink);
}

.header-cta:hover {
	background: #fff;
	color: var(--ink);
}

.scrolled .header-cta {
	background: var(--ink);
	color: var(--paper);
}

.scrolled .header-cta:hover {
	background: #000;
	color: #fff;
}

.menu {
	display: none;
	position: relative;
}

.menu summary {
	list-style: none;
	cursor: pointer;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 8px;
}

.menu summary::-webkit-details-marker {
	display: none;
}

.menu-panel {
	position: absolute;
	right: 0;
	top: 48px;
	min-width: 200px;
	padding: 8px;
	background: var(--card);
	color: var(--ink);
	border: 1px solid var(--rule);
	border-radius: 10px;
	box-shadow: 0 20px 50px -20px rgb(0 0 0 / 0.35);
}

.menu-panel a {
	display: block;
	padding: 10px 12px;
	border-radius: 6px;
	color: var(--ink);
	text-decoration: none;
}

.menu-panel a:hover {
	background: var(--paper-2);
}

/* Buttons */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 44px;
	padding: 0 20px;
	border: 1px solid transparent;
	border-radius: 8px;
	font: 600 15px/1 var(--font);
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}

.btn:active {
	transform: translateY(1px);
}

.btn-lg {
	height: 52px;
	padding: 0 26px;
	font-size: 16px;
}

.btn-sm {
	height: 34px;
	padding: 0 16px;
	font-size: 14px;
}

.btn-light {
	background: var(--on-night);
	color: var(--ink);
}

.btn-light:hover {
	background: #fff;
	color: var(--ink);
}

.btn-line {
	border-color: rgb(243 242 238 / 0.3);
	color: var(--on-night);
}

.btn-line:hover {
	border-color: var(--on-night);
	color: var(--on-night);
}

.btn-dark,
.btn-primary {
	background: var(--ink);
	color: var(--paper);
}

.btn-dark:hover,
.btn-primary:hover {
	background: #000;
	color: #fff;
}

.btn-outline,
.btn-ghost {
	border-color: var(--rule-2);
	background: transparent;
	color: var(--ink);
}

.btn-outline:hover,
.btn-ghost:hover {
	border-color: var(--ink);
	color: var(--ink);
}

.btn.done {
	border-color: var(--green);
	color: var(--green);
	background: transparent;
}

.cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* Scroll reveal (only when JS runs, so content never stays hidden). */

.js [data-reveal] {
	opacity: 0;
	translate: 0 16px;
	transition: opacity 0.8s var(--ease), translate 0.8s var(--ease);
	transition-delay: var(--d, 0s);
}

.js [data-reveal].in {
	opacity: 1;
	translate: 0 0;
}

/* Graphite bands with a live contour map behind them. */

.night {
	position: relative;
	isolation: isolate;
	background: var(--night);
	color: var(--on-night);
}

.topo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	pointer-events: none;
}

.night a:not(.btn) {
	color: var(--on-night);
}

/* Hero */

.hero {
	display: flow-root;
	padding: 148px 0 0;
}

/* The map's neat line, with grid letters along the top and numbers down the side. */
.mapframe {
	position: absolute;
	inset: 88px 32px 0;
	border: 1px solid var(--night-rule);
	border-bottom: 0;
	z-index: -1;
	pointer-events: none;
	font-family: var(--mono);
	font-size: 11px;
	color: var(--on-night-3);
}

.mapframe::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 6px;
	background: repeating-linear-gradient(90deg, var(--night-rule) 0 1px, transparent 1px 16px);
}

.mf-top {
	position: absolute;
	inset: -8px 0 auto;
	display: flex;
	justify-content: space-around;
}

.mf-side {
	position: absolute;
	inset: 0 auto 0 -5px;
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	padding-bottom: 240px;
}

.mf-top span,
.mf-side span {
	background: var(--night);
	padding: 0 6px;
	line-height: 16px;
}

.mf-side span {
	padding: 6px 0;
}

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: 40px;
	align-items: center;
}

.hero h1 {
	font-size: clamp(44px, 6.2vw, 84px);
	line-height: 1.08;
	letter-spacing: -0.04em;
	margin-bottom: 28px;
}

.hero .lede {
	color: var(--on-night-2);
	margin-bottom: 36px;
}

.hero-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
	margin: 22px 0 0;
	font-family: var(--mono);
	font-size: 12.5px;
	color: var(--on-night-3);
}

.hero-meta > * + * {
	position: relative;
}

.hero-meta > * + *::before {
	content: "";
	position: absolute;
	left: -12px;
	top: 50%;
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: var(--on-night-3);
}

.night .hero-meta a {
	color: var(--on-night-2);
}

/* "You are here": the working folder pinned on the map. */
.marker {
	position: relative;
	height: 360px;
}

.marker::before,
.marker::after {
	content: "";
	position: absolute;
	background-repeat: repeat;
	opacity: 0.5;
}

.marker::before {
	left: 0;
	right: 0;
	top: 58%;
	height: 1px;
	background-image: linear-gradient(90deg, var(--on-night-3) 0 4px, transparent 4px 9px);
	background-size: 9px 1px;
}

.marker::after {
	top: 0;
	bottom: 0;
	left: 38%;
	width: 1px;
	background-image: linear-gradient(var(--on-night-3) 0 4px, transparent 4px 9px);
	background-size: 1px 9px;
}

.pin {
	position: absolute;
	left: 38%;
	top: 58%;
	width: 16px;
	height: 16px;
	margin: -8px 0 0 -8px;
	border-radius: 50%;
	background: var(--dot);
	box-shadow: 0 0 0 4px var(--night);
	z-index: 2;
}

.pin::before,
.pin::after {
	content: "";
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	border: 1px solid var(--dot);
	animation: pulse 3.2s var(--ease) infinite;
}

.pin::after {
	animation-delay: 1.6s;
}

@keyframes pulse {
	from {
		transform: scale(1);
		opacity: 0.9;
	}

	to {
		transform: scale(4.2);
		opacity: 0;
	}
}

.leader {
	position: absolute;
	left: 38%;
	top: 58%;
	width: 80px;
	height: 1px;
	background: var(--on-night-2);
	transform-origin: 0 50%;
	transform: rotate(-52deg);
	z-index: 1;
}

.marker-card {
	position: absolute;
	left: calc(38% + 49px);
	top: calc(58% - 63px);
	transform: translateY(-100%);
	display: grid;
	gap: 2px;
	padding: 10px 14px 11px;
	border: 1px solid rgb(243 242 238 / 0.24);
	border-radius: 6px;
	background: rgb(28 28 30 / 0.78);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	font-family: var(--mono);
	white-space: nowrap;
}

.marker-card small {
	font-size: 11px;
	letter-spacing: 0.05em;
	color: var(--dot);
}

.marker-card b {
	font-weight: 500;
	font-size: 14px;
}

.hero-demo {
	position: relative;
	z-index: 2;
	margin-top: 64px;
	margin-bottom: -300px;
}

.caption {
	display: flex;
	gap: 12px;
	align-items: baseline;
	margin: 18px 0 0;
	font-size: 13px;
	color: var(--ink-2);
}

.caption span {
	font-family: var(--mono);
	font-size: 11.5px;
	letter-spacing: 0.04em;
	color: var(--ink);
	flex: none;
}

/* Providers */

.providers {
	padding: 340px 0 24px;
}

.providers-row {
	display: flex;
	align-items: baseline;
	gap: 28px;
	padding-top: 22px;
}

.providers .kicker {
	margin: 0;
	flex: none;
}

.providers ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 26px;
	font-size: 15px;
	color: var(--ink-2);
}

.providers li {
	position: relative;
}

.providers li + li::before {
	content: "";
	position: absolute;
	left: -15px;
	top: 50%;
	width: 4px;
	height: 4px;
	margin-top: -2px;
	border-radius: 50%;
	background: var(--rule-2);
}

/* Sections on paper. Each starts with a heavy rule, like the head of a map sheet. */

.section {
	padding: 112px 0 0;
}

main > .section:last-child {
	padding-bottom: 128px;
}

.section-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 0 32px;
	padding-top: 20px;
	border-top: 1.5px solid var(--ink);
	margin-bottom: 44px;
}

.section-head .kicker,
.section-head h2,
.section-head .head-note {
	grid-column: 1;
}

.section-head h2 {
	font-size: clamp(30px, 3.9vw, 50px);
	letter-spacing: -0.035em;
}

.head-note {
	margin: 14px 0 0;
	color: var(--ink-2);
}

.head-link {
	grid-column: 2;
	grid-row: 1 / span 3;
	align-self: end;
	color: var(--ink);
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
	padding-bottom: 6px;
}

.head-link:hover {
	color: var(--dot-ink);
}

/* Get it: three legend boxes in a row. */

.legend3 {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-top: 1px solid var(--rule);
	border-bottom: 1px solid var(--rule);
}

.legend3 > div {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 30px 32px 34px;
}

.legend3 > div:first-child {
	padding-left: 0;
}

.legend3 > div + div {
	border-left: 1px solid var(--rule);
}

.legend3 h3 {
	font-size: 20px;
	letter-spacing: -0.01em;
	margin-bottom: 10px;
	word-break: break-all;
}

.legend3 h3 code {
	background: none;
	padding: 0;
	font-size: 17px;
	font-weight: 600;
	letter-spacing: 0;
}

.legend3 p:not(.kicker) {
	color: var(--ink-2);
	font-size: 15px;
	margin-bottom: 24px;
}

.legend3 .btn {
	margin-top: auto;
}

/* Features: a 3 × 2 map grid, each cell with its grid reference. */

.grid6 {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-top: 1px solid var(--rule);
	border-left: 1px solid var(--rule);
}

.cell {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 26px 28px 28px;
	border-right: 1px solid var(--rule);
	border-bottom: 1px solid var(--rule);
	transition: background-color 0.3s;
}

/* Registration marks appear on the corners of the cell under the pointer. */
.cell::after {
	content: "";
	position: absolute;
	inset: -1px;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s;
	background:
		linear-gradient(var(--ink), var(--ink)) top left / 14px 1.5px,
		linear-gradient(var(--ink), var(--ink)) top left / 1.5px 14px,
		linear-gradient(var(--ink), var(--ink)) top right / 14px 1.5px,
		linear-gradient(var(--ink), var(--ink)) top right / 1.5px 14px,
		linear-gradient(var(--ink), var(--ink)) bottom left / 14px 1.5px,
		linear-gradient(var(--ink), var(--ink)) bottom left / 1.5px 14px,
		linear-gradient(var(--ink), var(--ink)) bottom right / 14px 1.5px,
		linear-gradient(var(--ink), var(--ink)) bottom right / 1.5px 14px;
	background-repeat: no-repeat;
}

.cell:hover {
	background: var(--card);
}

.cell:hover::after {
	opacity: 1;
}

.cell-ref {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 22px;
	font-family: var(--mono);
	font-size: 12px;
	letter-spacing: 0.06em;
	color: var(--ink-2);
}

.cell-ref b {
	display: inline-grid;
	place-items: center;
	min-width: 30px;
	height: 22px;
	border-radius: 3px;
	background: var(--ink);
	color: var(--paper);
	font-weight: 500;
	font-size: 11.5px;
}

.cell h3 {
	font-size: 24px;
	margin-bottom: 10px;
}

.cell > p:not(.cell-ref) {
	color: var(--ink-2);
	font-size: 15px;
	line-height: 1.7;
	margin-bottom: 24px;
}

.shot {
	margin: auto 0 0;
	aspect-ratio: 16 / 10;
	border: 1px solid var(--rule);
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

.shot img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: left top;
}

/* A screenshot enlarged and moved so one panel fills the frame (--z width, --x/--y offsets). */
.shot.zoom img {
	width: var(--z);
	max-width: none;
	height: auto;
	margin: var(--y) 0 0 var(--x);
}

/* Screenshots shown at their own pixel size, cropped to the interesting part. */
.shot.native img {
	object-fit: none;
}

.shot.fit {
	display: grid;
	place-items: center;
	background: #edf1ea;
	padding: 14px;
}

.shot.fit img {
	height: auto;
	object-fit: contain;
	border-radius: 10px;
	box-shadow: 0 10px 30px -14px rgb(0 0 0 / 0.3);
}

.shot.term {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 12px;
	padding: 20px 22px;
	background: var(--night);
	border-color: var(--night);
	color: var(--on-night);
	font-family: var(--mono);
	font-size: 12.5px;
}

.shot.term div {
	display: flex;
	gap: 10px;
	white-space: nowrap;
	overflow: hidden;
}

.shot.term .p {
	color: var(--dot);
	flex: none;
}

.shot.term em {
	margin-left: auto;
	font-style: normal;
	color: var(--on-night-3);
}

.shot.term ins {
	color: #7ad49a;
	text-decoration: none;
}

.shot.term del {
	color: #ff8f7f;
	text-decoration: none;
}

.shot.term em.ok {
	color: #7ad49a;
}

/* Smaller features: four short columns under the grid. */

.more {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0 32px;
	margin-top: 56px;
}

.more > div {
	padding: 18px 0 26px;
	border-top: 1px solid var(--rule);
}

.more b {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 15.5px;
	margin-bottom: 6px;
}

.more b::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--dot);
	flex: none;
}

.more span {
	display: block;
	color: var(--ink-2);
	font-size: 14px;
	line-height: 1.65;
}

/* Permission modes: a table read through a map legend. */

.legend-key {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	margin-bottom: 18px;
	font-size: 14px;
	color: var(--ink-2);
}

.legend-key span {
	display: inline-flex;
	align-items: center;
	gap: 9px;
}

.sym {
	display: inline-block;
	flex: none;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	vertical-align: -1px;
}

.s-do {
	background: var(--ink);
}

.s-ask {
	border: 2px solid var(--dot-ink);
	background: var(--paper);
	box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 6px var(--dot-ink);
}

.s-model {
	border: 1.5px solid var(--ink);
	background: linear-gradient(90deg, var(--ink) 50%, transparent 50%);
}

.s-no {
	width: 12px;
	height: 2px;
	border-radius: 1px;
	background: var(--ink-3);
	vertical-align: 3px;
}

.modes-table {
	overflow-x: auto;
	border-top: 1px solid var(--ink);
}

.modes-table table {
	width: 100%;
	min-width: 760px;
	border-collapse: collapse;
}

.modes-table th,
.modes-table td {
	padding: 17px 16px;
	text-align: left;
	vertical-align: middle;
	border-bottom: 1px solid var(--rule);
	font-size: 15px;
}

.modes-table thead th {
	font-family: var(--head);
	font-weight: 700;
	font-size: 16px;
	padding-top: 20px;
	padding-bottom: 20px;
}

.modes-table thead th small {
	display: inline-block;
	margin-left: 8px;
	padding: 1px 7px;
	border-radius: 999px;
	background: var(--dot);
	color: var(--ink);
	font: 500 11px/1.6 var(--mono);
	vertical-align: 2px;
}

.modes-table tbody th {
	font-weight: 600;
	color: var(--ink);
	white-space: nowrap;
	padding-left: 0;
}

.modes-table td {
	color: var(--ink);
}

.modes-table td .sym {
	margin-right: 9px;
}

.modes-table .def {
	background: var(--dot-wash);
}

.modes-table .fit-row td {
	color: var(--ink-2);
	font-size: 14px;
}

.modes-note {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 40px;
	margin-top: 30px;
}

.modes-note p {
	margin: 0;
	color: var(--ink-2);
	font-size: 15px;
}

.modes-note b {
	display: block;
	color: var(--ink);
	margin-bottom: 4px;
}

/* Video */

.video {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 10px;
	overflow: hidden;
	background: var(--night);
	border: 1px solid var(--rule);
}

.video video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.video-cover {
	position: absolute;
	left: 18px;
	bottom: 18px;
	padding: 8px 14px;
	border-radius: 6px;
	background: rgb(28 28 30 / 0.86);
	color: #fff;
	pointer-events: none;
	transition: opacity 0.3s;
}

.video-cover b {
	font-size: 14px;
	margin-right: 10px;
}

.video-cover span {
	font-family: var(--mono);
	font-size: 12.5px;
	opacity: 0.75;
}

.play {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 78px;
	height: 78px;
	margin: -39px 0 0 -39px;
	border: 0;
	border-radius: 50%;
	background: var(--paper);
	color: var(--ink);
	display: grid;
	place-items: center;
	cursor: pointer;
	box-shadow: 0 0 0 10px rgb(244 243 239 / 0.18);
	transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.play:hover {
	transform: scale(1.06);
	box-shadow: 0 0 0 14px rgb(244 243 239 / 0.22);
}

.play svg {
	width: 28px;
	height: 28px;
	fill: currentColor;
	margin-left: 4px;
}

.video.playing .video-cover,
.video.playing .play {
	opacity: 0;
	pointer-events: none;
}

/* FAQ: heading on the left, ruled questions on the right. */

.faq-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: 0 64px;
	align-items: start;
}

.faq-layout .section-head {
	position: sticky;
	top: 96px;
	grid-template-columns: 1fr;
}

.faq {
	border-top: 1.5px solid var(--ink);
}

.faq details {
	border-bottom: 1px solid var(--rule);
}

.faq summary {
	display: flex;
	align-items: baseline;
	gap: 18px;
	padding: 22px 40px 22px 0;
	position: relative;
	cursor: pointer;
	list-style: none;
	font-size: 18px;
	font-weight: 600;
}

.faq summary::-webkit-details-marker {
	display: none;
}

.faq summary i {
	font-style: normal;
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 400;
	color: var(--ink-3);
	min-width: 22px;
}

.faq summary::after {
	content: "";
	position: absolute;
	right: 4px;
	top: 50%;
	width: 14px;
	height: 14px;
	margin-top: -7px;
	background:
		linear-gradient(var(--ink), var(--ink)) center / 14px 1.5px no-repeat,
		linear-gradient(var(--ink), var(--ink)) center / 1.5px 14px no-repeat;
	transition: transform 0.3s var(--ease);
}

.faq details[open] summary::after {
	transform: rotate(45deg);
}

.faq summary:hover span {
	color: var(--dot-ink);
}

.faq-body {
	padding: 0 40px 24px 40px;
	color: var(--ink-2);
}

.faq-body p {
	margin: 0;
}

.copyable {
	cursor: copy;
}

.copy {
	flex: none;
	border: 1px solid currentColor;
	border-radius: 6px;
	background: transparent;
	color: inherit;
	font: 500 12px/1 var(--mono);
	padding: 6px 10px;
	cursor: pointer;
	opacity: 0.75;
	transition: opacity 0.2s;
}

.copy:hover {
	opacity: 1;
}

.copy.done {
	color: var(--green);
	opacity: 1;
}


/* The animated app drawing, in the app's light theme. */

.demo {
	--text: #1d1d1f;
	--muted: #5f6166;
	--dim: #9a9ca1;
	--border: rgb(0 0 0 / 0.07);
	--border-2: rgb(0 0 0 / 0.13);
	--panel: rgb(0 0 0 / 0.025);
	--panel-2: rgb(0 0 0 / 0.045);
	--blue: #2563eb;
	--green: #15803d;
	--red: #c62828;
	--amber: #b45309;
	color: var(--text);
	--demo-bg: #ffffff;
	--sage: #edf1ea;
	text-align: left;
	border-radius: 12px;
	background: var(--demo-bg);
	border: 1px solid rgb(0 0 0 / 0.25);
	box-shadow: 0 50px 110px -40px rgb(0 0 0 / 0.65), 0 0 0 1px rgb(255 255 255 / 0.06);
	overflow: hidden;
	font-size: 13px;
	line-height: 1.6;
}

.demo-bar {
	display: flex;
	align-items: center;
	height: 38px;
	padding: 0 14px;
	background: var(--sage);
}

.demo-app {
	display: inline-flex;
	gap: 7px;
	align-items: center;
	color: var(--muted);
	font-size: 12px;
}

.demo-win {
	margin-left: auto;
	display: flex;
	gap: 26px;
}

.demo-win i {
	position: relative;
	width: 10px;
	height: 10px;
}

.demo-win i:nth-child(1)::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	height: 1px;
	background: var(--dim);
}

.demo-win i:nth-child(2) {
	border: 1px solid var(--dim);
	border-radius: 1px;
}

.demo-win i:nth-child(3)::before,
.demo-win i:nth-child(3)::after {
	content: "";
	position: absolute;
	left: -2px;
	right: -2px;
	top: 50%;
	height: 1px;
	background: var(--dim);
	transform: rotate(45deg);
}

.demo-win i:nth-child(3)::after {
	transform: rotate(-45deg);
}

.demo-body {
	display: grid;
	grid-template-columns: 200px 1fr 300px;
	height: 520px;
}

.demo-side {
	background: var(--sage);
	padding: 14px 10px;
	color: var(--muted);
	font-size: 12.5px;
	overflow: hidden;
}

.ds-new {
	padding: 6px 8px;
	color: var(--text);
}

.ds-search {
	margin: 8px 0 14px;
	padding: 6px 10px;
	border-radius: 8px;
	background: var(--panel-2);
	color: var(--dim);
}

.ds-folder {
	padding: 6px 8px 2px;
	color: var(--text);
	font-weight: 600;
	font-size: 12px;
}

.ds-item {
	padding: 6px 8px 6px 18px;
	border-radius: 8px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	position: relative;
}

.ds-item.active {
	background: rgb(0 0 0 / 0.06);
	color: var(--text);
}

.ds-dot {
	position: absolute;
	left: 7px;
	top: 50%;
	width: 6px;
	height: 6px;
	margin-top: -3px;
	border-radius: 50%;
	background: var(--dim);
}

.ds-dot.busy {
	background: var(--blue);
	box-shadow: 0 0 0 0 rgb(37 99 235 / 0.6);
	animation: ping 1.4s infinite;
}

@keyframes ping {
	70% {
		box-shadow: 0 0 0 6px rgb(37 99 235 / 0);
	}

	100% {
		box-shadow: 0 0 0 0 rgb(37 99 235 / 0);
	}
}

.demo-main {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 0 22px 16px;
}

.dm-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 0 12px;
	border-bottom: 1px solid var(--border);
}

.dm-title {
	font-weight: 600;
	font-size: 14px;
}

.dm-sub {
	color: var(--dim);
	font-size: 11.5px;
}

.dm-files {
	font-size: 11.5px;
	color: var(--muted);
	border: 1px solid var(--border-2);
	border-radius: 999px;
	padding: 2px 10px;
	transition: opacity 0.4s, transform 0.4s var(--ease);
}

.dm-files.hide {
	opacity: 0;
	transform: scale(0.8);
}

.dm-log {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 10px;
	padding: 14px 0;
	overflow: hidden;
	mask-image: linear-gradient(transparent, #000 18%);
	-webkit-mask-image: linear-gradient(transparent, #000 18%);
}

.dm-log > * {
	animation: rise 0.45s var(--ease) both;
}

/* While the permission card is up, push the conversation above it. */
.dm-log {
	transition: padding-bottom 0.45s var(--ease);
}

.demo-main.asking .dm-log {
	padding-bottom: 160px;
}

@keyframes rise {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
}

.dm-log.fade > * {
	transition: opacity 0.5s;
	opacity: 0;
}

.msg.user {
	align-self: flex-end;
}

.msg.user span {
	display: inline-block;
	background: #f1f2ef;
	border: 1px solid transparent;
	padding: 7px 14px;
	border-radius: 16px 16px 4px 16px;
}

.msg.ai {
	color: #2a2a2d;
	max-width: 92%;
}

.row {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12.5px;
	color: var(--muted);
}

.row b {
	color: var(--text);
	font-weight: 600;
}

.row code {
	background: none;
	border: 0;
	padding: 0;
	color: #3f4249;
	font-size: 12px;
}

.row em {
	font-style: normal;
	margin-left: auto;
	color: var(--dim);
	font-size: 11.5px;
	font-family: var(--mono);
}

.row em ins {
	color: var(--green);
	text-decoration: none;
}

.row em del {
	color: var(--red);
	text-decoration: none;
}

.row.err em {
	color: var(--red);
}

.row em.good {
	color: var(--green);
}

.st {
	width: 14px;
	height: 14px;
	flex: none;
	border-radius: 50%;
	position: relative;
}

.row.run .st {
	border: 2px solid rgb(37 99 235 / 0.25);
	border-top-color: var(--blue);
	animation: spin 0.8s linear infinite;
}

.row.ok .st::after,
.row.err .st::after {
	position: absolute;
	inset: -2px;
	display: grid;
	place-items: center;
	font-size: 12px;
	font-weight: 700;
}

.row.ok .st::after {
	content: "✓";
	color: var(--green);
}

.row.err .st::after {
	content: "✕";
	color: var(--red);
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

.thinking {
	display: flex;
	gap: 4px;
	padding: 4px 0;
}

.thinking i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--dim);
	animation: bounce 1s infinite;
}

.thinking i:nth-child(2) {
	animation-delay: 0.15s;
}

.thinking i:nth-child(3) {
	animation-delay: 0.3s;
}

@keyframes bounce {
	50% {
		transform: translateY(-4px);
		background: var(--blue);
	}
}

.perm {
	position: absolute;
	left: 22px;
	right: 22px;
	bottom: 98px;
	background: #fff;
	border: 1px solid var(--border-2);
	border-radius: 14px;
	padding: 14px 16px;
	box-shadow: 0 18px 40px -12px rgb(0 0 0 / 0.22);
	animation: slideup 0.45s var(--ease);
	z-index: 3;
}

.perm[hidden] {
	display: none;
}

@keyframes slideup {
	from {
		opacity: 0;
		transform: translateY(18px) scale(0.98);
	}
}

.perm-title {
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
}

.perm-icon {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 7px;
	background: #e8eefc;
	color: var(--blue);
	font-size: 12px;
}

.perm-cmd {
	font-family: var(--mono);
	font-size: 12px;
	margin: 10px 0 12px;
	padding: 7px 10px;
	border-radius: 8px;
	background: #f4f5f2;
	border: 1px solid var(--border);
}

.perm-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
}

.perm-actions span {
	padding: 4px 14px;
	border-radius: 999px;
	border: 1px solid var(--border-2);
	font-size: 12px;
	transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}

.perm-actions .primary {
	background: #111;
	color: #fff;
	border-color: transparent;
}

.perm-actions .press {
	transform: scale(0.93);
	background: var(--blue);
	color: #fff;
	box-shadow: 0 0 0 4px rgb(37 99 235 / 0.2);
}

.dm-input {
	border: 1px solid var(--border-2);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
	padding: 10px 12px 8px;
}

.dm-text {
	min-height: 22px;
	color: var(--text);
}

.dm-text .ph {
	display: none;
	color: var(--dim);
	margin-left: 4px;
}

.dm-text [data-typing]:empty ~ .ph {
	display: inline;
}

.caret {
	display: inline-block;
	width: 1.5px;
	height: 15px;
	background: var(--blue);
	vertical-align: -3px;
	margin-left: 1px;
	animation: blink 1s steps(1) infinite;
}

@keyframes blink {
	50% {
		opacity: 0;
	}
}

.dm-tools {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 6px;
}

.pill {
	font-size: 11.5px;
	color: var(--muted);
	padding: 2px 8px;
	border-radius: 7px;
}

.send {
	margin-left: auto;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--panel-2);
	color: var(--dim);
	font-weight: 700;
	transition: background 0.2s, color 0.2s, transform 0.2s;
}

.send.on {
	background: #111;
	color: #fff;
}

.send.press {
	transform: scale(0.85);
}

.demo-panel {
	border-left: 1px solid var(--border);
	background: #fff;
	padding: 12px 0;
	overflow: hidden;
}

.dp-tabs {
	display: flex;
	gap: 18px;
	padding: 0 16px 10px;
	border-bottom: 1px solid var(--border);
	color: var(--dim);
	font-size: 12.5px;
}

.dp-tabs .on {
	color: var(--text);
	box-shadow: 0 9px 0 -7px var(--blue);
}

.dp-file {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin: 12px 12px 8px;
	padding: 8px 10px;
	border-radius: 9px;
	background: var(--panel-2);
	border-left: 2px solid var(--blue);
	transition: opacity 0.4s, transform 0.4s var(--ease);
}

.dp-file small {
	color: var(--dim);
	font-size: 11px;
}

.dp-file .undo {
	margin-left: auto;
	font-size: 11px;
	color: var(--muted);
	border: 1px solid var(--border-2);
	border-radius: 999px;
	padding: 0 8px;
}

.dp-file.hide {
	opacity: 0;
	transform: translateX(12px);
}

.diff {
	font-family: var(--mono);
	font-size: 11px;
	line-height: 1.9;
}

.ln {
	display: flex;
	gap: 10px;
	padding: 0 12px;
	white-space: nowrap;
	transition: opacity 0.35s, transform 0.35s var(--ease), background 0.4s;
}

.ln i {
	font-style: normal;
	color: var(--dim);
	width: 14px;
	text-align: right;
	flex: none;
}

.ln code {
	background: none;
	border: 0;
	padding: 0;
	font-size: 11px;
	color: #24292f;
	white-space: pre;
}

.ln.del {
	background: #ffebe9;
}

.ln.del code {
	color: #a3241b;
}

.ln.add {
	background: #e6f6ea;
}

.ln.add code {
	color: #17692f;
}

.diff.hide .ln {
	opacity: 0;
	transform: translateX(10px);
}



/* Inner pages: a graphite title band with its own contour map, then paper. */

.page-hero {
	padding: 156px 0 92px;
	overflow: hidden;
}

.page-hero h1 {
	font-size: clamp(44px, 7vw, 88px);
	line-height: 1.05;
	letter-spacing: -0.04em;
}

.page-hero .lede {
	color: var(--on-night-2);
	margin: 22px 0 0;
}

.page-hero .cta-row {
	margin-top: 36px;
}

.page-404 {
	min-height: 78vh;
	display: flex;
	align-items: center;
}

.page-hero + .section {
	padding-top: 72px;
}

.dl-card {
	position: relative;
	background: var(--card);
	border: 1px solid var(--rule);
	border-top: 3px solid var(--ink);
	padding: 36px 40px 30px;
}

.dl-head {
	display: flex;
	gap: 20px;
	align-items: center;
	margin-bottom: 24px;
}

.dl-head img {
	border-radius: 14px;
}

.dl-head h2 {
	font-size: 28px;
}

.dl-head p {
	margin: 4px 0 0;
	color: var(--ink-2);
	font-family: var(--mono);
	font-size: 13px;
}

.tag {
	display: inline-block;
	margin-left: 8px;
	padding: 1px 8px;
	border-radius: 999px;
	background: var(--dot);
	color: var(--ink);
	font: 500 11px/1.6 var(--mono);
	letter-spacing: 0.02em;
	vertical-align: 5px;
}

.notes-list {
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
	color: var(--ink-2);
}

.notes-list li {
	position: relative;
	padding-left: 18px;
}

.notes-list li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.72em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--dot);
}

.mirrors {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 14px;
	font-size: 14px;
	color: var(--ink-2);
}

.specs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 32px;
	margin: 32px 0 0;
}

.specs > div {
	padding: 13px 0;
	border-top: 1px solid var(--rule);
}

.specs .wide {
	grid-column: 1 / -1;
}

.specs dt {
	font-family: var(--mono);
	font-size: 11.5px;
	letter-spacing: 0.06em;
	color: var(--ink-3);
	margin-bottom: 2px;
}

.specs dd {
	margin: 0;
	font-size: 15px;
}

.specs code {
	background: none;
	padding: 0;
}

.specs .hash {
	display: flex;
	gap: 14px;
	align-items: center;
}

.panel {
	margin-top: 80px;
	padding-top: 20px;
	border-top: 1.5px solid var(--ink);
}

.panel h2 {
	font-size: 30px;
	letter-spacing: -0.03em;
	margin-bottom: 20px;
}

.panel > p {
	color: var(--ink-2);
}

.panel strong {
	color: var(--ink);
}

.fine {
	font-size: 14px;
	color: var(--ink-2);
}

.steps {
	list-style: none;
	counter-reset: step;
	margin: 0;
	padding: 0;
}

.steps li {
	counter-increment: step;
	position: relative;
	padding: 4px 0 28px 58px;
}

.steps li::before {
	content: counter(step, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: 2px;
	display: grid;
	place-items: center;
	width: 36px;
	height: 28px;
	border-radius: 4px;
	background: var(--ink);
	color: var(--paper);
	font: 500 12px/1 var(--mono);
}

.steps li::after {
	content: "";
	position: absolute;
	left: 18px;
	top: 38px;
	bottom: 6px;
	border-left: 1px dashed var(--rule-2);
}

.steps li:last-child::after {
	display: none;
}

.steps h3 {
	font-size: 19px;
	margin-bottom: 6px;
}

.steps p {
	color: var(--ink-2);
	margin: 0;
}

pre.code {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 18px 0;
	padding: 16px 18px;
	border-radius: 8px;
	background: var(--night);
	color: var(--on-night);
	overflow-x: auto;
}

pre.code code {
	background: none;
	padding: 0;
	color: inherit;
	font-size: 14px;
	word-break: break-all;
	white-space: pre-wrap;
}

pre.code .copy {
	color: var(--on-night);
}

pre.code .copy.done {
	color: #7ad49a;
}

/* A drawing of the SmartScreen dialog, to show where to click. */
.smartscreen {
	max-width: 440px;
	margin: 18px 0 4px;
	padding: 22px 24px 20px;
	background: #1d5fa8;
	color: #fff;
	border-radius: 4px;
	font-size: 14px;
	box-shadow: 0 20px 40px -24px rgb(0 0 0 / 0.5);
}

.ss-title {
	font-size: 21px;
	margin-bottom: 10px;
}

.ss-body {
	opacity: 0.85;
	font-size: 13px;
}

.ss-link {
	display: inline-block;
	margin: 12px 0 18px;
	text-decoration: underline;
	position: relative;
}

.ss-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
}

.ss-btn {
	padding: 6px 18px;
	border: 1px solid rgb(255 255 255 / 0.8);
	font-size: 13px;
}

.ss-primary {
	position: relative;
	background: #fff;
	color: #1d5fa8;
}

.ss-link::after,
.ss-primary::after {
	content: "";
	position: absolute;
	right: -16px;
	top: 50%;
	width: 10px;
	height: 10px;
	margin-top: -5px;
	border-radius: 50%;
	background: var(--dot);
	box-shadow: 0 0 0 3px rgb(122 167 255 / 0.35);
}

.ss-primary::after {
	right: auto;
	left: -18px;
}

.table-wrap {
	overflow-x: auto;
	margin: 18px 0;
}

.table-wrap table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.table-wrap th {
	text-align: left;
	font-family: var(--mono);
	font-size: 11.5px;
	font-weight: 500;
	letter-spacing: 0.06em;
	color: var(--ink-3);
	padding: 10px 16px 10px 0;
	border-bottom: 1px solid var(--ink);
	white-space: nowrap;
}

.table-wrap td {
	padding: 12px 16px 12px 0;
	border-bottom: 1px solid var(--rule);
	vertical-align: top;
}

.table-wrap td.ask {
	color: var(--dot-ink);
	font-weight: 600;
}

.table-wrap td.no {
	color: var(--ink-3);
}

.releases tr.notes td {
	padding-top: 0;
	color: var(--ink-2);
	font-size: 14px;
}

.releases tr.notes ul {
	margin: 0;
	padding-left: 18px;
}

.releases td code {
	background: none;
	padding: 0;
}

/* Guide */

.guide-layout {
	display: grid;
	grid-template-columns: 200px minmax(0, 1fr);
	gap: 72px;
	align-items: start;
}

.toc {
	position: sticky;
	top: 96px;
	display: grid;
	gap: 2px;
	padding-top: 18px;
	border-top: 1.5px solid var(--ink);
}

.toc a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 0;
	color: var(--ink-2);
	text-decoration: none;
	font-size: 15px;
	transition: color 0.2s;
}

.toc a span {
	display: inline-grid;
	place-items: center;
	min-width: 30px;
	height: 22px;
	border: 1px solid var(--rule-2);
	border-radius: 3px;
	font: 500 11px/1 var(--mono);
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

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

.toc a.active {
	color: var(--ink);
	font-weight: 600;
}

.toc a.active span {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--paper);
}

.guide-step {
	padding: 20px 0 64px;
	border-top: 1.5px solid var(--ink);
}

.guide-step + .guide-step {
	margin-top: 8px;
}

.guide-step .num {
	font-family: var(--mono);
	font-size: 12px;
	letter-spacing: 0.06em;
	color: var(--ink-2);
	margin-bottom: 10px;
}

.guide-step h2 {
	font-size: clamp(28px, 3.4vw, 40px);
	letter-spacing: -0.035em;
	margin-bottom: 18px;
}

.guide-step > p {
	color: var(--ink-2);
}

.guide-step strong {
	color: var(--ink);
}

.frame {
	margin: 24px 0;
	border: 1px solid var(--rule);
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

.ticks {
	list-style: none;
	padding: 0;
	margin: 0 0 20px;
	color: var(--ink-2);
}

.ticks li {
	position: relative;
	padding: 6px 0 6px 22px;
}

.ticks li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 1.05em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--dot);
}

.keys {
	margin: 0 0 24px;
}

.keys > div {
	display: grid;
	grid-template-columns: 200px minmax(0, 1fr);
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--rule);
}

.keys > div:first-child {
	border-top: 1px solid var(--rule);
}

.keys dd {
	margin: 0;
	color: var(--ink-2);
}

/* Footer: the download again, then links, on a faint contour map. */

.site-footer {
	padding: 96px 0 30px;
	overflow: hidden;
}

.footer-cta {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	padding-bottom: 56px;
	--rc: var(--night-rule);
}

.footer-cta .kicker {
	margin-bottom: 14px;
}

.footer-title {
	margin: 0;
	font-family: var(--head);
	font-weight: 700;
	font-size: clamp(34px, 5vw, 64px);
	line-height: 1.05;
	letter-spacing: -0.04em;
}

.footer-row {
	display: flex;
	justify-content: space-between;
	gap: 48px;
	padding-top: 48px;
	padding-bottom: 56px;
}

.footer-brand p {
	margin: 14px 0 0;
	color: var(--on-night-2);
	font-size: 14.5px;
	max-width: 26em;
}

.footer-cols {
	display: grid;
	grid-template-columns: repeat(3, auto);
	gap: 0 72px;
}

.footer-cols h4 {
	font-family: var(--mono);
	font-weight: 500;
	font-size: 11.5px;
	letter-spacing: 0.08em;
	color: var(--on-night-3);
	margin-bottom: 14px;
}

.footer-cols a {
	display: block;
	padding: 4px 0;
	font-size: 14.5px;
	text-decoration: none;
	color: var(--on-night-2) !important;
}

.footer-cols a:hover {
	color: var(--on-night) !important;
}

.footer-base {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 28px;
	padding-top: 20px;
	--rc: var(--night-rule);
	font-family: var(--mono);
	font-size: 12px;
	color: var(--on-night-3);
}

.footer-base span:last-child {
	margin-left: auto;
}

/* A map scale bar. */
.scale {
	display: inline-flex;
}

.scale i {
	width: 26px;
	height: 6px;
	border: 1px solid var(--on-night-3);
}

.scale i + i {
	border-left: 0;
}

.scale i:nth-child(odd) {
	background: var(--on-night-3);
}

/* Responsive */

@media (max-width: 1080px) {
	.marker-card {
		left: auto;
		right: 0;
	}

	.more {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.demo-body {
		grid-template-columns: 180px minmax(0, 1fr);
	}

	.demo-panel {
		display: none;
	}
}

@media (max-width: 900px) {
	:root {
		--gut: 24px;
	}

	.nav {
		display: none;
	}

	.menu {
		display: block;
		margin-left: -24px;
	}

	.header-cta {
		margin-left: auto;
	}

	.hero-grid {
		grid-template-columns: 1fr;
	}

	.marker,
	.mapframe {
		display: none;
	}

	.grid6 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.legend3 {
		grid-template-columns: 1fr;
	}

	.legend3 > div {
		padding: 26px 0 28px;
	}

	.legend3 > div + div {
		border-left: 0;
		border-top: 1px solid var(--rule);
	}

	.faq-layout,
	.guide-layout {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.faq-layout .section-head {
		position: static;
	}

	.toc {
		position: static;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		margin-bottom: 40px;
	}

	.footer-row {
		flex-direction: column;
	}
}

@media (max-width: 640px) {
	:root {
		--gut: 16px;
	}

	body {
		font-size: 15.5px;
	}

	.lede {
		font-size: 16.5px;
	}

	.hero {
		padding-top: 116px;
	}

	.hero .cta-row .btn {
		flex: 1 1 100%;
	}

	.hero-demo {
		margin-top: 44px;
		margin-bottom: -200px;
	}

	.demo-body {
		grid-template-columns: minmax(0, 1fr);
		height: 440px;
	}

	.demo-side {
		display: none;
	}

	.demo-main {
		padding: 0 14px 12px;
	}

	.perm {
		left: 14px;
		right: 14px;
	}

	.providers {
		padding-top: 236px;
	}

	.providers-row {
		flex-direction: column;
		gap: 12px;
	}

	.providers ul {
		gap: 6px 18px;
	}

	.providers li + li::before,
	.hero-meta > * + *::before {
		display: none;
	}

	.section {
		padding-top: 80px;
	}

	.section-head {
		grid-template-columns: 1fr;
	}

	.head-link {
		grid-column: 1;
		grid-row: auto;
		margin-top: 14px;
	}

	.grid6 {
		grid-template-columns: 1fr;
	}

	.cell {
		padding: 24px 20px;
	}

	.more {
		grid-template-columns: 1fr;
	}

	.modes-note {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.faq summary {
		font-size: 16.5px;
	}

	.faq-body {
		padding: 0 0 22px 40px;
	}

	.page-hero {
		padding: 120px 0 64px;
	}

	.dl-card {
		padding: 26px 20px;
	}

	.specs {
		grid-template-columns: 1fr;
	}

	.specs .hash {
		flex-direction: column;
		align-items: flex-start;
	}

	.toc {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.keys > div {
		grid-template-columns: 1fr;
		gap: 4px;
	}

	.footer-cta {
		flex-direction: column;
		align-items: flex-start;
	}

	.footer-cols {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0 20px;
	}

	.footer-base span:last-child {
		margin-left: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}

	.js [data-reveal] {
		opacity: 1;
		translate: 0 0;
	}
}

/* Two graphite bands in a row (the 404 page): keep a seam between them. */
main:has(> .page-404:last-child) + .site-footer {
	border-top: 1px solid var(--night-rule);
}

/* When the content reaches the gutters, pull the map frame out to the edge and drop the side numbers. */
@media (max-width: 1320px) {
	.mapframe {
		inset: 88px 12px 0;
	}

	.mf-side {
		display: none;
	}
}

/* Demo player: the clip on the left, its chapters on the right. */
.player {
	display: grid;
	grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}

.chapters {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1.5px solid var(--ink);
	max-height: 560px;
	overflow-y: auto;
}

.chapters li {
	border-bottom: 1px solid var(--rule);
}

.chapters button {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 11px 4px;
	border: 0;
	background: none;
	color: var(--ink-2);
	font: inherit;
	font-size: 14.5px;
	text-align: left;
	cursor: pointer;
	transition: color 0.2s, background-color 0.2s;
}

.chapters button:hover {
	color: var(--ink);
	background: var(--card);
}

.chapters button b {
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.chapters button em {
	font-style: normal;
	font-family: var(--mono);
	font-size: 12px;
	color: var(--ink-3);
}

.chapters button .ref {
	color: inherit;
	border-color: var(--rule-2);
}

.chapters button[aria-current="true"] {
	color: var(--ink);
}

.chapters button[aria-current="true"] b {
	font-weight: 700;
}

.chapters button[aria-current="true"] .ref {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--paper);
}

@media (max-width: 900px) {
	.player {
		grid-template-columns: 1fr;
	}

	.chapters {
		max-height: none;
	}
}

/* In the guide's narrower column the chapter list goes under the clip. */
.guide-step .player {
	grid-template-columns: 1fr;
}

.guide-step .chapters {
	max-height: none;
}
