/* Preliminary foundation tokens; refine against the approved reference later. */
:root {
	--color-navy: #102b4a;
	--color-orange: #f77b12;
	--color-white: #fff;
	--color-milk: #f8f7f4;
	--color-neutral: #eef1f4;
	--color-text: var(--color-navy);
	--color-background: var(--color-white);
	--color-border: #d8dfe6;
	--font-family-base: "Onest", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--font-size-base: 1rem;
	--font-size-small: 0.875rem;
	--font-size-heading: clamp(2rem, 5vw, 3.5rem);
	--line-height-base: 1.6;
	--line-height-heading: 1.15;
	--container-width: 112.5rem;
	--container-narrow: 48rem;
	--container-gutter: clamp(1rem, 3.8vw, 4.5rem);
	--space-1: 0.25rem;
	--space-2: 0.5rem;
	--space-3: 0.75rem;
	--space-4: 1rem;
	--space-6: 1.5rem;
	--space-8: 2rem;
	--space-12: 3rem;
	--space-16: 4rem;
}

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

body {
	margin: 0;
	color: var(--color-text);
	background: var(--color-background);
	font-family: var(--font-family-base);
	font-size: var(--font-size-base);
	line-height: var(--line-height-base);
	overflow-wrap: break-word;
}

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

iframe {
	max-width: 100%;
}

button,
input,
select,
textarea {
	font: inherit;
}

a {
	color: inherit;
}

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

.container {
	width: min(100% - var(--container-gutter) * 2, var(--container-width));
	margin-inline: auto;
}

/* Used only by template-parts/hero-image.php when the hero is connected. */
.hero-image {
	display: block;
	width: 100%;
}

.hero-image > img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: 50% 50%;
}

@media (max-width: 767px) {
	.hero-image > img {
		aspect-ratio: 3 / 4;
	}
}

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

.skip-link:focus {
	top: var(--space-4);
	left: var(--space-4);
	z-index: 100000;
	width: auto;
	height: auto;
	margin: 0;
	padding: var(--space-3) var(--space-4);
	clip-path: none;
	white-space: normal;
	background: var(--color-white);
	color: var(--color-navy);
}
