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

html {
	color-scheme: dark;
}

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

body {
	display: flex;
	flex-direction: column;
	margin: 0;
	min-height: 100vh;
	min-height: 100dvh;
	background: #000;
	color: #fff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1,
h2,
p,
ul {
	margin: 0;
	padding: 0;
	font-size: inherit;
	font-weight: inherit;
}

ul {
	list-style: none;
}

a {
	color: inherit;
	font-weight: 500;
}

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

hr {
	margin: 0;
	border: 0;
	border-bottom: 1px solid #e2e8f0;
	opacity: 0.6;
}

.hover-underline {
	text-decoration: none;
}

.hover-underline:hover {
	text-decoration: underline;
}

/* Nav */

.nav {
	position: sticky;
	top: 0;
	z-index: 99;
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 120px;
	padding: 0 1rem;
	background: #000;
	border-bottom: 1px solid #fff;
}

.nav-name {
	font-size: 1.125rem;
	font-weight: 700;
	text-align: center;
}

.nav-links {
	display: flex;
	justify-content: center;
	margin-top: 0.75rem;
}

.nav-links a {
	margin: 0 0.5rem;
}

/* Intro */

/* Grows to fill the screen below the nav, with the content centred in the space */
.main {
	flex: 1 0 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: min(1200px, 100% - 2rem);
	margin: 0 auto;
	padding-top: 2rem;
}

.intro {
	display: flex;
	flex-direction: column;
}

.photo {
	width: 300px;
	margin: 0 auto 1rem;
}

.intro-text {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.greeting {
	font-size: 36px;
	font-weight: 600;
}

.main hr {
	margin: 2.5rem 0;
}

/* Contact */

#contact {
	margin-bottom: 2.5rem;
	scroll-margin-top: 120px;
}

.heading {
	margin-bottom: 1.5rem;
	font-size: 1.875rem;
	font-weight: 700;
	line-height: 1.33;
}

.contact-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.contact-list a {
	display: flex;
	width: fit-content;
	align-items: center;
	gap: 0.5rem;
}

.icon {
	flex-shrink: 0;
	width: 30px;
	height: 30px;
}

.icon-padded {
	padding: 3px;
}

/* 404 */

.not-found {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 40px 2rem 0;
	text-align: center;
}

.not-found-title {
	font-size: 24px;
	font-weight: 600;
}

.not-found-text {
	padding-top: 0.5rem;
	font-size: 18px;
}

.not-found-link {
	font-size: 18px;
	font-weight: 600;
}

.not-found-link img {
	width: 400px;
	margin: 2rem auto;
}

@media (min-width: 48em) {
	.nav {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		height: 100px;
		padding: 0 2.5rem;
	}

	.nav-links {
		display: none;
	}

	.nav-name {
		text-align: left;
	}

	.main {
		width: min(1200px, 100% - 5rem);
	}

	.intro {
		flex-direction: row;
		align-items: center;
	}

	.photo {
		flex-shrink: 0;
		margin: 0 3rem 0 0;
	}

	.heading {
		font-size: 2.25rem;
		line-height: 1.2;
	}

	.not-found {
		padding-top: 80px;
	}
}
