:root {
	--ana-navy: #0f2454;
	--ana-blue: #2095ae;
	--ana-white: #fff;
	--ana-font-text: "Montserrat", sans-serif;
	--ana-font-navigation: "Barlow Condensed", sans-serif;
	--ana-font-heading: "Gilda Display", serif;
	--ana-font-logo: "Bodoni Moda", serif;
}

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

html,
body {
	min-height: 100%;
	margin: 0;
}

body {
	background: var(--ana-navy);
	color: var(--ana-white);
	font-family: var(--ana-font-text);
	-webkit-font-smoothing: antialiased;
}

body.menu-open {
	overflow: hidden;
}

a {
	color: inherit;
	text-decoration: none;
}

.error-page {
	position: relative;
	display: grid;
	grid-template-rows: auto 1fr;
	min-height: 100svh;
	overflow: hidden;
	background:
		linear-gradient(rgba(7, 18, 43, .72), rgba(7, 18, 43, .72)),
		url("https://pansion-ana.com/img/rooms/pre-hero.jpg") center / cover no-repeat;
}

.error-page::after {
	position: absolute;
	inset: 0;
	pointer-events: none;
	content: "";
	background: linear-gradient(90deg, rgba(4, 12, 30, .2), transparent 30%, transparent 70%, rgba(4, 12, 30, .2));
}

.error-header,
.error-main {
	position: relative;
	z-index: 1;
}

.error-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: min(100% - 48px, 1180px);
	margin-inline: auto;
}

.error-header {
	z-index: 4;
	padding-block: 38px;
}

.error-logo {
	font-family: var(--ana-font-logo);
	font-size: clamp(2.1rem, 4vw, 2.75rem);
	font-weight: 400;
	line-height: 1;
	text-transform: lowercase;
}

.error-menu-toggle {
	position: relative;
	z-index: 4;
	width: 42px;
	height: 34px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.error-menu-toggle span,
.error-menu-toggle::before,
.error-menu-toggle::after {
	position: absolute;
	right: 0;
	width: 30px;
	height: 1px;
	content: "";
	background: #fff;
	transition: transform .25s ease, opacity .25s ease, top .25s ease;
}

.error-menu-toggle span {
	top: 16px;
}

.error-menu-toggle::before {
	top: 9px;
}

.error-menu-toggle::after {
	top: 23px;
}

.error-menu-toggle.is-open span {
	opacity: 0;
}

.error-menu-toggle.is-open::before,
.error-menu-toggle.is-open::after {
	top: 16px;
	background: var(--ana-blue);
}

.error-menu-toggle.is-open::before {
	transform: rotate(45deg);
}

.error-menu-toggle.is-open::after {
	transform: rotate(-45deg);
}

.error-menu-backdrop {
	position: fixed;
	z-index: 2;
	inset: 0;
	background: rgba(7, 18, 43, .42);
}

.error-menu {
	position: fixed;
	z-index: 3;
	top: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: min(420px, 88vw);
	height: 100svh;
	padding: 100px 60px 50px;
	background: #fff;
	color: var(--ana-navy);
	transform: translateX(100%);
	transition: transform .35s ease;
}

.error-menu.is-open {
	transform: translateX(0);
}

.error-menu-links {
	display: flex;
	flex-direction: column;
	gap: 12px;
	font-family: var(--ana-font-navigation);
	font-size: 1.35rem;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.error-menu-links a:hover,
.error-menu-links a:focus-visible {
	color: var(--ana-blue);
}

.language-nav,
.error-links {
	display: flex;
	flex-wrap: wrap;
	font-family: var(--ana-font-navigation);
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.language-nav {
	gap: 16px;
	margin-top: 36px;
	font-size: .8rem;
}

.language-nav a,
.error-links a,
.error-message a {
	transition: color .2s ease, opacity .2s ease;
}

.language-nav a {
	opacity: .65;
}

.language-nav a[aria-current="page"],
.language-nav a:hover,
.language-nav a:focus-visible,
.error-links a:hover,
.error-links a:focus-visible,
.error-message a:hover,
.error-message a:focus-visible {
	color: #76d5e7;
	opacity: 1;
}

.error-main {
	display: grid;
	place-items: center;
	padding: 12px 24px 54px;
}

.error-content {
	width: min(100%, 820px);
	text-align: center;
}

.error-code {
	margin: 0 0 10px;
	color: transparent;
	font-family: var(--ana-font-heading);
	font-size: clamp(9rem, 20vw, 14rem);
	font-weight: 400;
	letter-spacing: .015em;
	line-height: .7;
	-webkit-text-stroke: 1px rgba(32, 149, 174, .88);
	text-stroke: 1px rgba(32, 149, 174, .88);
}

h1 {
	margin: 0;
	font-family: var(--ana-font-heading);
	font-size: clamp(2.25rem, 5vw, 3.25rem);
	font-weight: 400;
	line-height: 1.15;
}

.error-message {
	max-width: 650px;
	margin: 22px auto 0;
	font-size: clamp(.9rem, 1.5vw, 1rem);
	font-weight: 300;
	line-height: 1.8;
}

.error-message a {
	border-bottom: 1px solid rgba(255, 255, 255, .55);
}

.error-links {
	justify-content: center;
	gap: 0;
	margin: 30px auto 0;
	font-size: .92rem;
}

.error-links a {
	position: relative;
	padding: 7px 15px;
}

.error-links a:not(:last-child)::after {
	position: absolute;
	top: 50%;
	right: 0;
	width: 1px;
	height: 14px;
	content: "";
	background: rgba(255, 255, 255, .35);
	transform: translateY(-50%);
}

@media (max-width: 640px) {
	.error-header {
		width: min(100% - 32px, 1180px);
	}

	.error-header {
		padding-block: 24px;
	}

	.error-menu {
		padding-inline: 36px;
	}

	.error-main {
		padding: 38px 20px 52px;
	}

	.error-code {
		margin-bottom: 10px;
	}

	.error-message {
		margin-top: 18px;
	}

	.error-links {
		margin-top: 28px;
	}

	.error-links a {
		padding: 6px 10px;
	}

}

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