:root {
	--bg: #ebebdf;
	--text: #0d0d0d;
	--muted: #9a9896;
	--rule: #c8c4be;
	--accent: #191265;
}

* {
	box-sizing: border-box;
}

html, body {
	height: 100%;
}

body {
	font-family: "Fjalla One", sans-serif;
	background-color: var(--bg);
	color: var(--text);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* ── Layout ─────────────────────────────────── */

.layout {
	width: 100%;
	flex: 1;
	display: grid;
	grid-template-columns: 200px 1fr;
}

/* ── Timeline sidebar ────────────────────────── */

.timeline {
	border-right: 1px solid var(--rule);
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0;
}

.site-header {
	text-align: center;
	margin-top: 2rem;
}

.site-title {
	font-size: 1rem;
	color: #0d0d0d;
	letter-spacing: 0.05em;
}

.timeline__list {
	list-style: none;
	margin: auto 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	width: 100%;
}

.timeline__item {
	font-size: 2rem;
	letter-spacing: 0.1em;
	color: var(--muted);
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 300ms ease;
}

.timeline__item.is-active {
	color: var(--accent);
}

/* ── Projects ────────────────────────────────── */

.projects {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0;
	padding: 64px 80px;
	overflow: visible;
}

/* ── Body copy ───────────────────────────────── */

.body-copy {
	position: absolute;
	top: 2rem;
	right: 80px;
	font-size: 1rem;
	color: var(--text);
	line-height: 1.5;
	max-width: 400px;
	text-align: right;
}

/* ── Project row ─────────────────────────────── */

.project-row {
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.project-num {
	display: none;
	font-size: 1rem;
	letter-spacing: 0.1em;
	color: var(--muted);
	transition: color 300ms ease;
}

.project-title {
	font-size: 3rem;
	letter-spacing: -0.01em;
	text-align: center;
	color: var(--text);
	text-decoration: none;
	display: inline-block;
	transform-origin: center center;
	transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-row:hover .project-title {
	transform: scale(2);
}

/* ── Footer ──────────────────────────────────── */

.footer {
	background-color: var(--accent);
	padding: 1.25rem 80px;
	display: flex;
	justify-content: flex-start;
}

.footer__copy {
	font-size: 0.75rem;
	color: var(--bg);
	letter-spacing: 0.05em;
}

/* ── Responsive ─────────────────────────────── */

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

	.timeline {
		border-right: none;
		border-bottom: 1px solid var(--rule);
		justify-content: center;
		padding: 1.25rem 0;
	}

	.site-header {
		margin-top: 0;
	}

	.timeline__list {
		display: none;
	}

	.projects {
		padding: 48px 32px;
		gap: 2rem;
		justify-content: center;
		align-items: center;
		min-height: 100vh;
	}

	.body-copy {
		position: static;
		max-width: 100%;
		text-align: center;
		font-size: 0.85rem;
	}

	.project-row {
		flex-direction: column;
		align-items: flex-start;
		justify-content: center;
		gap: 0.25rem;
	}

	.project-num {
		display: block;
	}

	.project-row:hover .project-num {
		color: var(--accent);
	}

	.project-title {
		font-size: 1.5rem;
	}
}
