/* SPDX-FileCopyrightText: 2026 Brainpowder */
/* SPDX-License-Identifier: LicenseRef-Proprietary */

/* Look of intuicraft.de, after the game's Play palette (Dark when the browser asks for dark).
   The colors are in /css/colors.css, written by tools/build_website.gd from UiPalette. */

@font-face {
	font-family: "Nunito";
	src: url("/fonts/Nunito-VariableFont_wght.ttf") format("truetype");
	font-weight: 200 1000;
	font-display: swap;
}

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--ground);
	color: var(--text);
	font-family: "Nunito", system-ui, sans-serif;
	font-size: 1.125rem;
	line-height: 1.55;
}

a {
	color: inherit;
}

a:focus-visible,
.button:focus-visible {
	outline: 4px solid var(--focus);
	outline-offset: 4px;
}

/* Hidden parts of the contact data, so it is harder to read by machines (see build_website.gd). */
.d {
	display: none;
}

.top,
main,
footer {
	width: min(100% - 2.5rem, 70rem);
	margin-inline: auto;
}

.top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 1.25rem;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 1.5rem;
	font-weight: 800;
	text-decoration: none;
}

.brand img {
	border-radius: 10px;
}

.language {
	font-weight: 700;
}

/* Start page */

.hero {
	max-width: 46rem;
	margin: 2.5rem auto 3.5rem;
	text-align: center;
}

h1 {
	margin: 0 0 1rem;
	font-size: clamp(2.25rem, 7vw, 3.75rem);
	font-weight: 800;
	line-height: 1.1;
}

.lead {
	font-size: 1.3rem;
}

.tiles {
	display: flex;
	justify-content: center;
	gap: 0.9rem;
	margin-bottom: 2rem;
}

.tiles span {
	width: 3.5rem;
	height: 4.75rem;
	border: 4px solid var(--outline);
	border-radius: 14px;
	box-shadow: 0 6px 0 var(--outline);
	background: var(--option-1);
}

.tiles span:nth-child(2) {
	background: var(--option-2);
}

.tiles span:nth-child(3) {
	background: var(--option-3);
}

.tiles span:nth-child(4) {
	background: var(--option-4);
}

.stores {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
	margin-top: 2rem;
}

.button {
	display: inline-block;
	padding: 0.8rem 1.6rem;
	border: 4px solid var(--outline);
	border-radius: 18px;
	box-shadow: 0 6px 0 var(--outline);
	background: var(--secondary);
	color: var(--secondary-text);
	font-weight: 800;
	text-decoration: none;
}

.button.primary {
	background: var(--primary);
	color: var(--primary-text);
}

.button:active {
	transform: translateY(6px);
	box-shadow: none;
}

.shots {
	display: grid;
	grid-template-columns: repeat(3, minmax(13rem, 1fr));
	gap: 1.5rem;
	margin-bottom: 3.5rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
}

.shots figure {
	margin: 0;
	scroll-snap-align: center;
	text-align: center;
}

.shots img {
	display: block;
	width: 100%;
	height: auto;
	border: 4px solid var(--outline);
	border-radius: 24px;
}

.shots figcaption {
	margin-top: 0.75rem;
	font-weight: 700;
}

.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
	gap: 1.5rem;
}

.card {
	padding: 1.5rem 1.75rem;
	border: 4px solid var(--outline);
	border-radius: 24px;
	box-shadow: 0 8px 0 var(--outline);
	background: var(--surface);
	color: var(--surface-text);
}

.card h2 {
	margin: 0 0 0.5rem;
	font-size: 1.35rem;
	font-weight: 800;
}

.card p,
.card ul {
	margin: 0.75rem 0 0;
}

.card h2 + p,
.card h2 + ul {
	margin-top: 0;
}

/* Privacy notice and imprint */

.legal main {
	max-width: 48rem;
}

.legal h1 {
	margin-top: 1.5rem;
	font-size: clamp(2rem, 6vw, 3rem);
}

.legal .card {
	margin-bottom: 1.5rem;
}

.legal .card ul {
	padding-left: 1.25rem;
}

footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 4rem;
	padding-block: 2rem;
	border-top: 2px solid color-mix(in srgb, var(--text) 35%, transparent);
}

footer nav {
	display: flex;
	gap: 1.5rem;
	font-weight: 700;
}

footer p {
	margin: 0;
}

@media (max-width: 40rem) {
	.shots {
		grid-template-columns: repeat(3, 75%);
	}
}

@media (prefers-reduced-motion: no-preference) {
	.button {
		transition: transform 60ms, box-shadow 60ms;
	}
}
