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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 88px;
}

body {
	margin: 0;
	background: var(--color-white);
	color: var(--color-ink);
	font-family: var(--font-body);
	font-weight: var(--text-body-weight);
	font-size: var(--text-body-size);
	line-height: var(--text-body-line-height);
}

img,
picture,
svg {
	display: block;
	max-width: 100%;
}

/* Typography */
h1,
h2,
h3,
h4 {
	margin: 0 0 var(--sp-2);
	font-family: var(--font-heading);
	font-weight: var(--text-h3-weight);
	line-height: 1.15;
	color: var(--color-navy);
}

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

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

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

h4 {
	font-size: 19px;
	color: var(--color-ink);
}

h2,
h3,
h4 {
	text-transform: var(--heading-transform);
	letter-spacing: var(--heading-letter-spacing);
}

h1,
h2,
h3,
h4 {
	text-wrap: balance;
}

p {
	margin: 0 0 var(--sp-2);
	text-wrap: pretty;
}

.display {
	font-family: var(--font-display);
	font-weight: var(--text-display-weight);
	font-size: var(--text-display-size);
	color: var(--color-ink);
}

.eyebrow {
	display: block;
	font-family: var(--font-mono);
	font-weight: var(--text-eyebrow-weight);
	font-size: var(--text-eyebrow-size);
	letter-spacing: var(--text-eyebrow-letter-spacing);
	text-transform: uppercase;
	color: var(--color-red-strong);
}

small,
.text-small {
	font-size: var(--text-small-size);
	font-weight: var(--text-small-weight);
	color: var(--color-steel);
}

a {
	color: var(--color-navy);
}

/* Visually hidden, still read by screen readers. WordPress doesn't
   ship this on the front end. */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: var(--sp-2);
	top: 0;
	z-index: 100;
	padding: var(--sp-1) var(--sp-2);
	background: var(--color-navy);
	color: var(--color-white);
	font-weight: 700;
	text-decoration: none;
	border-radius: 0 0 var(--radius-sm) var(--radius-sm);
	transform: translateY(-100%);
}

.skip-link:focus {
	transform: translateY(0);
}

#main:focus {
	outline: none;
}

/* On dark (navy-deep) backgrounds */
.on-dark,
.on-dark h1,
.on-dark h2,
.on-dark h3 {
	color: var(--color-white);
}

.on-dark p,
.on-dark .text-small {
	color: var(--color-on-dark-muted);
}

/* Layout */
.container {
	max-width: var(--content-max-width);
	margin-inline: auto;
	padding-inline: var(--side-padding);
}

/* Focus, never red */
:focus-visible {
	outline: 2px solid var(--color-navy);
	outline-offset: 1px;
}

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

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

@media (max-width: 760px) {
	.display {
		font-size: 40px;
	}

	h1 {
		font-size: 32px;
	}
}
