:root {
	/* Keep the footer artwork at its full desktop scale until the same
	 * breakpoint where the social links switch to the vertical layout. */
	--footer-art-unit: 1px;
	--biomecanico-text: #f2f2f2;
	--biomecanico-panel: rgba(85, 135, 161, 0.54);
	--biomecanico-card: rgba(5, 20, 29, 0.88);
}

*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; }
body {
	min-height: 100vh;
	margin: 0;
	color: var(--biomecanico-text);
	background: #164459 url("../images/body_bg.jpg") repeat 50% 25%;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.6);
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.screen-reader-text:focus {
	clip: auto;
	width: auto;
	height: auto;
	left: 1rem;
	top: 1rem;
	z-index: 10000;
	padding: 0.75rem 1rem;
	background: #fff;
	color: #111;
}
.site-header {
	position: relative;
	z-index: 20;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 2rem;
	padding: 15px 20px 0;
}
.site-branding { width: min(302px, 85vw); }
.custom-logo-link, .default-logo { display: block; }
.custom-logo { display: block; max-height: 90px; width: auto; }
.primary-navigation ul,
.footer-navigation ul {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.primary-navigation a,
.footer-navigation a {
	display: inline-block;
	padding: 0.4rem 0.6rem;
	background: rgba(0, 0, 0, 0.35);
	border-radius: 4px;
	text-decoration: none;
}
.primary-navigation a:hover,
.primary-navigation a:focus-visible,
.footer-navigation a:hover,
.footer-navigation a:focus-visible { background: rgba(0, 0, 0, 0.7); }
.cloud-viewport {
	position: fixed;
	inset: 0;
	z-index: 8;
	overflow: hidden;
	pointer-events: none;
}
.cloud-world {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 512px;
	height: 512px;
	margin: -256px 0 0 -256px;
	transform-style: preserve-3d;
}
.cloud-base {
	position: absolute;
	left: 256px;
	top: 256px;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	transform-style: preserve-3d;
}
.cloud-layer {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 256px;
	height: 256px;
	max-width: none;
	object-fit: contain;
	margin: -128px 0 0 -128px;
	opacity: 0.5;
	transition: opacity 0.5s ease-out;
	transform-style: preserve-3d;
}
.social-links {
	position: relative;
	z-index: 20;
	width: 120px;
	margin: 10px 0 360px 22px;
	padding: 29px 15px 20px;
	background: var(--biomecanico-panel);
	border-radius: 5px;
	text-align: center;
}
.social-link { display: block; }
.social-link:not(:last-child) { margin-bottom: 35px; }
.social-link:hover, .social-link:focus-visible { opacity: 0.7; }
.site-main { position: relative; z-index: 10; }
.content-shell {
	width: min(900px, calc(100% - 40px));
	margin: 4rem auto 360px;
}
.content-card {
	margin-bottom: 2rem;
	padding: clamp(1.25rem, 4vw, 2.5rem);
	background: var(--biomecanico-card);
	border-radius: 6px;
}
.entry-title { margin-top: 0; line-height: 1.2; }
.entry-title a { text-decoration: none; }
.entry-meta { opacity: 0.75; }
.featured-image { margin-bottom: 1.5rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }
.site-footer { position: relative; z-index: 5; isolation: isolate; }
.footer-art {
	position: fixed;
	z-index: 5;
	left: 0;
	right: 0;
	bottom: 0;
	height: calc(323 * var(--footer-art-unit));
	pointer-events: none;
}
.traktor {
	position: absolute;
	right: 48%;
	bottom: calc(-20 * var(--footer-art-unit));
	width: calc(552 * var(--footer-art-unit));
	height: calc(231 * var(--footer-art-unit));
	margin-right: calc(-276 * var(--footer-art-unit));
	background: url("../images/traktor.png") no-repeat 0 0 / 100% 100%;
	z-index: 3;
}
.footer-image {
	position: absolute;
	left: 0;
	right: 0;
	bottom: calc(135 * var(--footer-art-unit));
	height: calc(188 * var(--footer-art-unit));
	background-image: url("../images/footer_bg.png");
	background-repeat: repeat-x;
	background-position: 48% 0;
	background-size: calc(2600 * var(--footer-art-unit)) calc(188 * var(--footer-art-unit));
	z-index: 1;
}
.footer-solid {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: calc(135 * var(--footer-art-unit));
	background: #000;
	z-index: 1;
}
.footer-navigation {
	position: relative;
	z-index: 2;
	width: min(900px, calc(100% - 40px));
	margin: 0 auto;
	padding-bottom: 2rem;
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
@media (max-width: 700px) {
	:root {
		/* Double the complete footer artwork on mobile while preserving
		 * the shared scale, centering, and proportions of every piece. */
		--footer-art-unit: clamp(0.84px, 0.1388888888vw, 2px);
	}

	.site-header { display: block; padding-inline: 12px; }
	.site-branding { margin: 0 auto; }
	.primary-navigation { margin-top: 0.75rem; }
	.primary-navigation ul { justify-content: center; }
	.social-links {
		display: block;
		width: 88%;
		max-width: 560px;
		margin: 30px auto 360px;
		padding: 28px 16px 30px;
	}
	.social-link { display: block; }
	.social-link:not(:last-child) { margin-bottom: 24px; }
	.social-link img {
		display: block;
		width: 108px;
		height: auto;
		margin: 0 auto;
	}
	.traktor { right: 50%; }
}


/* Mobile full-screen experience. The homepage is a single interactive scene. */
@media (max-width: 700px) {
	html:has(body.biomecanico-home),
	body.biomecanico-home {
		width: 100%;
		height: 100%;
		min-height: 100%;
		overflow: hidden;
		overscroll-behavior: none;
		touch-action: none;
	}
	body.biomecanico-home {
		position: fixed;
		inset: 0;
		min-height: 100svh;
		height: 100dvh;
	}
	body.biomecanico-home .cloud-viewport {
		height: 100dvh;
		width: 100vw;
		min-height: 100svh;
		touch-action: none;
	}
	body.biomecanico-home .social-links,
	body.biomecanico-home .social-link {
		pointer-events: auto;
		touch-action: manipulation;
	}
	body.biomecanico-home .site-header {
		padding-top: max(12px, env(safe-area-inset-top));
	}
	body.biomecanico-home .footer-art {
		bottom: env(safe-area-inset-bottom);
	}
}
