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

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

body {
	font: 300 11pt/2 "Source Sans Pro", Helvetica, Arial, sans-serif;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #414f57;
	background-color: #fff;
	background-image: url("img/overlay.png"), url("img/bg.jpg");
	background-repeat: repeat, no-repeat;
	background-size: 100px 100px, cover;
	background-position: top left, center center;
	background-attachment: fixed, fixed;
}

@media (min-width: 1681px) {
	body { font-size: 14pt; }
}

@media (max-width: 900px) {
	body { background-image: url("img/overlay.png"), url("img/bg-small.jpg"); }
}

@media (max-width: 480px) {
	body { font-size: 10pt; line-height: 1.75; }
}

/* White-to-transparent veil that fades out once the page has loaded. */
body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 1;
	opacity: 0;
	pointer-events: none;
	background-color: #fff;
	background-image: url("img/overlay.png"), linear-gradient(60deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0));
	background-repeat: repeat, no-repeat;
	background-size: 100px 100px, cover;
	transition: opacity 1.75s ease-out;
}
body.is-loading::after { opacity: 1; }

#wrapper {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	min-height: 100%;
	padding: 1.5em;
	perspective: 1000px;
}
/* Empty first flex item so the card sits centred and the footer at the bottom. */
#wrapper::before { content: ""; display: block; }

@media (max-width: 360px) {
	#wrapper { padding: 0.75em; }
}

.card {
	width: calc(736px + 6em); /* the original sizes the card to the logo's natural width */
	max-width: 100%;
	padding: 4.5em 3em 3em;
	text-align: center;
	background: #fff;
	border-radius: 4px;
	opacity: 0.95;
	cursor: default;
	transform-origin: 50% 50%;
	transition: opacity 1s ease, transform 1s ease;
}
body.is-loading .card {
	opacity: 0;
	transform: rotateX(15deg);
}

@media (max-width: 480px) {
	.card { width: 100%; padding: 4em 2em 2.5em; }
}

.logo {
	display: block;
	width: 75%;
	height: auto;
	margin: 0 auto 0.5em;
}

h1 {
	margin: 0 0 0.525em;
	font-size: 1.85em;
	font-weight: 300;
	line-height: 1.5;
	letter-spacing: 0.22em;
	color: #313f47;
}

@media (max-width: 480px) {
	h1 { font-size: 1.65em; }
}

address {
	margin: 0 0 1.5em;
	font-style: normal;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease, border-color 0.2s ease;
}
a:hover { color: #ff7496; }

.mail {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.75em;
	height: 3.75em;
	border: 1px solid #c8cccf;
	border-radius: 50%;
	/* Bottom spacing the original gets from its icon list's padding and margin. */
	margin-bottom: 2.175em;
	color: #414f57;
}
.mail:hover { border-color: #ff7496; }
.mail svg {
	width: 1.85rem;
	height: auto;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linejoin: round;
}
@media (max-width: 480px) {
	.mail svg { width: 1.5rem; }
}

footer {
	width: 100%;
	padding-top: 1.5em;
	font-size: 0.9em;
	text-align: center;
	color: rgba(255, 255, 255, 0.75);
	cursor: default;
}

@media (prefers-reduced-motion: reduce) {
	body::after, .card { transition: none; }
}
