:root {
	--spacing__base: clamp( 15px, calc( 8.75px + 1.953125vw ), 40px );
}

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

body {
	margin: 0;
	padding: var( --spacing__base );
	font-family: 'Roboto', Arial, sans-serif;
	font-size: clamp( 14px, calc( 13.5px + 0.15625vw ), 16px );
	line-height: 1.6;
	color: #293038;
	background: url('../img/teslapoint-bg.jpg') no-repeat center center/cover;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	min-height: 100dvh;
}

.language-switcher {
	top: 0;
	right: 0;
	position: absolute;
	z-index: 2;
	padding: .25em;
	font-size: clamp( 12px, calc( 12px + 0.25vw ), 16px );
	box-shadow: 0 0 0 1px rgba( 255, 255, 255, 0.25 );
	backdrop-filter: blur( 10px );
	border-radius: 0 10px 0 10px;
}
.language-switcher ul {
	display: flex;
	gap: .25em;
	list-style: none;
	margin: 0;
	padding: 0;
}
.language-switcher li {
	display: flex;
	gap: .25em;
}

.language-switcher li:not(:last-child)::after {
	content: "|";
}

.language-switcher a {
	display: block;
	padding: 0 0.25em;
	text-decoration: none;
}

.language-switcher .current {
	font-weight: 600;
}

.content-box {
	position: relative;
	max-width: 600px;
	padding: var( --spacing__base );
	background: linear-gradient( 180deg, rgba( 255, 255, 255, 0 ) 0%, rgba( 255, 255, 255, 0.75 ) 100% );
	box-shadow: 0 0 0 1px rgba( 255, 255, 255, 0.25 );
	border-radius: 10px;
	backdrop-filter: blur( 10px );
}

.logo {
	display: block;
	width: 120px;
	aspect-ratio: 1.2 / 1;
	height: auto;
	margin: 0 auto var( --spacing__base ) auto;
}

h2 {
	font-size: clamp( 20px, calc( 19.5px + 0.15625vw ), 22px );
	margin: 1.5em 0 .75em;
}

p {
	margin: 0 0 1.25em;

	&:last-child {
		margin-bottom: 0;
	}
}

a {
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: .156em;

	&:hover {
		text-decoration: none;
	}
}

.font-size-m {
	line-height: 1.4;
	font-size: clamp( 16px, calc( 15.5px + 0.15625vw ), 18px );
	letter-spacing: -0.015625em;
}

.center {
	text-align: center;
}

.uppercase {
	text-transform: uppercase;
}

.button {
	display: inline-flex;
	padding: .5em 1em;
	color: #FFF;
	text-decoration: none;
	background-color: #50647C;
	border-radius: 5px;
	transition: background-color 160ms ease-in-out;
}
.button:hover {
	background-color: #293038;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal;
}
