/* Design tokens, reset and base typography. */
:root {
	--night: #0f1b2d;
	--floodlight: #ffe27a;
	--orange: #e35d2a;
	--concrete: #eef1f4;
	--slate: #5b6778;
	/* Differs from the design's #e35d2a on purpose: white text on #e35d2a is only 3.6:1 (fails WCAG AA), so buttons and small orange text use this. Exact --orange stays for large decorative areas. */
	--orange-aa: #cb4a1a;
	--concrete-deep: #d5d8dd;
	--white: #fff;
	--font-heading: "Barlow Condensed", "Arial Narrow", sans-serif;
	--font-body: "Barlow", system-ui, sans-serif;
	--fs-hero: clamp(3.25rem, 1.2rem + 7vw, 7.5rem); /* the PNG measures about 120px at 1440 */
	--fs-h2: clamp(2.25rem, 1.2rem + 4vw, 4.25rem);
	--fs-card-title: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
	--fs-body: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
	--fs-card-body: 1.0625rem;
	--fs-btn: clamp(0.9375rem, 0.9rem + 0.15vw, 1.0625rem);
	--radius-card: 26px;
	--radius-pill: 999px;
	--border: 2px solid var(--night);
	--container: 1240px;
	--gutter: clamp(1rem, 4vw, 2.5rem);
	--section-y: clamp(3.5rem, 2rem + 6vw, 7rem);
	--shadow-hard: 4px 4px 0 var(--night);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font: 400 var(--fs-body)/1.55 var(--font-body);
	color: var(--night);
	background: var(--white);
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 800; margin: 0 0 0.4em; color: inherit; }
h1 { font-size: var(--fs-hero); line-height: 0.95; }
h2 { font-size: var(--fs-h2); line-height: 1; }
h3 { font-size: var(--fs-card-title); line-height: 1.1; }
p { margin: 0 0 1em; }
a { color: inherit; }
ul { padding: 0; margin: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--floodlight); outline-offset: 3px; box-shadow: 0 0 0 5px var(--night); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--concrete { background: var(--concrete); }
.section--navy { background: var(--night); color: var(--white); }
.section__head { max-width: 46rem; margin-bottom: 2.5rem; }
.section__head--center { margin-inline: auto; text-align: center; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed; top: 0.5rem; left: 0.5rem; z-index: 1000; clip: auto; width: auto; height: auto; margin: 0;
	padding: 0.75rem 1.25rem; background: var(--floodlight); color: var(--night); border-radius: var(--radius-pill); font-weight: 700;
}

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