/*
 * Shared shell: one header, one menu and one footer on every page.
 *
 * The front page uses the cinematic styles from wow.css. Inner pages keep
 * their editorial layout but use the same navigation and footer markup, so a
 * menu can never again exist on only one template.
 */

.site-head {
	position: relative;
	z-index: 1000;
	color: var(--ink);
	background: var(--paper);
	border-bottom: 1px solid var(--line, rgba(27, 22, 32, 0.16));
}

body.vas-wow .site-head {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	background: transparent;
	border-bottom: 0;
	color: var(--paper);
}

.site-head--inner {
	position: sticky;
	top: 0;
	background: rgba(244, 240, 232, 0.95);
	-webkit-backdrop-filter: blur(16px) saturate(125%);
	backdrop-filter: blur(16px) saturate(125%);
}

.head-in {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: 82px;
}

.site-head .brand {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	flex: none;
	text-decoration: none;
	color: inherit;
}

.site-head .brand__logo {
	width: 42px;
	height: 42px;
	object-fit: contain;
}

.site-head .brand span {
	font-family: var(--font-sans, 'Manrope', system-ui, sans-serif);
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.01em;
}

.site-head--inner .brand {
	color: var(--ink);
}

.site-head--inner .brand__logo {
	filter: none;
}

.site-head .head-nav {
	display: flex;
	align-items: center;
	gap: clamp(16px, 2.1vw, 30px);
}

.site-head .head-nav a {
	position: relative;
	padding: 8px 0;
	color: inherit;
	text-decoration: none;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	opacity: 0.82;
	border-bottom: 1px solid transparent;
	transition: opacity 180ms ease, border-color 180ms ease;
}

.site-head .head-nav a:hover,
.site-head .head-nav a[aria-current="page"] {
	opacity: 1;
	border-bottom-color: var(--gold);
}

body.vas-wow .site-head .head-nav a {
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.site-head--inner .head-nav a {
	color: var(--ink);
	opacity: 0.72;
}

.site-head--inner .head-nav a:hover,
.site-head--inner .head-nav a[aria-current="page"] {
	color: var(--ink);
	opacity: 1;
}

.site-head .give {
	flex: none;
	padding: 10px 15px;
	border: 1px solid currentColor;
	color: inherit;
	text-decoration: none;
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	transition: background 180ms ease, color 180ms ease;
}

.site-head .give:hover,
.site-head .give[aria-current="page"] {
	background: var(--ink);
	color: var(--paper);
}

body.vas-wow .site-head .give:hover,
body.vas-wow .site-head .give[aria-current="page"] {
	background: var(--paper);
	color: var(--ink);
}

.site-head--inner .give {
	border-color: var(--ink);
	color: var(--ink);
}

.site-head .wow-menu-toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid currentColor;
	background: transparent;
	color: inherit;
	font: 700 0.64rem/1 var(--font-sans, 'Manrope', system-ui, sans-serif);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.wow-menu-toggle__lines {
	display: flex;
	flex-direction: column;
	gap: 4px;
	width: 18px;
}

.wow-menu-toggle__lines span {
	display: block;
	width: 100%;
	height: 1.5px;
	background: currentColor;
}

.wow-menu {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: flex;
	flex-direction: column;
	padding: max(22px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
	background: var(--ink);
	color: var(--paper);
}

.wow-menu[hidden] {
	display: none;
}

.wow-menu__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 28px;
	border-bottom: 1px solid rgba(244, 240, 232, 0.22);
	font-size: 0.64rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(244, 240, 232, 0.6);
}

.wow-menu__close {
	border: 0;
	background: transparent;
	color: var(--paper);
	font: 700 0.72rem/1 var(--font-sans, 'Manrope', system-ui, sans-serif);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.wow-menu__nav {
	display: flex;
	flex-direction: column;
	margin-top: 18px;
}

.wow-menu__nav a {
	padding: 15px 0;
	border-bottom: 1px solid rgba(244, 240, 232, 0.16);
	color: var(--paper);
	text-decoration: none;
	font-family: var(--font-serif, 'Gloock', Georgia, serif);
	font-size: clamp(30px, 8vw, 48px);
	line-height: 1;
	letter-spacing: -0.035em;
}

.wow-menu__nav a[aria-current="page"],
.wow-menu__nav a:last-child {
	color: var(--gold);
}

.wow-menu__note {
	margin: auto 0 0;
	color: rgba(244, 240, 232, 0.5);
	font-size: 0.66rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

body.menu-open {
	overflow: hidden;
}

.skip {
	position: absolute;
	left: -9999px;
}

.skip:focus {
	left: 16px;
	top: 16px;
	z-index: 3000;
	padding: 10px 14px;
	background: var(--paper);
	color: var(--ink);
}

/* The inner footer is the same three-column footer as the home page. */
body:not(.vas-wow) .footer-top {
	grid-template-columns: 1.6fr 1fr 1fr;
}

.footer-brand__mark {
	display: block;
	width: 46px;
	height: 46px;
	margin: 0 0 1rem;
}

.footer-brand__logo {
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: brightness(0) invert(1);
}

.footer-col {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.footer-col a {
	display: block;
	margin: 6px 0;
	color: rgba(244, 240, 232, 0.7);
	text-decoration: none;
	font-size: 0.76rem;
}

.footer-col a:hover {
	color: var(--paper);
}

.footer-heading {
	margin: 0 0 10px;
	font-family: var(--font-sans, 'Manrope', system-ui, sans-serif);
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--gold);
}

@media (max-width: 900px) {
	.head-in {
		height: 66px;
	}

	.site-head .brand__logo {
		width: 34px;
		height: 34px;
	}

	.site-head .brand span {
		font-size: 0.72rem;
	}

	.site-head .head-nav {
		display: none;
	}

	.site-head .give {
		display: none;
	}

	.site-head .wow-menu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	body:not(.vas-wow) .footer-top {
		grid-template-columns: 1fr 1fr;
	}

	body:not(.vas-wow) .footer-brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 480px) {
	.site-head .brand span {
		max-width: 11ch;
	}
}
