/* Pre-launch landing page for tandler.app (design: "T4 · nur Anmelden", without the form).
   Static on GitHub Pages until the app is deployed; delete site/ and pages.yml then. */

@font-face {
	font-family: "Bricolage Grotesque";
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url("/fonts/bricolage-grotesque-800-latin.woff2") format("woff2");
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("/fonts/inter-latin.woff2") format("woff2");
}

:root {
	--paper: #ffffff;
	--ink: #231f1c;
	--body: #3d3632;
	--muted: #5c524b;
	--accent: #c8441f;
	--link: #a63a17;
	--link-hover: #7a2a10;
	--card: #f5f3f1;
	--rule: #efebe7;
	--display: "Bricolage Grotesque", system-ui, sans-serif;
	--text: "Inter", system-ui, sans-serif;
	--gutter: clamp(16px, 4vw, 48px);
	/* Vertical rhythm follows the window height, so the page fits a laptop screen without scrolling. */
	--space-s: clamp(8px, 2vh, 20px);
	--space-m: clamp(16px, 5vh, 64px);
	--space-l: clamp(16px, 5vh, 72px);
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--text);
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--link);
}

a:hover {
	color: var(--link-hover);
}

.site-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: var(--space-s) var(--gutter);
}

.wordmark {
	font-family: var(--display);
	font-weight: 800;
	font-size: 28px;
	letter-spacing: -0.03em;
	color: var(--ink);
	text-decoration: none;
}

.language {
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	padding: 10px 4px;
}

main {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0 16px var(--space-m);
}

.hero-tag {
	height: clamp(110px, 23vh, 280px);
	width: auto;
	aspect-ratio: 64 / 120;
	margin-top: calc(var(--space-s) * -1);
	overflow: visible;
}

.intro {
	max-width: 720px;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: var(--space-s);
	margin-top: 8px;
}

.intro p {
	margin: 0;
}

h1 {
	margin: 0;
	font-family: var(--display);
	font-weight: 800;
	font-size: clamp(44px, min(10vw, 11vh), 112px);
	line-height: 0.95;
	letter-spacing: -0.04em;
}

.tagline {
	font-family: var(--display);
	font-weight: 800;
	font-size: clamp(22px, 3vw, 30px);
	line-height: 1.2;
	color: var(--accent);
}

.lead {
	font-size: 18px;
	line-height: 1.6;
	color: var(--body);
	max-width: 560px;
}

.note {
	font-size: 14px;
	color: var(--muted);
	border-top: 1px solid var(--rule);
	padding-top: var(--space-s);
	width: 100%;
	max-width: 480px;
}

.traits {
	list-style: none;
	margin: var(--space-l) 0 0;
	padding: 0;
	width: 100%;
	max-width: 960px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
}

.traits li {
	background: var(--card);
	border-radius: 20px;
	padding: var(--space-s) 20px;
	display: flex;
	gap: 14px;
	align-items: center;
}

.traits svg {
	flex-shrink: 0;
}

.traits p {
	margin: 0;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
}

.site-footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	padding: var(--space-s) var(--gutter);
	border-top: 1px solid var(--rule);
	font-size: 14px;
	color: var(--muted);
}

/* Imprint and privacy: a plain reading column. */
.legal {
	align-items: stretch;
	width: 100%;
	max-width: 720px;
	margin: 0 auto;
	padding-top: 24px;
	font-size: 16px;
	line-height: 1.6;
	color: var(--body);
}

.legal h1 {
	font-size: clamp(40px, 7vw, 64px);
	color: var(--ink);
}

.legal h2 {
	margin: 40px 0 8px;
	font-family: var(--display);
	font-weight: 800;
	font-size: 24px;
	letter-spacing: -0.02em;
	color: var(--ink);
}

.legal p {
	margin: 8px 0 0;
}

.legal dl {
	display: grid;
	grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
	gap: 8px 24px;
	margin: 24px 0 0;
}

.legal dt {
	font-weight: 600;
	color: var(--ink);
}

.legal dd {
	margin: 0;
}

