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

html {
	scroll-behavior: smooth;
}

html,
body {
	margin: 0;
	padding: 0;
}

body {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--color-bg-light);
	color: var(--color-text-primary);
	font-family: var(--font-body);
	font-size: var(--text-body);
	font-stretch: 100%;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--color-brand-primary);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

h1,
h2,
h3 {
	font-family: var(--font-display);
	font-weight: var(--font-weight-display);
	letter-spacing: -0.01em;
	line-height: 1.2;
	margin: 0 0 var(--space-5);
}

h1 {
	font-size: var(--text-h1);
}

h2 {
	font-size: var(--text-h2);
}

h3 {
	font-size: var(--text-h3);
}

h4 {
	font-family: var(--font-body);
	font-size: var(--text-h4);
	font-weight: 500;
	margin: 0 0 var(--space-4);
}

p {
	margin: 0 0 var(--space-4);
	max-width: 45rem;
}

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

:focus-visible {
	outline: var(--focus-ring);
	outline-offset: 3px;
}

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

.ga-skip-link {
	position: absolute;
	left: var(--space-4);
	top: -100%;
	z-index: 1000;
	padding: var(--space-3) var(--space-4);
	background: var(--color-white);
	color: var(--color-text-primary);
	min-height: var(--touch-min);
}

.ga-skip-link:focus {
	top: var(--space-4);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
