/**
 * METAPEPS design tokens and base reset.
 *
 * These :root values are STATIC FALLBACKS ONLY — the real values are
 * injected inline by inc/theme-options.php::metapeps_output_design_system_css()
 * from the Theme Options > Branding tab (Design System + Typography),
 * so every color/font declared anywhere in this theme's CSS reads a
 * var(--metapeps-*) token and never a hardcoded value. If Theme
 * Options has never been saved, these fallbacks render the theme's
 * default premium biotech palette.
 */
:root {
	/* Design System — semantic color tokens (Branding tab). */
	--metapeps-color-primary: #FC710C;
	--metapeps-color-secondary: #FFFFFF;
	--metapeps-color-dark: #1B1B1B;
	--metapeps-color-accent: #FFF6F0;
	--metapeps-color-success: #1E8E3E;
	--metapeps-color-warning: #B26A00;
	--metapeps-color-danger: #D93025;
	--metapeps-color-background: #FAFAFA;
	--metapeps-color-surface: #FFFFFF;
	--metapeps-color-border: #E8E8E8;
	--metapeps-color-text-primary: #1B1B1B;
	--metapeps-color-text-secondary: #5B5B5B;

	/* Typography (Branding tab). */
	--metapeps-font-heading: 'Manrope', sans-serif;
	--metapeps-font-body: 'Inter', sans-serif;
	--metapeps-font-button: 'Manrope', sans-serif;
	--metapeps-font-size-base: 16px;
	--metapeps-font-weight-heading: 700;
	--metapeps-font-weight-body: 400;
	--metapeps-line-height-heading: 1.2;
	--metapeps-line-height-body: 1.6;

	/* Structural tokens — not user-editable, kept alongside the
	   Design System tokens so components only ever reference var(). */
	--metapeps-radius-sm: 6px;
	--metapeps-radius-md: 12px;
	--metapeps-radius-lg: 24px;
	--metapeps-radius-pill: 999px;
	--metapeps-container-width: 1280px;
	--metapeps-header-height: 88px;
	--metapeps-shadow-sm: 0 1px 2px rgba(17, 17, 17, 0.06);
	--metapeps-shadow-md: 0 8px 24px rgba(17, 17, 17, 0.08);
	--metapeps-shadow-lg: 0 16px 48px rgba(17, 17, 17, 0.12);
	--metapeps-glass-bg: rgba(255, 255, 255, 0.72);
	--metapeps-glass-border: rgba(255, 255, 255, 0.4);
	--metapeps-glass-blur: 16px;
	--metapeps-transition-fast: 180ms cubic-bezier(0.4, 0, 0.2, 1);
	--metapeps-transition-base: 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--metapeps-font-body);
	font-size: var(--metapeps-font-size-base);
	font-weight: var(--metapeps-font-weight-body);
	line-height: var(--metapeps-line-height-body);
	color: var(--metapeps-color-text-primary);
	background: var(--metapeps-color-background);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--metapeps-font-heading);
	font-weight: var(--metapeps-font-weight-heading);
	line-height: var(--metapeps-line-height-heading);
	color: var(--metapeps-color-text-primary);
	margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

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

button {
	font-family: var(--metapeps-font-button);
	cursor: pointer;
}

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

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

.container {
	max-width: var(--metapeps-container-width);
	margin-inline: auto;
	padding-inline: 24px;
}

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

/* Visible, high-contrast focus states everywhere — WCAG 2.1 AA. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var(--metapeps-color-primary);
	outline-offset: 2px;
	border-radius: var(--metapeps-radius-sm);
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 16px;
	z-index: 100000;
	background: var(--metapeps-color-dark);
	color: #fff;
	padding: 12px 20px;
	border-radius: var(--metapeps-radius-sm);
	transition: top var(--metapeps-transition-fast);
}

.skip-link:focus {
	top: 16px;
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
