@font-face {
	font-family: Switzer;
	src: url(assets/switzer.woff2) format('woff2');
	font-weight: 400;
	font-display: swap;
}

:root {
	--bg: #d1d5db;
	--line: rgb(0 0 0 / 0.12);
	--grey: #7e8083;
	--gutter: 40px;
	--ease: 0.2s ease;
}

* {
	box-sizing: border-box;
	margin: 0;
}

body {
	min-height: 100vh;
	padding: var(--gutter);
	background: var(--bg) url(assets/pattern.svg) 0 0 / 63px repeat;
	color: #000;
	font: 400 24px/1.5 Switzer, sans-serif;
	letter-spacing: -0.02em;
	-webkit-font-smoothing: antialiased;
}

/* separators are drawn as inset shadows so they never add to the layout box */
main {
	position: relative;
	background: var(--bg);
	border-radius: 8px;
	overflow: clip;
}

/* the outline and the column rule overlay the rows, so a row's hover tint can't cover them */
main::after,
.portfolio::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
}

main::after {
	border: 1px solid var(--line);
}

header {
	display: flex;
	flex-direction: column;
	gap: 180px;
	padding: var(--gutter);
	box-shadow: inset 0 -1px 0 var(--line);
}

h1 {
	font-size: 60px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: -0.04em;
	text-wrap: balance;
}

.columns {
	display: flex;
}

.columns section {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
}

.portfolio {
	position: relative;
}

.portfolio::after {
	border-right: 1px solid var(--line);
}

.intro {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: var(--gutter);
	box-shadow: inset 0 -1px 0 var(--line);
	text-wrap: balance;
}

.label {
	color: var(--grey);
}

.portfolio .intro p:last-child {
	max-width: 90%;
}

.row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 72px;
	padding: 0 36px 0 var(--gutter);
	box-shadow: inset 0 -1px 0 var(--line);
	color: inherit;
	text-decoration: none;
	transition: background var(--ease), color var(--ease);
}

/* recoloured rather than faded with opacity, so the row's separator stays at full strength */
.partners .row {
	color: var(--grey);
}

.partners a.row:hover {
	color: #000;
}

.portfolio .row:last-child {
	box-shadow: none;
}

.row img {
	opacity: 0.4;
	transition: opacity var(--ease);
}

/* the arrow only shows on rows that link somewhere */
a.row::after {
	content: '';
	width: 20px;
	height: 20px;
	background: url(assets/arrow.svg) center / contain no-repeat;
	opacity: 0;
	translate: -8px 8px;
	transition: opacity var(--ease), translate var(--ease);
}

a.row:hover {
	background: rgb(0 0 0 / 0.04);
}

a.row:hover img {
	opacity: 1;
}

a.row:hover::after {
	opacity: 1;
	translate: 0 0;
}

.fill {
	flex: 1;
	background: url(assets/pattern.svg) 0 0 / 63px repeat;
}

footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 120px var(--gutter) var(--gutter);
	box-shadow: inset 0 1px 0 var(--line);
	color: var(--grey);
	font-size: 20px;
}

.wordmark {
	display: block;
	height: auto;
}

@media (max-width: 1199px) {
	h1 {
		font-size: 48px;
		letter-spacing: -0.03em;
	}

	.portfolio .intro p:last-child {
		max-width: none;
	}
}

@media (max-width: 809px) {
	:root {
		--gutter: 20px;
	}

	h1 {
		font-size: 36px;
		letter-spacing: -0.04em;
	}

	/* narrow enough that the headline reads better reflowed than hard-broken */
	h1 br {
		display: none;
	}

	header {
		gap: 200px;
		padding: 20px 20px 24px;
	}

	.columns {
		flex-direction: column;
	}

	.portfolio::after {
		border-right: 0;
	}

	.intro {
		padding: 48px 20px 20px;
	}

	.row {
		padding: 0 20px;
	}

	.portfolio .row:last-child {
		box-shadow: inset 0 -1px 0 var(--line);
	}

	.fill {
		display: none;
	}
}
