:root {
	--bg: #ffffff;
	--bg-alt: #f0f0f0;
	--text: #1c1c1c;
	--text-muted: #55595c;
	--link: #0a5ea8;
	--link-hover: #08497f;
	--rule: #dcdcdc;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #16181a;
		--bg-alt: #101214;
		--text: #e8e6e3;
		--text-muted: #a8a49f;
		--link: #79b8ff;
		--link-hover: #a6cfff;
		--rule: #2c3033;
	}
}

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

body {
	margin: 0;
	background: linear-gradient(to bottom, var(--bg) 0%, var(--bg-alt) 100%);
	background-attachment: fixed;
	color: var(--text);
	font-family: 'Ubuntu', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem);
	line-height: 1.6;
	-webkit-text-size-adjust: 100%;
}

.page {
	max-width: 46rem;
	margin: 0 auto;
	padding: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 2rem) 5rem;
}

h1 {
	margin: 0;
	font-size: clamp(2.25rem, 1.4rem + 4vw, 3.75rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

h2 {
	margin: 3rem 0 0;
	font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem);
	font-weight: 400;
	line-height: 1.2;
	padding-top: 1.5rem;
	border-top: 1px solid var(--rule);
}

p {
	margin: 1.25rem 0;
}

.lede {
	margin: 0.75rem 0 0;
	color: var(--text-muted);
	font-size: 1.15em;
}

.intro {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: clamp(1.5rem, 4vw, 2.5rem);
	margin-bottom: 2.5rem;
}

.intro__text {
	flex: 1 1 16rem;
	min-width: 0;
}

.intro__photo {
	flex: 0 0 auto;
	width: clamp(6.5rem, 20vw, 11.625rem);
	height: auto;
}

@media (prefers-color-scheme: dark) {
	.intro__photo {
		background: #f0efe9;
		border-radius: 12px;
		padding: 0.75rem 0.5rem 0;
	}
}

a {
	color: var(--link);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

a:hover,
a:focus-visible {
	color: var(--link-hover);
}

.links {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.75rem;
	margin: 1.5rem 0 0;
	padding: 0;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}
