/* Base: reset, typography, layout primitives, accessibility helpers. */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-height) + var(--space-16));
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	padding-top: var(--header-height);
	background: var(--color-ivory);
	color: var(--color-ink);
	font-family: var(--font-sans);
	font-size: var(--text-body);
	line-height: var(--leading-body);
	font-optical-sizing: auto;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

body.is-menu-open {
	overflow: hidden;
}

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

h1,
h2,
h3,
h4 {
	margin: 0;
	font-family: var(--font-serif);
	font-weight: 400;
	color: var(--color-ink);
	text-wrap: balance;
}

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

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

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

h4 {
	font-family: var(--font-sans);
	font-size: var(--text-body);
	font-weight: 600;
}

p,
ul,
ol,
dl,
figure,
blockquote {
	margin: 0;
}

p + p {
	margin-top: var(--space-16);
}

a {
	color: var(--color-nile);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

a:hover {
	color: var(--color-nile-deep);
}

strong {
	font-weight: 600;
}

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

button {
	cursor: pointer;
}

/* Keyboard focus: always visible, never colour alone. */
:focus-visible {
	outline: 2px solid var(--color-nile);
	outline-offset: 3px;
	border-radius: 4px;
}

[hidden] {
	display: none !important;
}

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

.skip-link {
	position: absolute;
	top: var(--space-8);
	left: var(--space-8);
	z-index: 100;
	padding: var(--space-12) var(--space-16);
	background: var(--color-nile);
	color: var(--color-ivory);
	border-radius: var(--radius-12);
	transform: translateY(-200%);
}

.skip-link:focus {
	transform: none;
	color: var(--color-ivory);
}

/* Honeypot field of public forms: hidden from people, visible to bots. */
.ewt-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Layout */
.container {
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.container--narrow {
	max-width: calc(904px + 2 * var(--gutter));
}

.section {
	padding-block: var(--section-space);
}

.section--sand {
	background: var(--color-sand-soft);
}

.section--tight-top {
	padding-top: var(--space-32);
}

.stack > * + * {
	margin-top: var(--space-16);
}

.stack > .actions {
	margin-top: var(--space-32);
}

.eyebrow {
	font-size: var(--text-small);
	line-height: var(--leading-tight);
	font-weight: 500;
	color: var(--color-nile);
}

.lead {
	font-size: 1.125rem;
	line-height: 1.6;
	color: var(--color-muted);
	max-width: 50rem;
}

.muted {
	color: var(--color-muted);
}

.small {
	font-size: var(--text-small);
	line-height: var(--leading-tight);
}

.caption {
	font-size: var(--text-caption);
	line-height: 1.5714;
	color: var(--color-muted);
}

.placeholder-note {
	color: var(--color-muted);
}
