/*
	Midland Health design tokens - shared by the blocks-2026 blocks (front end and editor)
	Sizes in rem so they scale with the browser's text size; fluid type with clamp().
	Body text: 16px on phones -> 18px on desktop. Same scale as landing-page.css.
	When theme.json arrives, its presets should point at (or replace) these values.
*/

:root {
	/* Type scale */
	--mh-fs-sm: clamp(0.875rem, 0.84rem + 0.15vw, 0.9375rem);
	--mh-fs-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
	--mh-fs-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
	--mh-fs-h4: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
	--mh-fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
	--mh-fs-h2: clamp(1.5rem, 1.2rem + 1.3vw, 2.125rem);
	--mh-fs-h1: clamp(1.875rem, 1.35rem + 2.4vw, 3rem);
	--mh-lh-body: 1.6;
	--mh-lh-heading: 1.2;

	/* Spacing */
	--mh-space-xs: 0.5rem;
	--mh-space-sm: 1rem;
	--mh-space-md: 1.5rem;
	--mh-space-lg: clamp(2rem, 1.5rem + 2vw, 3rem);
	--mh-space-xl: clamp(3rem, 2rem + 4vw, 5rem);
	--mh-gutter: clamp(1rem, 0.5rem + 2vw, 1.5rem);

	/* Sections - Padding on each side, so two sections sit twice this apart */
	--mh-section-space: clamp(1.5rem, 1rem + 2vw, 3rem);
	--mh-section-space-sm: clamp(1rem, 0.75rem + 1vw, 1.5rem);
	--mh-section-space-lg: clamp(2.5rem, 1.5rem + 3.5vw, 4.5rem);
	--mh-stack: var(--mh-space-md);

	/* Colour - Kadence global palette first, brand fallbacks */
	--mh-color-text: var(--global-palette3, #001131);
	--mh-color-accent: var(--global-palette1, #f4a582);
	--mh-color-border: color-mix(in srgb, var(--mh-color-text) 15%, transparent);
	--mh-color-surface: #f5f7f9;
	--mh-color-peach-soft: color-mix(in srgb, var(--mh-color-accent) 16%, #fff);
	--mh-color-navy: #001131;
	--mh-radius: 0.5rem;
	--mh-radius-lg: 1rem;

	/* Layout */
	--mh-content-width: 70rem;
	--mh-reading-width: 50rem;
	--mh-wide-width: 85rem;
}
