:root {
	color-scheme: light;
	--bg: #eaedf4;
	--ink: #171717;
	--muted: #5e5b55;
	--line: #b9b2a6;
	--accent: #91299f;
	--card: #e4dceb;
	--max: 1180px;
}

html[data-theme="dark"] {
	color-scheme: dark;
	--bg: #101113;
	--ink: #f5f2eb;
	--muted: #c2c4c8;
	--line: #55585e;
	--accent: #7cf0c5;
	--card: #191b1f;
}

@media (prefers-color-scheme: dark) {
	html[data-theme="system"] {
		color-scheme: dark;
		--bg: #101113;
		--ink: #f5f2eb;
		--muted: #c2c4c8;
		--line: #55585e;
		--accent: #7cf0c5;
		--card: #191b1f;
	}
}

* {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
}
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: Arial, Helvetica, sans-serif;
	line-height: 1.55;
}
a {
	color: inherit;
}
button,
a {
	font: inherit;
}
:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 4px;
}

.skip-link {
	position: absolute;
	left: -9999px;
}
.skip-link:focus {
	left: 1rem;
	top: 1rem;
	background: var(--ink);
	color: var(--bg);
	padding: 0.6rem;
	z-index: 10;
}
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.section-wrap {
	max-width: var(--max);
	margin: auto;
	padding-left: clamp(1.25rem, 4vw, 4rem);
	padding-right: clamp(1.25rem, 4vw, 4rem);
}
.site-header {
	max-width: var(--max);
	margin: auto;
	padding: 1.5rem clamp(1.25rem, 4vw, 4rem);
	display: flex;
	align-items: center;
	gap: 2rem;
	border-bottom: 1px solid var(--line);
}
.wordmark {
	letter-spacing: 0.08em;
	line-height: 1.4;
	text-decoration: none;
	margin-right: auto;
}
.site-header nav {
	display: flex;
	gap: 1.5rem;
}
.site-header nav a {
	text-decoration: none;
	color: var(--muted);
}
.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
	color: var(--ink);
}
.site-header nav a[aria-current="page"] {
	text-decoration: underline;
	text-underline-offset: 0.4rem;
}
.theme-switcher {
	display: flex;
	gap: 0.5rem;
}
.theme-switcher button {
	border: 1px solid var(--line);
	background: transparent;
	color: var(--muted);
	padding: 0.4rem 0.6rem;
	cursor: pointer;
}
.theme-switcher button:hover,
.theme-switcher button.active {
	background: var(--ink);
	color: var(--bg);
}

h1,
h2,
h3 {
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 400;
	line-height: 1.25;
	margin: 0 0 1rem;
}
h1 {
	font-size: clamp(3rem, 8vw, 4.5rem);
	letter-spacing: -0.04em;
}
h2 {
	font-size: clamp(2rem, 4vw, 4rem);
	letter-spacing: -0.01em;
}
h3 {
	font-size: 1.45rem;
}
.eyebrow,
.meta,
.section-note,
.date {
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}
.hero {
	min-height: 75vh;
	display: grid;
	grid-template-columns: 1.4fr 0.6fr;
	align-items: center;
	gap: clamp(2rem, 8vw, 8rem);
	padding-top: 5rem;
	padding-bottom: 5rem;
}
.hero-copy {
	max-width: 780px;
}
.lede {
	font-size: clamp(1.1rem, 2vw, 1.45rem);
	max-width: 720px;
	color: var(--muted);
}
.actions {
	display: flex;
	gap: 0.8rem;
	flex-wrap: wrap;
	margin-top: 2rem;
}
.button {
	display: inline-block;
	padding: 0.8rem 1.1rem;
	text-decoration: none;
	border: 1px solid var(--ink);
	font-size: 0.85rem;
}
.button.primary {
	background: var(--ink);
	color: var(--bg);
}
.button.secondary {
	background: transparent;
}
.portrait {
	aspect-ratio: 1 / 1;
	background: linear-gradient(145deg, var(--accent), var(--ink));
	color: var(--bg);
	display: grid;
	place-items: center;
}
.portrait img {
	max-width: 100%;
	padding: 0.5rem;
}
.two-column {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	border-top: 1px solid var(--line);
	padding-top: 5rem;
	padding-bottom: 7rem;
}
.body-copy {
	font-size: 1.15rem;
	max-width: 590px;
}
.projects {
	padding-bottom: 7rem;
}
.section-heading {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	border-bottom: 1px solid var(--line);
	padding-bottom: 1rem;
}
.project-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	margin-top: 1rem;
}
.project-card {
	background: var(--card);
	padding: 1.5rem;
	min-height: 280px;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	transition:
		transform 0.15s ease,
		box-shadow 0.15s ease;
}
.project-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}
.project-card.featured {
	background: var(--ink);
	color: var(--bg);
}
.project-index {
	color: var(--accent);
	font-size: 0.8rem;
}
.project-card p {
	color: var(--muted);
	flex-grow: 1;
}
.project-card.featured p {
	color: var(--bg);
	opacity: 0.82;
}
.meta {
	margin-top: auto;
}
.contact {
	border-top: 1px solid var(--line);
	padding-top: 5rem;
	padding-bottom: 7rem;
}
.contact-link {
	font:
		400 clamp(2rem, 5vw, 5rem) / 1 Georgia,
		serif;
	text-decoration: none;
	border-bottom: 2px solid var(--accent);
}
.site-footer {
	display: flex;
	justify-content: space-between;
	border-top: 1px solid var(--line);
	padding-top: 1rem;
	padding-bottom: 2rem;
	color: var(--muted);
	font-size: 0.8rem;
}

.cv-page {
	padding-top: 5rem;
	padding-bottom: 5rem;
}
.cv-header {
	display: flex;
	justify-content: space-between;
	align-items: end;
	gap: 2rem;
}
.cv-header h1 {
	font-size: clamp(3.5rem, 8vw, 4rem);
}
.cv-contact {
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	padding: 1rem 0;
	margin: 1rem 0;
}
.cv-section {
	padding: 2.5rem 0;
	border-bottom: 1px solid var(--line);
}
.cv-section h2 {
	font-size: 2rem;
}
.cv-entry {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 3rem;
	margin-top: 2rem;
}
.cv-entry h3 {
	margin-bottom: 0.3rem;
}
.cv-entry p {
	margin: 0.15rem 0;
	color: var(--muted);
}
.cv-entry ul,
.cv-list {
	margin: 0;
	padding-left: 1.2rem;
}
.cv-content {
	margin-bottom: 1rem;
}
.cv-list li {
	margin: 0.55rem 0;
}
.link-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.25rem 2rem;
}
.split-cv {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
}
.split-cv p {
	max-width: 500px;
}

@media (max-width: 760px) {
	.site-header {
		flex-wrap: wrap;
	}
	.site-header nav {
		order: 3;
		width: 100%;
		padding-top: 1rem;
		flex-wrap: wrap;
	}
	.hero,
	.two-column,
	.project-grid,
	.cv-entry,
	.split-cv {
		grid-template-columns: 1fr;
	}
	.hero {
		min-height: auto;
		padding-top: 4rem;
	}
	.portrait {
		max-width: 260px;
	}
	.section-heading,
	.cv-header {
		display: block;
	}
	.section-note,
	.print-button {
		display: inline-block;
		margin-top: 1rem;
	}
	.cv-entry {
		gap: 1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

@media print {
	.site-header,
	.site-footer,
	.print-button,
	.theme-switcher {
		display: none;
	}
	.cv-page {
		padding: 0;
	}
	.cv-section {
		break-inside: avoid;
	}
}
