/* The one stylesheet of the web pages (no external fonts or scripts; the CSP allows only this file,
   the images in /img/ and /presskit/ and the press kit's trailer). Design tokens are shared with the studio site https://endres.design. */
:root {
	--bg: #fff6ec;
	--surface: #ffffff;
	--ink: #3b2a45;
	--muted: #7a6884;
	--brand: #a64cc4;
	--accent: #18a0a8;
	--sun: #ffb648;
	--rule: #f0dcc6;
	--radius: 20px;
	--shadow: 0 10px 30px rgba(80, 40, 90, .12);
	--font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
	color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
	:root {
		--bg: #1d1724;
		--surface: #2a2133;
		--ink: #f4e9f8;
		--muted: #b9a6c4;
		--brand: #d79bf0;
		--accent: #5fd3d9;
		--rule: #3d3048;
		--shadow: 0 10px 30px rgba(0, 0, 0, .35);
	}
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font: 17px/1.6 var(--font);
	background: var(--bg);
	color: var(--ink);
	overflow-wrap: break-word;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--brand); }
h1, h2, h3 { font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
h1 { color: var(--brand); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Shared frame: header, content width, footer. */
.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 16px; }
.text .wrap { max-width: 720px; }
body > header { padding: 14px 0; }
body > header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 19px; }
.brand:hover { color: var(--brand); }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 3px 10px rgba(80, 40, 90, .18); }
body > header nav { display: flex; gap: 4px; flex-wrap: wrap; }
body > header nav a {
	color: var(--ink);
	text-decoration: none;
	font-weight: 700;
	font-size: 15px;
	padding: 6px 12px;
	border-radius: 999px;
}
body > header nav a:hover { background: var(--surface); color: var(--brand); }
body > header nav a[aria-current] { background: var(--surface); color: var(--brand); box-shadow: var(--shadow); }

body > footer { margin-top: auto; padding: 32px 0 40px; color: var(--muted); font-size: 15px; }
body > footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 8px; border-top: 2px dashed var(--rule); padding-top: 24px; }
body > footer nav a { color: var(--ink); font-weight: 700; text-decoration: none; }
body > footer nav a:hover { color: var(--brand); }
body > footer p { margin: 4px 0; }
body > footer p a { color: var(--accent); font-weight: 700; }

/* Text pages (privacy, impressum, support): the content in a surface card. */
.text main {
	width: calc(100% - 32px);
	max-width: 688px;
	margin: 8px auto 0;
	padding: 28px 22px 32px;
	background: var(--surface);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	font-size: 17px;
}
@media (min-width: 600px) {
	.text main { padding: 44px 48px 48px; font-size: 18px; }
}
.text main h1 { font-size: clamp(28px, 6vw, 38px); margin: 0 0 6px; }
.text main h2 { font-size: 22px; margin: 1.8em 0 .5em; color: var(--ink); }
.text main h2::before {
	content: "";
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-right: 10px;
	border-radius: 3px;
	background: var(--sun);
	vertical-align: .15em;
}
.text main p, .text main ul, .text main address { margin: 0 0 1em; }
.text main ul { padding-left: 1.2em; }
.text main li { margin: 6px 0; }
.text main li::marker { color: var(--brand); }
.stand { color: var(--muted); font-size: 15px; margin: 0 0 1.6em; }
address { font-style: normal; }
hr { border: 0; border-top: 2px dashed var(--rule); margin: 40px 0 8px; }

/* Landing page. */
.hero { text-align: center; padding: 32px 0 16px; }
.hero-icon {
	width: 136px;
	height: 136px;
	margin: 0 auto 20px;
	border-radius: 32px;
	box-shadow: 0 16px 40px rgba(110, 50, 170, .32);
}
.hero h1 { font-size: clamp(40px, 11vw, 64px); margin: 0; }
.subtitle { font-size: clamp(19px, 4.6vw, 24px); font-weight: 800; color: var(--accent); margin: 4px 0 14px; }
.pitch { max-width: 560px; margin: 0 auto 22px; font-size: 18px; }
.pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	border-radius: 999px;
	background: var(--sun);
	color: #3b2a45;
	font-weight: 800;
	box-shadow: 0 6px 18px rgba(255, 160, 50, .35);
}
.pill::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #3b2a45; opacity: .75; }
a.pill { text-decoration: none; }
a.pill:hover { color: #3b2a45; filter: brightness(1.06); }

.shots {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 62%;
	gap: 14px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: 24px 16px 28px;
	margin: 8px -16px 0;
	list-style: none;
	scrollbar-width: none;
}
.shots::-webkit-scrollbar { display: none; }
.shots li { scroll-snap-align: center; }
.shots img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--surface); }
@media (min-width: 760px) {
	.shots { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 8px 0 0; padding: 24px 0 28px; }
	.shots li:nth-child(even) { transform: translateY(18px); }
}

.features {
	background: var(--surface);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 28px 22px;
	margin: 24px 0 0;
}
.features h2 { margin: 0 0 16px; font-size: 26px; }
.features ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 760px) {
	.features { padding: 40px 44px; }
	.features ul { grid-template-columns: 1fr 1fr; gap: 14px 32px; }
}
.features li { position: relative; padding-left: 30px; }
.features li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .35em;
	width: 16px;
	height: 16px;
	border-radius: 5px;
	background: var(--brand);
}
.features li:nth-child(3n+2)::before { background: var(--accent); }
.features li:nth-child(3n)::before { background: var(--sun); }
.features .note { margin: 18px 0 0; color: var(--muted); font-size: 15px; }

.english { padding: 32px 0 0; }
.english h2 { font-size: 24px; margin: 0 0 8px; }
.english p { margin: 0 0 10px; max-width: 720px; }

/* Press kit (/presskit): a wider card, the fact table, picture grids and the trailer. */
.press main { max-width: 880px; }
.facts { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: 16px; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--rule); }
.facts th { white-space: nowrap; font-weight: 700; color: var(--muted); }
.kit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 18px 14px; margin: 0 0 1em; }
.kit-art { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.kit-grid figure { margin: 0; }
.kit-grid img { width: 100%; border-radius: 14px; box-shadow: var(--shadow); background: var(--bg); }
.kit-grid figcaption { margin-top: 8px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.trailer { display: block; width: 100%; height: auto; margin: 0 0 12px; border-radius: var(--radius); box-shadow: var(--shadow); background: #000; }
