/* ===== Design tokens ===================================================
   Editorial Authority: tinten-blau + papier-weiß + messing accent.
   Overridden at runtime by Customizer colors via an inline <style> in
   wp_head (priority 20, after this stylesheet) so source order always
   lets the theme-mod values win. */

:root {
	--primary: #10192e;
	--bg: #f7f5f0;
	--accent: #9c7a3c;
	--text: #1c1f26;
	--text-muted: #5b5e68;
	--surface: #ffffff;
	--border: #e4ddd0;
	--radius: 2px;

	--font-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
	--font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	--text-xs: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
	--text-sm: clamp(0.9375rem, 0.9rem + 0.15vw, 1rem);
	--text-base: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
	--text-md: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);
	--text-lg: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
	--text-xl: clamp(2.25rem, 1.8rem + 1.8vw, 3.25rem);
	--text-hero: clamp(3.375rem, 2.4rem + 4vw, 4.75rem);

	--space-xs: 0.5rem;
	--space-sm: 1rem;
	--space-md: 1.5rem;
	--space-lg: clamp(2.5rem, 2rem + 2vw, 4rem);
	--space-xl: clamp(4rem, 3rem + 4vw, 7rem);
	--space-2xl: clamp(6rem, 4.5rem + 6vw, 10rem);

	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--dur-fast: 180ms;
	--dur-base: 260ms;

	--container: 1280px;
}

/* ===== Reset ============================================================ */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	overflow-x: hidden;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: var(--text-base);
	line-height: 1.6;
	font-variant-numeric: tabular-nums;
	text-wrap: pretty;
	overflow-x: hidden;
}

img,
video,
iframe {
	max-width: 100%;
	height: auto;
	display: block;
}

svg {
	max-width: 100%;
	height: auto;
}

/* Hard cap — any .icon stays small no matter what wraps it. */
.icon {
	width: 1.4em;
	height: 1.4em;
	max-width: 32px;
	max-height: 32px;
	flex: 0 0 auto;
	vertical-align: middle;
}

a {
	color: inherit;
	text-decoration: none;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

h1,
h2,
h3,
h4 {
	font-family: var(--font-display);
	font-weight: 500;
	line-height: 1.12;
	margin: 0 0 0.5em;
	text-wrap: pretty;
	color: var(--primary);
}

h1 {
	font-size: var(--text-hero);
	font-weight: 500;
	letter-spacing: -0.01em;
}

h2 {
	font-size: var(--text-xl);
}

h3 {
	font-size: var(--text-md);
	font-weight: 600;
	font-family: var(--font-body);
}

p {
	margin: 0 0 1em;
	max-width: 65ch;
}

.eyebrow {
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--accent);
	margin: 0 0 1em;
	position: relative;
	padding-bottom: 0.6em;
}

.eyebrow::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 2.5rem;
	height: 1px;
	background: var(--accent);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: -999px;
	top: 0;
	z-index: 10000;
	background: var(--primary);
	color: #fff;
	padding: 0.75rem 1.25rem;
	border-radius: var(--radius);
}

.skip-link:focus {
	left: var(--space-sm);
	top: var(--space-sm);
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

/* ===== Buttons =========================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: var(--text-sm);
	padding: 0.95rem 1.6rem;
	border-radius: var(--radius);
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
	min-height: 44px;
}

.btn .icon {
	width: 1.1em;
	height: 1.1em;
}

.btn--primary {
	background: var(--primary);
	color: #fff;
}

.btn--primary:hover {
	box-shadow: 0 10px 24px -12px rgb(16 25 46 / 45%);
	transform: translateY(-1px);
}

.btn--primary:active {
	transform: scale(0.98);
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 600;
	font-size: var(--text-sm);
	color: var(--primary);
	border-bottom: 1px solid var(--accent);
	padding-bottom: 0.15rem;
	transition: gap var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.text-link .icon {
	width: 1em;
	height: 1em;
	transition: transform var(--dur-fast) var(--ease-out);
}

.text-link:hover {
	gap: 0.65rem;
	color: var(--accent);
}

.text-link:active .icon {
	transform: scale(0.9);
}

/* ===== Scroll reveal (transform-only — never opacity:0) ==================
   Headless renderers that capture the page before JS runs would show a
   blank page if the start state used opacity:0, so the resting state is
   already fully visible; JS only adds a small translate+ease on scroll-in. */

[data-reveal] {
	transform: translateY(14px);
	transition: transform 640ms var(--ease-out);
}

[data-reveal].is-revealed {
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	[data-reveal] {
		transform: none !important;
		transition: none !important;
	}

	* {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
	}
}
