:root {
	--turquoise-color: #027679;
	--orange-color: #e19200;
	--yellow-color: #ffda5a;
}

/* Fonts & text */

html {
	font-family: "Titillium Web", sans-serif;
	font-size: 112.5%; /* 18px */
	line-height: 1.3333; /* 24 px */
}

h1 {
	font-size: 1.6em;
	color: var(--orange-color);
}

h2 {
	font-size: 1.4em;
	color: var(--turquoise-color);
}

h3 {
	font-size: 1.2em;
	color: var(--turquoise-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 1rem 0;
}

a {
	font-weight: 700;
	text-decoration: none;
	color: var(--turquoise-color);
}

a:hover {
	text-decoration: underline;
	text-decoration-thickness: 0.1em;
}

h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
	font-weight: unset;
}

figure {
	margin: 1rem;
	text-align: center;
}

figure img {
	max-width: 100%;
}

figure iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	border: none;
}

blockquote {
	margin-left: 1em;
	margin-right: 1em;
	padding: 0.5em 1em;
	border-left: 0.25em solid var(--orange-color);
}

blockquote::before {
	content: "“";
	margin-right: 0.1em;
	font-size: 4em;
	line-height: 0;
	vertical-align: -0.35em;
	color: var(--orange-color);
	opacity: 0.25;
}

blockquote footer {
	margin-top: 1em;
	font-style: italic;
}

blockquote footer::before {
	content: "—";
}

/* Blocks and layout */

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

body main {
	flex-grow: 1;
}

.clearfix::after {
	content: "";
	display: table;
	clear: both;
}

.container {
	position: relative;
	padding-left: 1rem;
	padding-right: 1rem;
	max-width: 48rem;
	margin: 0 auto;
}

.narrow .container {
	max-width: 34rem;
}

/* Header */

.header {
	margin-bottom: 2rem;
	padding-top: 1rem;
	background-image: url(/assets/images/header.svg);
	background-size: 102% auto;
	background-position: center min(calc(3rem - 7.3vw), -2vw);
	background-repeat: no-repeat;
}

.header .logo {
	display: block;
	width: 12rem;
	margin-bottom: 1rem;
	line-height: 1;
}

.header nav {
	margin: 1rem -0.25rem;
	font-weight: 600;
}

@media screen and (min-width: 48rem) {
	.header .logo {
		float: left;
	}

	.header nav {
		float: right;
		margin-top: 4rem;
	}
}

.header nav ul {
	margin: 0;
	padding: 0;
}

.header nav li {
	list-style: none;
	display: inline;
	margin-left: 0.25em;
}

.header nav li:first-child {
	margin-left: 0;
}

.header nav li:not(:first-child)::before {
	content: " | ";
	display: inline;
	margin-right: 0.25em;
	color: var(--orange-color);
}

.header nav a {
	padding: 0.25em;
	color: var(--turquoise-color);
	font-weight: unset;
}

.header nav a.active {
	color: var(--orange-color);
}

.header-image {
	width: 100vw;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* Footer */

.footer::before,
.footer::after {
	content: "";
	display: block;
	background-color: #fff;
	background-image: url(/assets/images/footer.svg);
	background-size: 116% auto;
	background-repeat: no-repeat;
}

.footer {
	margin: 2rem 0;
	color: #fff;
	background-color: #73815d;
	font-family: "Barlow Semi Condensed", sans-serif;
}

.footer::before {
	height: 8.5vw;
	background-position: center top;
}

.footer::after {
	height: 6.5vw;
	background-position: center bottom;
}

.footer .container {
	margin-top: -1em;
	margin-bottom: -1em;
}

.footer .container h2 {
	color: unset;
}

.footer .container > h2:first-child {
	margin-top: -5.5vw;
	margin-bottom: calc(5.5vw - 1.333em);
	font-size: 1.6em;
}

/* Buttons grid */

nav.buttons ul {
	padding: 0;
	margin: 0 -1rem;
	display: flex;
	flex-wrap: wrap;
}

nav.buttons li {
	list-style: none;
	display: inline-block;
	margin: 1rem;
}

nav.buttons .button {
	width: 10.5rem;
	height: 10.5rem;
}

nav.buttons .button a {
	display: flex;
	padding: 15% 5% 5%;
	height: 80%;
	justify-content: center;
	align-items: center;
	text-align: center;
	font-size: 1.5em;
	font-weight: 700;
	background-position: center;
	background-size: contain;
	background-repeat: no-repeat;
}

nav.buttons .button a:hover {
	opacity: 0.8;
}

nav.buttons .button.turquoise a {
	background-image: url(/assets/images/button-turquoise.svg);
	color: var(--yellow-color);
}

nav.buttons .button.orange a {
	background-image: url(/assets/images/button-orange.svg);
	color: var(--turquoise-color);
}

nav.buttons .button.yellow a {
	background-image: url(/assets/images/button-yellow.svg);
	color: var(--turquoise-color);
}

nav.buttons .button.video a {
	background-image: url(/assets/images/button-video.png);
	color: #fff;
}

nav.buttons .button span {
	display: inline-block;
	vertical-align: middle;
	line-height: normal;
}

/* Popup */

.popup {
	position: fixed;
	bottom: 3vh;
	right: 3vh;
	width: 20em;
	padding: 0 1em;
	max-width: calc(100vw - 6vh);
	box-sizing: border-box;
	background-image: url(/assets/images/popup.svg);
	aspect-ratio: 840.99 / 374.98;
	container-type: inline-size;
	display: flex;
	align-items: center;
	opacity: 1;
}

.popup.hidden {
	display: none;
}

.popup a {
	color: #90201d;
	font-size: calc(1.4 * 100cqw / 18);
}

.popup a.close {
	position: absolute;
	top: 2cqw;
	right: 3cqw;
	line-height: 1;
	width: calc(1.4 * 100cqw / 18);
	text-align: center;
	font-size: calc(1.4 * 100cqw / 18);
	color: unset;
}

.popup a strong {
	color: var(--turquoise-color);
	font-weight: unset;
}
