:root {
	--emd-color-brand-red: var(--wp--preset--color--brand-red);
	--emd-color-brand-red-hover: var(--wp--preset--color--brand-red-hover);
	--emd-color-brand-black: var(--wp--preset--color--brand-black);
	--emd-color-surface-dark: var(--wp--preset--color--surface-dark);
	--emd-color-surface-card: var(--wp--preset--color--surface-card);
	--emd-color-text-primary: var(--wp--preset--color--text-primary);
	--emd-color-text-muted: var(--wp--preset--color--text-muted);
	--emd-color-line-soft: var(--wp--preset--color--line-soft);
	--emd-color-surface-soft: var(--wp--preset--color--surface-soft);
	--emd-color-brand-gold: var(--wp--preset--color--brand-gold);
	--emd-font-body: var(--wp--preset--font-family--body);
	--emd-font-heading: var(--wp--preset--font-family--heading);
	--emd-size-caption: var(--wp--preset--font-size--caption);
	--emd-size-small: var(--wp--preset--font-size--small);
	--emd-size-body: var(--wp--preset--font-size--body);
	--emd-size-lead: var(--wp--preset--font-size--lead);
	--emd-size-h4: var(--wp--preset--font-size--h-4);
	--emd-size-h3: var(--wp--preset--font-size--h-3);
	--emd-size-h2: var(--wp--preset--font-size--h-2);
	--emd-size-h1: var(--wp--preset--font-size--h-1);
	--emd-size-display: var(--wp--preset--font-size--display);
	--emd-space-2xs: var(--wp--preset--spacing--2-xs);
	--emd-space-xs: var(--wp--preset--spacing--xs);
	--emd-space-sm: var(--wp--preset--spacing--sm);
	--emd-space-md: var(--wp--preset--spacing--md);
	--emd-space-lg: var(--wp--preset--spacing--lg);
	--emd-space-xl: var(--wp--preset--spacing--xl);
	--emd-space-2xl: var(--wp--preset--spacing--2-xl);
	--emd-space-3xl: var(--wp--preset--spacing--3-xl);
	--emd-space-4xl: var(--wp--preset--spacing--4-xl);
	--emd-layout-shell: var(--wp--custom--layout--shell);
	--emd-layout-content: var(--wp--custom--layout--content);
	--emd-layout-wide: var(--wp--custom--layout--wide);
	--emd-layout-narrow: var(--wp--custom--layout--narrow);
	--emd-radius-sm: var(--wp--custom--radius--sm);
	--emd-radius-md: var(--wp--custom--radius--md);
	--emd-radius-lg: var(--wp--custom--radius--lg);
	--emd-radius-pill: var(--wp--custom--radius--pill);
	--emd-shadow-soft: var(--wp--preset--shadow--soft);
	--emd-shadow-elevated: var(--wp--preset--shadow--elevated);
	--emd-shadow-brand: var(--wp--preset--shadow--brand);
	--emd-transition-base: var(--wp--custom--transition--base);
	--emd-transition-slow: var(--wp--custom--transition--slow);
	--emd-z-header: var(--wp--custom--z-index--header);
	--emd-z-overlay: var(--wp--custom--z-index--overlay);
	--emd-header-offset: 5.15rem;
}

@media (max-width: 640px) {
	:root {
		--emd-header-offset: 6.25rem;
	}
}

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

html {
	scroll-behavior: smooth;
}

body {
	background: var(--emd-color-surface-dark);
	color: var(--emd-color-text-primary);
	font-family: var(--emd-font-body);
	font-size: var(--emd-size-body);
	line-height: 1.6;
	margin: 0;
	overflow-x: hidden;
}

body.admin-bar .site-header {
	top: var(--wp-admin--admin-bar--height, 0);
}

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

a {
	color: inherit;
	text-decoration: none;
	text-underline-offset: var(--emd-space-2xs);
	transition: color var(--emd-transition-base);
}

a:hover,
a:focus-visible {
	color: var(--emd-color-brand-red-hover);
}

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--emd-color-brand-red-hover);
	outline-offset: var(--emd-space-2xs);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--emd-color-text-primary);
	font-family: var(--emd-font-heading);
	font-weight: 900;
	letter-spacing: 0;
	line-height: 1.1;
	margin-block: 0;
}

p {
	margin-block: 0;
}

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

.screen-reader-text:focus,
.skip-link:focus {
	background: var(--emd-color-brand-red);
	clip: auto;
	clip-path: none;
	color: var(--emd-color-text-primary);
	height: auto;
	inset-inline-start: var(--emd-space-md);
	padding: var(--emd-space-sm) var(--emd-space-md);
	top: var(--emd-space-md);
	width: auto;
	z-index: var(--emd-z-overlay);
}
