/* ==========================================================================
   Design tokens — Clinical Calm / Editorial Trust
   ========================================================================== */

:root {
	--primary: oklch(27% 0.04 193);
	--primary-hex: #10353a;
	--primary-contrast: oklch(97% 0.01 80);
	--accent: oklch(42% 0.1 40);
	--accent-hex: #96471f;
	--accent-contrast: oklch(99% 0.005 80);
	--bg: oklch(97% 0.01 80);
	--bg-muted: oklch(93% 0.015 150);
	--ink: oklch(24% 0.035 193);
	--ink-soft: oklch(40% 0.03 193);
	--line: oklch(85% 0.02 150);

	--radius: 3px;
	--radius-feature: 28px;

	--shadow-sm: 0 1px 2px oklch(27% 0.04 193 / 0.07), 0 1px 1px oklch(27% 0.04 193 / 0.04);
	--shadow-lg: 0 24px 48px -16px oklch(27% 0.04 193 / 0.22);

	--font-display: 'Fraunces', serif;
	--font-text: 'Public Sans', sans-serif;

	--step-0: 1.125rem;
	--step-1: 1.5rem;
	--step-2: 2rem;
	--step-3: clamp(1.75rem, 1.2rem + 2.2vw, 2.667rem);
	--step-4: clamp(2.25rem, 1.4rem + 3.6vw, 3.556rem);
	--step-5: clamp(3.375rem, 2.2rem + 5vw, 4.75rem);

	--space-2xs: 0.5rem;
	--space-xs: 1rem;
	--space-sm: 1.75rem;
	--space-md: 3rem;
	--space-lg: 6rem;
	--space-xl: 10rem;

	--content-max: 1320px;
	--measure: 65ch;

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

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

html {
	scroll-behavior: smooth;
}

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

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

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

svg.icon,
.icon {
	width: 1.4em;
	height: 1.4em;
	flex: 0 0 auto;
	vertical-align: middle;
	max-width: 32px;
	max-height: 32px;
}

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-variation-settings: 'opsz' 72;
	font-weight: 500;
	line-height: 1.12;
	margin: 0 0 var(--space-sm);
	color: var(--primary-hex, var(--primary));
	text-wrap: pretty;
}

h1 { font-size: var(--step-5); line-height: 1.04; letter-spacing: -0.01em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p {
	margin: 0 0 var(--space-xs);
	max-width: var(--measure);
	text-wrap: pretty;
}

.lead {
	font-size: var(--step-1);
	font-family: var(--font-display);
	font-weight: 400;
	line-height: 1.4;
	color: var(--ink);
}

a {
	color: var(--accent-hex, var(--accent));
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

ul, ol {
	padding-left: 1.2em;
	max-width: var(--measure);
}

li + li {
	margin-top: 0.35em;
}

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

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

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	overflow: hidden;
	position: absolute;
	word-wrap: normal !important;
}

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

.wrap {
	max-width: var(--content-max);
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.eyebrow {
	font-family: var(--font-text);
	font-weight: 600;
	font-size: 0.8125rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent-hex, var(--accent));
	margin: 0 0 var(--space-2xs);
}
