:root {
	color-scheme: dark;
	font-family: "Aeonik", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-synthesis: none;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	background: #111111;
	color: #fffbff;
}

* {
	box-sizing: border-box;
}

body {
	min-width: 0;
	min-height: 100vh;
	min-height: 100svh;
	margin: 0;
}

.page-shell {
	display: flex;
	min-height: 100vh;
	min-height: 100svh;
	flex-direction: column;
}

.site-header {
	display: flex;
	width: calc(100% - 40px);
	max-width: 1600px;
	min-height: 64px;
	align-items: center;
	margin: 0 auto;
}

.brand {
	display: block;
	width: 60px;
	flex: 0 0 auto;
}

.brand img {
	display: block;
	width: 100%;
	height: auto;
}

.error-content {
	display: flex;
	width: 100%;
	flex: 1;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 28px 20px 40px;
	text-align: center;
}

.error-illustration {
	display: block;
	width: 126px;
	height: 135.75px;
	object-fit: contain;
	margin: 0 0 24px;
	filter: brightness(0.68) grayscale(1);
}

h1 {
	margin: 0;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.25;
}

.error-description,
.home-prompt {
	width: fit-content;
	max-width: 100%;
	margin: 14px 0 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
}

.home-button {
	display: inline-flex;
	min-height: 46px;
	align-items: center;
	justify-content: center;
	margin-top: 16px;
	padding: 0 20px;
	border-radius: 999px;
	background: #fffbff;
	color: #161416;
	font-size: 14px;
	line-height: 1;
	text-decoration: none;
	transition: background-color 160ms ease, transform 160ms ease;
}

.home-button:hover {
	transform: translateY(-1px);
	background: #e6e2e6;
}

.home-button:focus-visible,
.brand:focus-visible {
	outline: 2px solid #fffbff;
	outline-offset: 4px;
}

@media (min-width: 600px) {
	.site-header {
		width: calc(100% - 64px);
		min-height: 72px;
	}

	.brand {
		width: 72px;
	}

	.error-content {
		max-width: 900px;
		align-self: center;
		padding: 36px 32px 48px;
	}

	.error-illustration {
		width: 144px;
		height: 155.25px;
		margin-bottom: 28px;
	}

	h1 {
		font-size: 24px;
	}

	.error-description,
	.home-prompt {
		max-width: 100%;
		margin-top: 16px;
		font-size: 16px;
	}

	.home-button {
		min-height: 50px;
		margin-top: 20px;
		padding: 0 24px;
		font-size: 16px;
	}
}

@media (min-width: 1024px) {
	.site-header {
		width: calc(100% - 96px);
		min-height: 84px;
	}

	.brand {
		width: 84px;
	}

	.error-content {
		max-width: 1040px;
		padding: 44px 40px 56px;
	}

	.error-illustration {
		width: 168px;
		height: 181.2px;
		margin-bottom: 32px;
	}

	h1 {
		font-size: 28px;
	}

	.error-description,
	.home-prompt {
		max-width: 100%;
		margin-top: 18px;
		font-size: 18px;
	}

	.home-button {
		min-height: 54px;
		margin-top: 22px;
		padding: 0 26px;
		font-size: 18px;
	}
}

@media (min-width: 1440px) {
	.site-header {
		width: calc(100% - 128px);
		min-height: 96px;
	}

	.brand {
		width: 96px;
	}

	.error-content {
		max-width: 1120px;
		padding: 52px 48px 64px;
	}

	.error-illustration {
		width: 192px;
		height: 207px;
		margin-bottom: 36px;
	}

	h1 {
		font-size: 32px;
	}

	.error-description,
	.home-prompt {
		max-width: 100%;
		margin-top: 20px;
		font-size: 20px;
	}

	.home-button {
		min-height: 58px;
		margin-top: 24px;
		padding: 0 28px;
		font-size: 20px;
	}
}

@media (min-width: 1920px) {
	.brand {
		width: 108px;
	}

	.error-content {
		max-width: 1200px;
	}

	.error-illustration {
		width: 210px;
		height: 226.5px;
		margin-bottom: 40px;
	}

	h1 {
		font-size: 36px;
	}

	.error-description,
	.home-prompt {
		font-size: 22px;
	}

	.home-button {
		min-height: 62px;
		font-size: 22px;
	}
}

@media (max-width: 599px) {
	.error-description,
	.home-prompt {
		width: 100%;
		max-width: 30ch;
	}
}

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