/* Token defaults live in tokens.css; this file is document chrome only. */

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

html {
	overflow-x: clip;
	overflow-anchor: none;
}

body.yepx {
	margin: 0;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: var(--yepx-type);
	line-height: var(--yepx-lh);
	color: var(--yepx-color-text);
	background: var(--yepx-color-background);
}

h1:not(.has-text-color),
.yepx-slider__title {
	font-size: var(--yepx-h1);
	line-height: 1.12;
	font-weight: 800;
	letter-spacing: 0;
	color: var(--yepx-color-heading);
	max-width: 22ch;
}

h2:not(.has-text-color),
.wp-block-heading:not(.has-text-color) {
	font-size: var(--yepx-h2);
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--yepx-color-heading);
}

h2.has-text-color,
.wp-block-heading.has-text-color {
	font-size: var(--yepx-h2);
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: -0.02em;
}

h3:not(.has-text-color) {
	font-size: var(--yepx-h3);
	line-height: 1.3;
	font-weight: 700;
	color: var(--yepx-color-heading);
}

.yepx-px__copy h3 {
	font-size: var(--yepx-h3-panel);
}

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

a {
	color: var(--yepx-color-dark);
}

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

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

.skip-link:focus {
	clip: auto;
	height: auto;
	width: auto;
	position: absolute;
	z-index: var(--yepx-z-skip);
	left: 0.75rem;
	top: 0.75rem;
	padding: 0.5rem 0.75rem;
	background: var(--yepx-color-surface);
	min-height: 44px;
}

.site-main {
	width: min(var(--yepx-wide), calc(100% - (var(--yepx-gutter) * 2)));
	margin-inline: auto;
	padding-block: var(--yepx-space);
	min-width: 0;
	max-width: 100%;
}

.yepx-preview,
.yepx-front {
	min-width: 0;
	max-width: 100%;
}

body.yepx-preview-front .site-main {
	width: min(var(--yepx-wide), calc(100% - (var(--yepx-gutter) * 2)));
}

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