/* ==========================================================================
   Design Tokens — Klinische Klarheit (Petrol/Terrakotta)
   ========================================================================== */

:root {
	--primary: oklch(32% 0.045 192);
	--primary-dark: oklch(24% 0.045 192);
	--primary-contrast: oklch(97% 0.01 80);
	--bg: oklch(97% 0.01 80);
	--surface: oklch(99% 0.004 80);
	--accent: oklch(58% 0.09 40);
	--accent-soft: oklch(92% 0.025 45);
	--text: oklch(22% 0.01 192);
	--text-muted: oklch(42% 0.02 192);
	--line: oklch(85% 0.015 90);
	--radius: 4px;
	--space-unit: 0.5rem;

	--space-xs: 1.5rem;
	--space-sm: 4rem;
	--space-md: 6rem;
	--space-lg: 8rem;
	--space-xl: 10rem;

	--font-display: "Fraunces", "Source Serif 4", Georgia, serif;
	--font-body: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;

	--text-xs: 0.875rem;
	--text-sm: 1rem;
	--text-base: 1.125rem;
	--text-lg: 1.25rem;
	--text-xl: 1.6rem;
	--text-2xl: clamp(1.75rem, 1.4rem + 1.5vw, 2.4rem);
	--text-3xl: clamp(2.1rem, 1.6rem + 2.2vw, 3.2rem);
	--text-4xl: clamp(2.6rem, 1.8rem + 3.6vw, 4.75rem);

	--max-width: 1280px;
	--ease-out: cubic-bezier(0.16, 0.84, 0.44, 1);
	--dur-fast: 180ms;
	--dur-base: 260ms;
}

/* theme-mod overrides land here via wp_head (inc/customizer.php) */
:root {
	--primary: var(--primary-hex, oklch(32% 0.045 192));
	--accent: var(--accent-hex, oklch(58% 0.09 40));
}

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

html {
	scroll-behavior: smooth;
	overflow-x: hidden;
}

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: var(--text-base);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

body.mobile-drawer-open {
	overflow: hidden;
}

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

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

.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 {
	margin: 0;
	padding: 0;
	list-style: none;
}

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

h1 { font-size: var(--text-4xl); font-weight: 500; }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); }

p {
	margin: 0 0 1.1em;
	text-wrap: pretty;
}

.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 1rem;
	padding-bottom: 0.9rem;
	border-bottom: 1px solid var(--line);
	display: inline-block;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--primary);
	color: var(--primary-contrast);
	padding: 1rem 1.5rem;
	z-index: 1000;
}

.skip-link:focus {
	left: 1rem;
	top: 1rem;
}

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

::selection {
	background: var(--accent-soft);
	color: var(--primary-dark);
}