@media (max-width: 560px) {
	.legal dl {
		grid-template-columns: minmax(0, 1fr);
		gap: 2px;
	}

	.legal dd {
		margin-bottom: 12px;
	}
}

/* The Etikett: tag body in the accent, string and face in ink. */
.tag-body {
	fill: var(--accent);
	stroke: var(--accent);
}

/* Hero: the tag drops in on its string, settles, then sways, blinks and glances. */
.tag-swing {
	transform-box: view-box;
	transform-origin: 32px 0;
	animation: tag-swing 3.4s ease-in-out 1.1s infinite alternate both;
}

.tag-string {
	transform-box: view-box;
	transform-origin: 32px 0;
	animation: tag-string 1.1s cubic-bezier(0.33, 0, 0.4, 1) both;
}

.tag-drop {
	animation: tag-drop 1.1s cubic-bezier(0.33, 0, 0.4, 1) both;
}

.tag-eyes {
	transform-box: fill-box;
	transform-origin: center;
	animation: tag-blink 4.6s 1.8s infinite;
}

.tag-look {
	animation: tag-look 8s 2.4s infinite ease-in-out;
}

/* Trait icons: the looker blinks, the admirer's hearts beat, the sold tag hops in confetti. */
.eye {
	transform-box: fill-box;
	transform-origin: center;
	animation: tag-blink 5.2s 0.8s infinite;
}

.heart {
	transform-box: fill-box;
	transform-origin: center;
	animation: tag-pulse 0.9s ease-in-out infinite;
}

.sparkle {
	transform-box: fill-box;
	transform-origin: center;
	animation: tag-twinkle 1.6s ease-in-out infinite;
}

.hop {
	overflow: visible;
	animation: tag-hop 1.9s ease-in-out infinite;
}

.confetti {
	transform-box: fill-box;
	transform-origin: center;
	animation: tag-confetti 1.9s ease-in-out infinite;
}

@keyframes tag-drop {
	0% {
		transform: translateY(-56px);
		opacity: 0;
	}
	12% {
		opacity: 1;
	}
	50% {
		transform: translateY(6px);
	}
	68% {
		transform: translateY(-4px);
	}
	84% {
		transform: translateY(2px);
	}
	100% {
		transform: translateY(0);
	}
}

@keyframes tag-string {
	0% {
		transform: scaleY(0.034);
	}
	50% {
		transform: scaleY(1.103);
	}
	68% {
		transform: scaleY(0.931);
	}
	84% {
		transform: scaleY(1.034);
	}
	100% {
		transform: scaleY(1);
	}
}

@keyframes tag-swing {
	from {
		transform: rotate(5deg);
	}
	to {
		transform: rotate(-4deg);
	}
}

@keyframes tag-blink {
	0%,
	93%,
	100% {
		transform: scaleY(1);
	}
	96% {
		transform: scaleY(0.1);
	}
}

@keyframes tag-look {
	0%,
	35%,
	100% {
		transform: translate(0, 0);
	}
	45%,
	65% {
		transform: translate(-3px, -3px);
	}
	75% {
		transform: translate(0, 0);
	}
}

@keyframes tag-pulse {
	0%,
	100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.25);
	}
}

@keyframes tag-twinkle {
	0%,
	100% {
		opacity: 1;
		transform: scale(1);
	}
	50% {
		opacity: 0.3;
		transform: scale(0.6);
	}
}

@keyframes tag-hop {
	0%,
	60%,
	100% {
		transform: translateY(0);
	}
	20% {
		transform: translateY(-10px);
	}
	32% {
		transform: translateY(0);
	}
	42% {
		transform: translateY(-4px);
	}
	52% {
		transform: translateY(0);
	}
}

@keyframes tag-confetti {
	0%,
	100% {
		transform: translateY(-3px) rotate(0);
	}
	50% {
		transform: translateY(3px) rotate(90deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.tag-swing,
	.tag-string,
	.tag-drop,
	.tag-eyes,
	.tag-look,
	.eye,
	.heart,
	.sparkle,
	.hop,
	.confetti {
		animation: none !important;
	}
}
