@font-face {
	font-family: 'Playfair Display';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('fonts/playfair-display-regular-latin.woff2') format('woff2');
}

@font-face {
	font-family: 'Playfair Display';
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url('fonts/playfair-display-italic-latin.woff2') format('woff2');
}

@font-face {
	font-family: 'Source Sans 3';
	font-style: normal;
	font-weight: 200 900;
	font-display: swap;
	src: url('fonts/source-sans-3-latin.woff2') format('woff2');
}

:root {
	--avcs-gold: #d4af37;
	--avcs-white: #f4f1e9;
	--avcs-green: #0d1611;
}

* { box-sizing: border-box; }

html,
body {
	width: 100%;
	min-height: 100%;
	margin: 0;
	overflow: hidden;
	background: var(--avcs-green);
}

body {
	min-height: 100vh;
	min-height: 100dvh;
}

.avcs-stage {
	position: relative;
	isolation: isolate;
	width: 100%;
	min-height: 100vh;
	min-height: 100svh;
	min-height: 100dvh;
	overflow: hidden;
	background-color: var(--avcs-green);
	background-image: url('background-desktop.jpg');
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	color: var(--avcs-white);
}

.avcs-frame {
	position: absolute;
	z-index: 1;
	inset: 22px;
	border: 1px solid rgba(212, 175, 55, 0.55);
	pointer-events: none;
}

.avcs-logo {
	position: absolute;
	z-index: 2;
	top: 47px;
	left: 60px;
	display: block;
	width: auto;
	height: 58px;
	user-select: none;
	-webkit-user-drag: none;
}

.avcs-language {
	position: absolute;
	z-index: 2;
	top: 70px;
	right: 64px;
	margin: 0;
	font: 400 12px/1 'Source Sans 3', sans-serif;
	letter-spacing: 0.23em;
	white-space: nowrap;
	color: rgba(244, 241, 233, 0.82);
}

.avcs-language-separator { color: rgba(244, 241, 233, 0.45); }

.avcs-brand {
	position: absolute;
	z-index: 2;
	top: 96px;
	left: 50%;
	width: max-content;
	max-width: calc(100% - 160px);
	transform: translateX(-50%);
	text-align: center;
}

.avcs-title {
	margin: 0;
	font: 400 64px/1 'Playfair Display', Georgia, serif;
	font-synthesis: none;
	white-space: nowrap;
	color: var(--avcs-white);
}

.avcs-title-vip {
	margin-left: 16px;
	font-style: italic;
	color: var(--avcs-gold);
}

.avcs-tagline,
.avcs-footer {
	margin: 0;
	font: 600 12px/1 'Source Sans 3', sans-serif;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--avcs-gold);
}

.avcs-tagline { margin-top: 22px; }

.avcs-message {
	position: absolute;
	z-index: 2;
	top: calc(50% - 4px);
	left: 50%;
	width: calc(100% - 120px);
	margin: 0;
	transform: translate(-50%, -50%);
	font: 400 42px/56px 'Playfair Display', Georgia, serif;
	font-synthesis: none;
	text-align: center;
	color: var(--avcs-white);
}

.avcs-message-line { display: block; white-space: nowrap; }
.avcs-message-mobile { display: none; }

.avcs-footer {
	position: absolute;
	z-index: 2;
	left: 50%;
	bottom: 92px;
	transform: translateX(-50%);
	text-align: center;
}

/* Portrait tablets use the supplied vertical artwork. */
@media (min-width: 601px) and (max-width: 1100px) and (orientation: portrait) {
	.avcs-stage { background-image: url('background-mobile.jpg'); }
	.avcs-frame { inset: 18px; }
	.avcs-logo { top: 40px; left: 46px; height: 50px; }
	.avcs-language { top: 55px; right: 46px; font-size: 11px; }
	.avcs-brand { top: 12.5vh; top: 12.5dvh; max-width: calc(100% - 120px); }
	.avcs-title { font-size: 52px; }
	.avcs-title-vip { margin-left: 13px; }
	.avcs-tagline { margin-top: 15px; font-size: 10.5px; letter-spacing: 0.31em; }
	.avcs-message { top: 57%; width: calc(100% - 120px); font-size: 34px; line-height: 46px; }
	.avcs-message-desktop { display: none; }
	.avcs-message-mobile { display: block; }
	.avcs-footer { bottom: 70px; font-size: 10.5px; letter-spacing: 0.31em; }
}

