:root {
	--red: #D30505;
	--dark: #000000;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: "Exo 2", system-ui, "Segoe UI", sans-serif;
	color: #fff;
	background: var(--dark);
}

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

.site-footer {
	background: #000;
	padding: 25px 2.1rem;
	text-align: center;
}

.site-footer p {
	margin: 0;
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: 0.03em;
	color: #fff;
}

header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 10;
	padding: 1.5rem clamp(4.68rem, 14.04vw, 11.7rem);
	background: transparent;
}

.container {
	position: relative;
	min-height: 100vh;
	padding: 2rem clamp(4.68rem, 14.04vw, 11.7rem);
	display: flex;
	flex-direction: column;
	background-image:
		linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.9)),
		url("/static/img/MX2START-MOTOCROSS-GP-7-LV-2018.jpg");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* nav */

.nav {
	display: flex;
	align-items: center;
	gap: 2.5rem;
	flex-wrap: wrap;
}

.nav__logo {
	display: block;
}

.nav__logo img {
	display: block;
	height: 64px;
	width: auto;
}

.nav__links {
	list-style: none;
	display: flex;
	gap: 1.75rem;
	margin: 0;
	padding: 0;
	margin-left: 3rem;
	flex: 1;
}

.nav__links a {
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.nav__links a:hover {
	color: var(--red);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}

.nav__icons {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.nav__icons > a > img {
	display: block;
	filter: brightness(0) invert(1);
}

.nav__lang-switch {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.nav__lang img {
	display: block;
	border-radius: 2px;
}

/* hero content */

.hero__content {
	margin-top: auto;
	margin-bottom: auto;
	max-width: 40rem;
}

.hero__content h1 {
	font-size: 90px;
	line-height: 1.02;
	font-weight: 700;
	letter-spacing: 0.01em;
	margin: 0 0 1.25rem;
	text-transform: uppercase;
}

.hero__location {
	display: flex;
	font-weight: 700;
	font-size: 1.1rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	margin: 0 0 1.5rem;
}

.hero__location a {
	display: flex;
	align-items: center;
	font-size: 35px;
	font-weight: 700;
	gap: 0.5rem;
}

.button {
	display: inline-block;
	padding: 15px 55px;
	background: var(--red);
	border: 3px solid transparent;
	font-weight: 800;
	font-size: 20px;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	border-radius: 8px;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.button:hover {
	background: #fff;
	border-color: var(--red);
	color: var(--red);
}

.button--primary {
	margin-bottom: 2rem;
}

.hero__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
}

/* countdown */

.countdown {
	display: inline-block;
	background: #000;
	border-radius: 6px;
	padding: 1rem 3rem;
}

.countdown__label {
	margin: 0 0 0.75rem;
	font-weight: 700;
	font-size: 40px;
	text-transform: uppercase;
}

.countdown__timer {
	display: flex;
	gap: 40px;
}

.countdown__timer div {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.countdown__timer span {
	font-size: 40px;
	font-weight: 700;
	line-height: 1;
}

.countdown__timer .countdown__expired {
	font-size: 28px;
	font-weight: 500;
	line-height: 1;
}

.countdown__timer small {
	margin-top: 0.25rem;
	font-size: 0.65rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #aaa;
}

/* tablet: same layout, tightened up */
@media (max-width: 1024px) {
	header {
		padding: 1.25rem 2.5rem;
	}

	.container {
		padding: 1.5rem 2.5rem;
	}

	.nav {
		gap: 1.5rem;
	}

	.nav__links {
		gap: 1.1rem;
	}

	.hero__content {
		max-width: 32rem;
	}

	.hero__content h1 {
		font-size: clamp(2.25rem, 6vw, 3.5rem);
		margin-bottom: 1rem;
	}

	.hero__location {
		font-size: 1rem;
		margin-bottom: 1.15rem;
	}

	.button {
		padding: 0.75rem 1.4rem;
		font-size: 0.85rem;
	}

	.countdown {
		padding: 0.85rem 1.15rem;
	}

	.countdown__timer {
		gap: 1.1rem;
	}

	.countdown__timer span {
		font-size: 1.5rem;
	}
}

/* mobile: stack and center everything */
@media (max-width: 640px) {
	header {
		padding: 1.25rem 1.5rem;
	}

	.container {
		padding: 1.25rem 1.5rem 2rem;
	}

	.nav {
		justify-content: center;
		text-align: center;
		gap: 1rem;
	}

	.nav__logo {
		flex-basis: 100%;
		display: flex;
		justify-content: center;
	}

	.nav__logo img {
		height: 48px;
	}

	.nav__links {
		order: 3;
		flex-basis: 100%;
		justify-content: center;
		gap: 0.85rem 1rem;
		flex-wrap: wrap;
	}

	.nav__icons {
		justify-content: center;
	}

	.hero__content {
		max-width: none;
		width: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.hero__content h1 {
		font-size: clamp(2rem, 10vw, 2.75rem);
	}

	.hero__location {
		justify-content: center;
	}

	.hero__bottom {
		flex-direction: column;
		width: 100%;
	}

	.button {
		width: 100%;
		text-align: center;
	}

	.countdown {
		display: block;
		width: 100%;
	}

	.countdown__label {
		font-size: 1.1rem;
		text-align: center;
	}

	.countdown__timer {
		justify-content: center;
		gap: 1rem;
	}
}
