[hidden] {
	display: none !important;
}

.visually-hidden,
.skip-link:not(:focus) {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link:focus {
	position: absolute;
	z-index: 10;
	top: 0.5rem;
	left: 0.5rem;
	padding: 0.5rem 1rem;
	background: white;
	color: #28232b;
}

:focus-visible,
#nav a:focus-visible,
.carousel button:focus-visible {
	outline: 2px solid #175fa5;
	outline-offset: 3px;
	box-shadow: 0 0 0 3px white;
}

#header {
	background-color: #28232b;
	background-image: linear-gradient(rgb(20 16 24 / 44%), rgb(20 16 24 / 44%)), url("../../images/header.jpg");
}

#header .button {
	background-color: #a3453b;
}

#header .button:hover {
	background-color: #883a32;
}

.menu-toggle {
	display: none;
}

.carousel .reel {
	display: flex;
	gap: 1.25rem;
	overflow-x: auto;
	scroll-padding-inline: 1.25rem;
	scroll-snap-type: x proximity;
}

.carousel article {
	flex: 0 0 auto;
	margin: 0;
	scroll-snap-align: start;
}

.carousel article .image img {
	aspect-ratio: 368 / 256;
	width: 100%;
	height: auto;
	object-fit: contain;
}

.carousel button.forward,
.carousel button.backward {
	width: 3rem;
	height: 4rem;
	margin-top: -2rem;
	padding: 0;
	background: none;
}

.carousel button:focus-visible {
	outline-offset: -4px;
}

.carousel button[aria-disabled="true"] {
	opacity: 0.45;
	cursor: default;
}

#main p,
#footer p {
	text-align: left;
}

@media (max-width: 736px) {
	#nav {
		display: block;
		padding: 0;
		z-index: 2;
	}

	#header {
		padding-top: 4.5em;
	}

	.menu-toggle {
		display: grid;
		place-items: center;
		width: 5rem;
		min-height: 44px;
		margin: 0 auto;
		border-radius: 0 0 0.35rem 0.35rem;
		background-color: #302932;
	}

	#nav > ul {
		display: flex;
		flex-direction: column;
		width: min(14rem, 100%);
		height: auto;
		margin: 0.25rem auto 0;
		border: 0;
		border-radius: 0.35rem;
		background: #302932;
	}

	#nav > ul::before,
	#nav > ul::after,
	#nav > .menu-toggle:not([hidden])[aria-expanded="false"] + ul {
		display: none;
	}

	#nav > .menu-toggle[hidden] + ul {
		flex-direction: row;
		justify-content: center;
	}

	#nav > ul > li {
		margin: 0;
		padding: 0;
	}

	#nav > ul > li > a {
		padding: 0.75rem;
		line-height: 1.5;
	}

	#nav a:focus-visible,
	.menu-toggle:focus-visible {
		outline-offset: -4px;
	}

	.carousel .reel {
		gap: 0.5rem;
		scroll-padding-inline: 0.5rem;
	}
}

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