:root {
	--ink: #171713;
	--paper: #f1eee4;
	--paper-deep: #e4dfd1;
	--red: #c83b2d;
	--red-dark: #8f241b;
	--line: rgba(23, 23, 19, 0.2);
	--muted: #5d5b52;
	--max-width: 1180px;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--ink);
	background: var(--paper);
	font-synthesis: none;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-width: 320px;
	background:
		linear-gradient(rgba(23, 23, 19, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(23, 23, 19, 0.035) 1px, transparent 1px),
		var(--paper);
	background-size: 32px 32px;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(circle at 82% 14%, rgba(200, 59, 45, 0.09), transparent 24rem);
}

a {
	color: inherit;
}

.skip-link {
	position: fixed;
	left: 1rem;
	top: 1rem;
	z-index: 100;
	padding: 0.75rem 1rem;
	background: var(--ink);
	color: var(--paper);
	transform: translateY(-180%);
}

.skip-link:focus {
	transform: translateY(0);
}

.site-header,
main,
.site-footer {
	width: min(calc(100% - 2rem), var(--max-width));
	margin-inline: auto;
}

.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	padding-block: 1.4rem;
	border-bottom: 1px solid var(--line);
}

.wordmark {
	display: inline-flex;
	align-items: center;
	gap: 0.8rem;
	font-weight: 760;
	text-decoration: none;
	letter-spacing: -0.02em;
}

.wordmark-mark {
	display: grid;
	place-items: center;
	width: 2.6rem;
	aspect-ratio: 1;
	border: 2px solid var(--ink);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.78rem;
	letter-spacing: -0.08em;
	transform: rotate(-2deg);
}

.header-link {
	font-size: 0.85rem;
	font-weight: 720;
	text-underline-offset: 0.25rem;
}

.hero {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(17rem, 0.8fr);
	gap: clamp(3rem, 8vw, 8rem);
	align-items: end;
	min-height: 74vh;
	padding-block: clamp(5rem, 11vw, 9rem);
}

.eyebrow,
.proof-label,
.service-number {
	margin: 0 0 1.4rem;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.76rem;
	font-weight: 720;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.eyebrow::before {
	content: "[";
	color: var(--red);
}

.eyebrow::after {
	content: "]";
	color: var(--red);
}

h1,
h2,
h3,
p {
	text-wrap: pretty;
}

h1,
h2 {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 500;
	letter-spacing: -0.055em;
}

h1 {
	max-width: 13ch;
	font-size: clamp(4rem, 9.5vw, 8.2rem);
	line-height: 0.86;
}

h2 {
	font-size: clamp(2.5rem, 5vw, 5rem);
	line-height: 0.94;
}

h3 {
	margin: 0;
	font-size: 1.25rem;
	letter-spacing: -0.03em;
}

.lede {
	max-width: 59ch;
	margin: 2.4rem 0 0;
	font-size: clamp(1.08rem, 1.8vw, 1.35rem);
	line-height: 1.6;
	color: var(--muted);
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin-top: 2.4rem;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3.2rem;
	padding: 0.85rem 1.15rem;
	border: 1px solid var(--ink);
	font-size: 0.9rem;
	font-weight: 760;
	text-decoration: none;
	transition: transform 150ms ease, background-color 150ms ease, color 150ms ease;
}

.button:hover {
	transform: translateY(-2px);
}

.button:focus-visible,
.header-link:focus-visible,
.wordmark:focus-visible {
	outline: 3px solid var(--red);
	outline-offset: 4px;
}

.button-primary {
	background: var(--ink);
	color: var(--paper);
}

.button-primary:hover {
	background: var(--red-dark);
}

.button-secondary {
	background: rgba(241, 238, 228, 0.7);
}

.proof-card {
	position: relative;
	padding: 1.8rem;
	border: 1px solid var(--ink);
	background: rgba(241, 238, 228, 0.82);
	box-shadow: 10px 10px 0 var(--ink);
}

.proof-card::before {
	content: "REVIEWED";
	position: absolute;
	right: -1rem;
	top: -1.2rem;
	padding: 0.35rem 0.55rem;
	border: 2px solid var(--red);
	color: var(--red);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	transform: rotate(5deg);
}

.proof-label {
	color: var(--muted);
}

.proof-statement {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.7rem, 3vw, 2.45rem);
	line-height: 1.08;
}

.proof-correction {
	margin: 2rem 0 0;
	padding-top: 1.2rem;
	border-top: 2px solid var(--red);
	font-weight: 760;
	line-height: 1.5;
	color: var(--red-dark);
}

.work,
.fit,
.cta {
	border-top: 1px solid var(--line);
}

.work {
	padding-block: clamp(5rem, 10vw, 9rem);
}

.section-heading {
	display: grid;
	grid-template-columns: 0.65fr 1.35fr;
	gap: 2rem;
	align-items: start;
}

.section-heading h2 {
	max-width: 12ch;
}

.service-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	margin-top: clamp(4rem, 8vw, 7rem);
	border: 1px solid var(--ink);
	background: var(--ink);
}

.service-card {
	min-height: 22rem;
	padding: 1.6rem;
	background: var(--paper);
}

.service-number {
	color: var(--red);
}

.service-card p:last-child {
	margin: 6rem 0 0;
	line-height: 1.62;
	color: var(--muted);
}

.fit {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(3rem, 8vw, 8rem);
	align-items: end;
	padding-block: clamp(5rem, 10vw, 9rem);
}

.fit h2 {
	max-width: 11ch;
}

.fit > p {
	margin: 0;
	font-size: clamp(1.2rem, 2.2vw, 1.65rem);
	line-height: 1.55;
}

.cta {
	padding-block: clamp(5rem, 10vw, 9rem);
	text-align: center;
}

.cta h2 {
	margin-inline: auto;
}

.cta > p:not(.eyebrow) {
	max-width: 58ch;
	margin: 1.6rem auto 2rem;
	font-size: 1.1rem;
	line-height: 1.65;
	color: var(--muted);
}

.site-footer {
	display: flex;
	justify-content: space-between;
	gap: 2rem;
	padding-block: 1.5rem 2.5rem;
	border-top: 1px solid var(--line);
	font-size: 0.78rem;
	color: var(--muted);
}

.site-footer p {
	margin: 0;
}

@media (max-width: 820px) {
	.hero,
	.section-heading,
	.fit {
		grid-template-columns: 1fr;
	}

	.hero {
		min-height: auto;
		padding-top: 5rem;
	}

	.proof-card {
		max-width: 32rem;
	}

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

	.service-card {
		min-height: 0;
	}

	.service-card p:last-child {
		margin-top: 3rem;
	}
}

@media (max-width: 560px) {
	.site-header {
		align-items: flex-start;
	}

	.wordmark > span:last-child {
		max-width: 9rem;
	}

	.header-link {
		max-width: 7rem;
		text-align: right;
	}

	h1 {
		font-size: clamp(3.6rem, 19vw, 5.3rem);
	}

	.hero-actions,
	.button {
		width: 100%;
	}

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

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

	.button {
		transition: none;
	}
}
