:root {
	--secondary: oklch(0.3276 0.0365 176.0478); /* deep forest */
	--primary: oklch(0.5398 0.1197 158.7148);
	--chart-1: oklch(0.7887 0.1569 164.6213); /* bright leaf */
	--accent: oklch(0.9577 0.0095 119.5792);
	--muted: oklch(0.709 0 0);
	--line: oklch(1 0 0 / 0.1);
	--card: oklch(1 0 0 / 0.04);
	--font-sans: 'Schibsted Grotesk', ui-sans-serif, system-ui, sans-serif;
	--font-mono: 'Fragment Mono', ui-monospace, monospace;
}

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

html {
	scroll-behavior: smooth;
}

body {
	min-height: 100vh;
	background:
		radial-gradient(60rem 40rem at 85% 70vh, oklch(0.5398 0.1197 158.7148 / 0.35), transparent 70%),
		var(--secondary);
	color: var(--accent);
	font-family: var(--font-sans);
	-webkit-font-smoothing: antialiased;
}

.bar,
.hero,
.benchmarks {
	width: 100%;
	max-width: 1360px;
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
}

.bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 80px;
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--muted);
}

footer.bar {
	border-top: 1px solid var(--line);
}

.wordmark {
	font-family: var(--font-sans);
	font-size: 17px;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: #fff;
	text-decoration: none;
}

/* Hero */

.hero {
	display: flex;
	flex-direction: column;
	min-height: calc(100svh - 80px);
	padding-bottom: 40px;
}

.hero h1 {
	margin: auto 0;
	padding: 48px 0 6vh;
}

h1 {
	max-width: 14ch;
	font-size: clamp(44px, 8.5vw, 132px);
	font-weight: 600;
	line-height: 0.98;
	letter-spacing: -0.045em;
	color: #fff;
	text-wrap: balance;
}

h1 em,
h2 em {
	font-style: normal;
	color: var(--chart-1);
}

.scroll-hint {
	align-self: flex-start;
	display: inline-flex;
	gap: 10px;
	font-family: var(--font-mono);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--muted);
	text-decoration: none;
	transition: color 0.2s;
}

.scroll-hint span {
	animation: nudge 2.4s ease-in-out infinite;
}

.scroll-hint:hover {
	color: var(--chart-1);
}

/* Benchmarks */

.benchmarks {
	padding-top: 96px;
	padding-bottom: 128px;
}

.intro {
	max-width: 640px;
	margin-bottom: 72px;
}

.label {
	margin-bottom: 20px;
	font-family: var(--font-mono);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--chart-1);
}

h2 {
	font-size: clamp(36px, 5vw, 64px);
	font-weight: 600;
	line-height: 1.02;
	letter-spacing: -0.04em;
	color: #fff;
}

.lede {
	margin-top: 20px;
	font-size: 18px;
	line-height: 1.5;
	color: var(--muted);
}

.discipline {
	display: grid;
	gap: 24px;
	padding: 40px 0;
	border-top: 1px solid var(--line);
}

.discipline-head {
	display: flex;
	align-items: baseline;
	gap: 16px;
}

.index {
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--chart-1);
}

h3 {
	font-size: 24px;
	font-weight: 600;
	letter-spacing: -0.03em;
	color: #fff;
}

.cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 12px;
	list-style: none;
}

.card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	height: 100%;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--card);
	color: inherit;
	text-decoration: none;
	transition:
		border-color 0.2s,
		background 0.2s,
		transform 0.2s;
}

.card:hover {
	border-color: oklch(0.7887 0.1569 164.6213 / 0.6);
	background: oklch(0.7887 0.1569 164.6213 / 0.06);
	transform: translateY(-2px);
}

.name {
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: #fff;
}

.card p {
	flex: 1;
	font-size: 15px;
	line-height: 1.5;
	color: oklch(0.85 0.01 160);
}

.link {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--muted);
	transition: color 0.2s;
}

.card:hover .link {
	color: var(--chart-1);
}

@keyframes nudge {
	50% {
		transform: translateY(4px);
	}
}

@media (min-width: 768px) {
	.bar,
	.hero,
	.benchmarks {
		padding-left: 48px;
		padding-right: 48px;
	}

	.discipline {
		grid-template-columns: 280px 1fr;
		gap: 48px;
	}

	.discipline-head {
		flex-direction: column;
		gap: 8px;
	}
}

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

	.scroll-hint span,
	.card {
		animation: none;
		transition: none;
	}
}
