:root {
	color-scheme: light dark;
	--bg: #ffffff;
	--fg: #0a0a0a;
	--muted: #525252;
	--line: #d4d4d4;
	--soft: #f4f4f4;
	--frame: #0a0a0a;
	--frame-edge: #0a0a0a;
	--font:
		ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	--gutter: clamp(20px, 5vw, 56px);
	--max: 1120px;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme='light']) {
		--bg: #0a0a0a;
		--fg: #f5f5f5;
		--muted: #a8a8a8;
		--line: #333333;
		--soft: #161616;
		--frame: #2b2b2b;
		--frame-edge: #4a4a4a;
	}
}

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: inherit;
	text-underline-offset: 0.2em;
}

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

.skip {
	position: absolute;
	left: var(--gutter);
	top: -100px;
	background: var(--fg);
	color: var(--bg);
	padding: 0.6rem 1rem;
	z-index: 10;
}
.skip:focus {
	top: 12px;
}

.wrap {
	width: 100%;
	max-width: calc(var(--max) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* Header */
.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-block: 8px;
}

.wordmark {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-weight: 800;
	font-size: 1.25rem;
	letter-spacing: -0.03em;
	text-decoration: none;
}

.lang {
	display: flex;
	border: 2px solid var(--fg);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}
.lang a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 0.9rem;
	text-decoration: none;
	min-width: 44px;
	text-align: center;
}
.lang a[aria-current='page'] {
	background: var(--fg);
	color: var(--bg);
}
.lang a:not([aria-current]):hover {
	background: var(--soft);
}

/* Type */
h1,
h2,
h3 {
	margin: 0;
	line-height: 1.04;
	letter-spacing: -0.035em;
	font-weight: 800;
	text-wrap: balance;
}
h1 {
	font-size: clamp(2.75rem, 9.5vw, 5.75rem);
}
h2 {
	font-size: clamp(2rem, 5.5vw, 3.25rem);
}
h3 {
	font-size: 1.375rem;
	letter-spacing: -0.02em;
	line-height: 1.2;
}
p {
	margin: 0;
	text-wrap: pretty;
}
.lead {
	font-size: clamp(1.1875rem, 2.4vw, 1.4375rem);
	line-height: 1.5;
	color: var(--muted);
	max-width: 32ch;
}
.eyebrow {
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 0 0 1rem;
}

/* Hero */
.hero {
	display: grid;
	gap: 56px;
	padding-block: clamp(32px, 8vw, 96px) clamp(64px, 10vw, 128px);
	align-items: center;
}
.status {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	border: 2px solid var(--fg);
	padding: 0.4rem 0.9rem;
	font-size: 0.875rem;
	font-weight: 700;
	margin: 0 0 2rem;
}
.status::before {
	content: '';
	width: 0.6rem;
	height: 0.6rem;
	border-radius: 50%;
	background: var(--fg);
}
.hero .lead {
	margin-top: 1.75rem;
}
.hero-phone {
	justify-self: center;
}

@media (min-width: 880px) {
	.hero {
		grid-template-columns: 1.25fr 1fr;
		gap: 80px;
	}
	.hero-phone {
		justify-self: end;
		width: min(100%, 340px);
	}
}

/* Phone frame, drawn in CSS */
.phone {
	margin: 0;
	width: min(100%, 290px);
}
.phone .body {
	background: var(--frame);
	border: 1px solid var(--frame-edge);
	border-radius: 44px;
	padding: 11px;
	box-shadow: 0 0 0 1px var(--bg);
}
.phone img {
	border-radius: 34px;
	background: #fff;
	width: 100%;
}
.phone img.cropped {
	aspect-ratio: 780 / 1160;
	object-fit: cover;
	object-position: top;
}
.phone figcaption {
	margin-top: 1rem;
	font-size: 0.9375rem;
	color: var(--muted);
	text-align: center;
}

/* Sections */
section {
	border-top: 2px solid var(--fg);
	padding-block: clamp(56px, 9vw, 112px);
}
.section-head {
	margin-bottom: clamp(36px, 6vw, 64px);
	max-width: 22ch;
}

.feature {
	display: grid;
	gap: 40px;
	align-items: center;
}
.feature + .feature {
	margin-top: clamp(56px, 9vw, 104px);
}
.feature .phone {
	justify-self: center;
}
.feature .text {
	max-width: 36ch;
}
.feature .text p {
	color: var(--muted);
	margin-top: 1rem;
	font-size: 1.1875rem;
}
.feature .tag {
	display: inline-block;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin-bottom: 1rem;
}
.feature h3 {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	letter-spacing: -0.03em;
	line-height: 1.08;
}

@media (min-width: 880px) {
	.feature {
		grid-template-columns: 1fr 1fr;
		gap: 80px;
	}
	.feature .phone {
		justify-self: start;
		grid-column: 1;
		grid-row: 1;
	}
	.feature .text {
		grid-column: 2;
		grid-row: 1;
	}
	.feature.flip .phone {
		justify-self: end;
		grid-column: 2;
	}
	.feature.flip .text {
		grid-column: 1;
		justify-self: end;
	}
}

/* Steps */
.steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	counter-reset: step;
}
.steps li {
	counter-increment: step;
	display: grid;
	grid-template-columns: 3.25rem 1fr;
	gap: 0 1rem;
	padding-block: 28px;
	border-top: 1px solid var(--line);
}
.steps li:first-child {
	border-top: 0;
	padding-top: 0;
}
.steps li::before {
	content: counter(step, decimal-leading-zero);
	font-size: 2.25rem;
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}
.steps p {
	color: var(--muted);
	margin-top: 0.4rem;
	max-width: 46ch;
}
.steps-note {
	margin-top: 2rem;
	color: var(--muted);
	max-width: 46ch;
}

@media (min-width: 880px) {
	.path {
		display: grid;
		grid-template-columns: 1fr 1.4fr;
		gap: 80px;
	}
	.path .section-head {
		margin-bottom: 0;
	}
	.steps li {
		grid-template-columns: 5rem 1fr;
		padding-block: 36px;
	}
	.steps li::before {
		font-size: 3rem;
	}
}

/* Principles */
.principles {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}
.principles li {
	padding-block: 28px;
	border-top: 1px solid var(--line);
}
.principles li:first-child {
	border-top: 0;
	padding-top: 0;
}
.principles p {
	color: var(--muted);
	margin-top: 0.5rem;
	max-width: 40ch;
}

@media (min-width: 720px) {
	.principles {
		grid-template-columns: 1fr 1fr;
		column-gap: 64px;
	}
	.principles li:nth-child(2) {
		border-top: 0;
		padding-top: 0;
	}
}

/* Footer */
.site-footer {
	border-top: 2px solid var(--fg);
	padding-block: 40px 56px;
	display: grid;
	gap: 0.75rem;
	color: var(--muted);
	font-size: 0.9375rem;
}
.site-footer p {
	max-width: 60ch;
}

/* 404 */
.notfound {
	min-height: 60vh;
	display: grid;
	align-content: center;
	gap: 1.5rem;
	padding-block: 64px;
}
.button {
	justify-self: start;
	display: inline-block;
	border: 2px solid var(--fg);
	padding: 0.75rem 1.25rem;
	font-weight: 700;
	text-decoration: none;
}
.button:hover {
	background: var(--fg);
	color: var(--bg);
}

@media (prefers-reduced-motion: no-preference) {
	.lang a,
	.button {
		transition:
			background-color 0.15s ease,
			color 0.15s ease;
	}
}
