:root {
	--bg: #faf9f6;
	--surface: #ffffff;
	--text: #1c1c1a;
	--muted: #5f5e59;
	--line: #e4e2dc;
	--accent: #1f5f4a;
	--accent-soft: #e5efe9;
	--serif: "Newsreader", Georgia, serif;
	--sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #141513;
		--surface: #1c1d1a;
		--text: #ecebe6;
		--muted: #a3a29b;
		--line: #2e2f2b;
		--accent: #7cc3a5;
		--accent-soft: #1f2d27;
	}
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 17px/1.65 var(--sans);
	-webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 3px; }

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

.container {
	max-width: 960px;
	margin: 0 auto;
	padding-inline: 24px;
}

/* Nav */

.site-nav {
	position: sticky;
	top: 0;
	z-index: 10;
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
}

.nav-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: 56px;
}

.nav-name {
	font-weight: 600;
	color: var(--text);
	text-decoration: none;
	white-space: nowrap;
}

.site-nav nav { display: flex; gap: 20px; }

.site-nav nav a {
	color: var(--muted);
	text-decoration: none;
	font-size: 15px;
}

.site-nav nav a:hover { color: var(--text); }

/* Hero */

.hero { padding-top: 96px; padding-bottom: 56px; }

.headshot {
	width: 112px;
	height: 112px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 24px;
}

.status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 20px;
	padding: 5px 14px 5px 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	font-size: 14px;
	font-weight: 500;
}

.status .dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #2fb170;
	box-shadow: 0 0 0 3px color-mix(in srgb, #2fb170 25%, transparent);
}

.eyebrow {
	margin: 0 0 16px;
	color: var(--accent);
	font-weight: 500;
	font-size: 14px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

h1, h2, .case h3 {
	font-family: var(--serif);
	font-weight: 500;
	letter-spacing: -0.01em;
	line-height: 1.15;
}

h1 {
	font-size: clamp(34px, 5.5vw, 54px);
	margin: 0 0 24px;
	max-width: 18em;
}

.lede {
	font-size: 19px;
	color: var(--muted);
	max-width: 38em;
	margin: 0 0 32px;
}

.cta { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
	display: inline-block;
	padding: 10px 18px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	color: var(--text);
	font-weight: 500;
	font-size: 15px;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.btn:hover { border-color: var(--text); }

.btn-primary {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--bg);
}

.btn-primary:hover { border-color: var(--accent); opacity: 0.9; }

/* Stats */

.stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	margin: 0;
	background: var(--line);
	border: 1px solid var(--line);
	border-radius: 12px;
	overflow: hidden;
}

.stats > div { background: var(--surface); padding: 20px; }

.stats dt {
	font-family: var(--serif);
	font-size: 36px;
	font-weight: 600;
	line-height: 1.1;
	color: var(--accent);
	font-variant-numeric: tabular-nums;
}

.stats dd {
	margin: 6px 0 0;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.45;
}

/* Sections */

.section { padding-top: 96px; }

.section-title {
	font-size: 32px;
	margin: 0 0 32px;
}

/* Case studies */

.case {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 40px;
	padding: 40px 0;
	border-top: 1px solid var(--line);
}

.case-org {
	margin: 0 0 8px;
	color: var(--muted);
	font-size: 14px;
}

.case h3 {
	font-size: 26px;
	margin: 0 0 16px;
}

.tags {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.tags li {
	background: var(--accent-soft);
	color: var(--accent);
	font-size: 13px;
	font-weight: 500;
	padding: 3px 10px;
	border-radius: 999px;
}

.case-body h4 {
	margin: 24px 0 6px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
}

.case-body h4:first-child { margin-top: 0; }

.case-body p { margin: 0 0 12px; }

.case-body figure { margin: 24px 0 0; }

.case-body figure img { border-radius: 8px; }

.case-body figcaption {
	margin-top: 8px;
	font-size: 13px;
	color: var(--muted);
}

/* Timeline */

.timeline {
	list-style: none;
	margin: 0;
	padding: 0;
}

.timeline > li {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 24px;
	padding: 24px 0;
	border-top: 1px solid var(--line);
}

.when {
	color: var(--muted);
	font-size: 14px;
	padding-top: 3px;
	font-variant-numeric: tabular-nums;
}

.timeline h3 {
	margin: 0 0 6px;
	font-size: 18px;
	font-weight: 600;
}

.timeline .org {
	display: block;
	color: var(--muted);
	font-weight: 400;
	font-size: 15px;
}

.timeline p { margin: 0; color: var(--muted); }

.timeline figure { margin: 20px 0 0; max-width: 520px; }

.timeline figure img { border-radius: 8px; }

.timeline figure.portrait { max-width: 320px; }

.timeline figcaption {
	margin-top: 8px;
	font-size: 13px;
	color: var(--muted);
}

/* About */

.about > p { max-width: 40em; margin: 0 0 32px; }

.skills {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.skills h3 {
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
}

.skills p { margin: 0; font-size: 15px; }

/* Contact & footer */

.contact > p { max-width: 36em; margin: 0 0 24px; color: var(--muted); }

.footer {
	padding-top: 96px;
	padding-bottom: 40px;
	color: var(--muted);
	font-size: 14px;
}

/* Responsive */

@media (max-width: 800px) {
	.stats { grid-template-columns: repeat(2, 1fr); }
	.case { grid-template-columns: 1fr; gap: 20px; }
	.skills { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
	body { font-size: 16px; }
	.container { padding-inline: 16px; }
	.hero { padding-top: 56px; }
	.section { padding-top: 64px; }
	.nav-name { display: none; }
	.nav-inner { justify-content: center; }
	.timeline > li { grid-template-columns: 1fr; gap: 4px; }
}