/* Phones reproduce the 390 px reference exactly. */
@media (max-width: 600px) and (orientation: portrait) {
	.avcs-stage { background-image: url('background-mobile.jpg'); }

	.avcs-frame {
		top: max(14px, env(safe-area-inset-top));
		right: max(14px, env(safe-area-inset-right));
		bottom: max(14px, env(safe-area-inset-bottom));
		left: max(14px, env(safe-area-inset-left));
	}

	.avcs-logo {
		top: clamp(26px, 3.55vh, 32px);
		top: max(clamp(26px, 3.55dvh, 32px), calc(env(safe-area-inset-top) + 16px));
		left: calc(32px + env(safe-area-inset-left));
		height: 40px;
	}

	.avcs-language {
		top: clamp(42px, 5.45vh, 50px);
		top: max(clamp(42px, 5.45dvh, 50px), calc(env(safe-area-inset-top) + 24px));
		right: calc(32px + env(safe-area-inset-right));
		font-size: 10px;
		letter-spacing: 0.23em;
	}

	.avcs-brand {
		top: clamp(101px, 13.98vh, 123px);
		top: clamp(101px, 13.98dvh, 123px);
		max-width: calc(100% - 56px);
	}

	.avcs-title { font-size: 40px; }
	.avcs-title-vip { margin-left: 10px; }

	.avcs-tagline {
		margin-top: 16px;
		font-size: 9.5px;
		letter-spacing: 0.3em;
	}

	.avcs-message {
		top: calc(57% + 1px);
		width: calc(100% - 80px);
		font-size: 25px;
		line-height: 34px;
	}

	.avcs-message-desktop { display: none; }
	.avcs-message-mobile { display: block; }

	.avcs-footer {
		bottom: clamp(46px, 6.9vh, 58px);
		bottom: clamp(46px, 6.9dvh, 58px);
		font-size: 9.5px;
		letter-spacing: 0.3em;
	}
}

/* Landscape tablets scale the desktop hierarchy without changing it. */
@media (min-height: 601px) and (max-width: 1100px) and (orientation: landscape) {
	.avcs-frame { inset: 18px; }
	.avcs-logo { top: 38px; left: 48px; height: 48px; }
	.avcs-language { top: 53px; right: 48px; font-size: 11px; }
	.avcs-brand { top: 76px; }
	.avcs-title { font-size: 52px; }
	.avcs-title-vip { margin-left: 13px; }
	.avcs-tagline { margin-top: 13px; font-size: 10.5px; }
	.avcs-message { font-size: 36px; line-height: 48px; }
	.avcs-footer { bottom: 68px; font-size: 10.5px; }
}

/* Short landscape phones remain fully legible. */
@media (max-height: 600px) and (orientation: landscape) {
	.avcs-frame { inset: 10px 12px; }
	.avcs-logo { top: 20px; left: 30px; height: 34px; }
	.avcs-language { top: 28px; right: 30px; font-size: 9px; }
	.avcs-brand { top: 16px; }
	.avcs-title { font-size: 38px; }
	.avcs-title-vip { margin-left: 9px; }
	.avcs-tagline { margin-top: 6px; font-size: 8.5px; }
	.avcs-message { top: 51%; width: calc(100% - 100px); font-size: 26px; line-height: 34px; }
	.avcs-message-desktop { display: block; }
	.avcs-message-mobile { display: none; }
	.avcs-footer { bottom: 22px; font-size: 8.5px; }
}
