:root {
	/* Colors */
	--color-navy: #16284a;
	--color-navy-mid: #1f3a63;
	--color-navy-line: #2a3d63;
	--color-gold: #c6a233;
	--color-gold-light: #e3c766;
	--color-terracotta: #a6432e;
	--color-terracotta-dark: #8a3524;
	--color-cream: #f6f1e4;
	--color-peach: #fbe6de;
	--color-ink: #3b3d44;
	--color-muted: #4d4f56;
	--color-footer-text: #241e0b;
	--color-white: #ffffff;
	--color-error: #b42318;

	/* Color aliases */
	--color-text: var(--color-navy);
	--color-text-reverse: hsla(0, 0%, 100%, 1);
	--color-text-light: var(--color-muted);
	--color-primary: var(--color-navy);
	--color-secondary: var(--color-gold);
	--color-clickable: var(--color-terracotta);
	--color-clickable-hover: var(--color-terracotta-dark);
	--color-surface: var(--color-white);
	--color-border: #aaa;

	/* Spacing */
	--spacing-mobile-margin: 1.5em;
	--spacing-desktop-margin: 2em;
	--spacing-large: 1.75rem;

	/* Type */
	--font-sans: "Work Sans", sans-serif;
	--font-display: "Oswald", sans-serif;
	--font-serif: sans-serif;
	--font-size-base: 16px;

	/* Layout */
	--layout-max-width: 1200px;
	--layout-smaller-width: 880px;
	--layout-pad-x: 140px;
	--header-height: 72px;

	/* Animation */
	--animation-default-timing: 200ms;

	/* Layers */
	--z-1: 10;
	--z-2: 20;
	--z-3: 30;
	--z-4: 40;
	--z-5: 50;
	--z-6: 60;
	--z-7: 70;
	--z-8: 80;
	--z-9: 90;
	--z-10: 100;
	--z-top: 1000;
}

@media screen and (min-width: 769px) {
	:root {
		--header-height: 111px;
	}
}

/* * base styles */

/* Animate scrolling only if users don’t prefer reduced motion */
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
	@view-transition {
		navigation: auto;
	}
	::view-transition-group(auto) {
		animation-duration: 0.35s;
	}

	.site-header {
		view-transition-name: header;
	}
}

html {
	box-sizing: border-box;
	scroll-padding-top: calc(var(--header-height) + 0.75rem);
}

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

body {
	font-family: var(--font-sans);
	font-size: var(--font-size-base);
	color: var(--color-text);
	background-color: var(--color-surface);
	padding: 0;
	margin: 0;
	/* font weight normalization */
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden; /* keeps animations inside the viewport */

	&.locked {
		/* add this class with javascript when you launch a modal or something, to prevent background scrolling */
		overflow: hidden;
	}
}

/* responsive images */
img,
picture {
	display: block;
	width: 100%;
	height: auto;
}

/* https://piccalil.li/quick-tip/add-scroll-margin-to-all-elements-which-can-be-targeted */
[id] {
	scroll-margin-top: calc(var(--header-height) + 0.75rem);
}

/* TYPOGRAPHY */

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--color-text);
	line-height: 1.2;
	font-optical-sizing: auto;
	font-weight: 700;
	font-style: normal;
	font-family: var(--font-display);
	margin-block: 0.25em 0.333em;
}
h1,
h2 {
	text-wrap: balance;
}

/* Scale based on Jason Pamental's
   http://typecast.com/blog/a-more-modern-scale-for-web-typography */

h1,
.h1 {
	font-size: 52.6px;
	line-height: 63.36px; /* 120.456% */
	letter-spacing: 0.576px;
	text-transform: uppercase;

	@media screen and (min-width: 769px) {
		font-size: 57.6px;
	}
}

h2,
.h2 {
	font-weight: 800;
	line-height: 1.153;
	letter-spacing: -0.5px;
	font-size: 1.625em;
	text-transform: uppercase;

	@media screen and (min-width: 769px) {
		font-size: 2em;
		line-height: 1.25;
	}

	@media screen and (min-width: 1280px) {
		font-size: 2.25em;
	}
}

h3,
.h3 {
	font-weight: 800;
	line-height: 1.36;
	letter-spacing: 0;
	font-size: 1.375em;
	text-transform: uppercase;

	@media screen and (min-width: 769px) {
		font-size: 1.5em;
		line-height: 1.25;
	}

	@media screen and (min-width: 1280px) {
		font-size: 1.75em;
	}
}

h4,
.h4 {
	font-weight: 800;
	line-height: 1.111;
	letter-spacing: 0.25px;
	font-size: 1.125em;
	color: var(--color-text-light);

	@media screen and (min-width: 769px) {
		font-size: 1.125em;
		line-height: 1.222;
	}
}

a {
	color: var(--color-clickable);
	text-decoration: none;
	&:visited,
	&:active {
		color: var(--color-clickable);
	}
	&:hover,
	&:focus-visible {
		color: var(--color-clickable-hover);
	}
}

p,
.p,
ul > li {
	font-weight: 400;
	color: var(--color-text);
	font-family: var(--font-sans);
	line-height: 1.25;
	font-size: 1em;
	margin-block: 0.25em 0.333em;
	hanging-punctuation: first allow-end;

	@media screen and (min-width: 769px) {
		line-height: 1.375;
	}
}

/* if the next sibling is not a p */
p,
.p {
	&:not(:has(+ p)) {
		margin-block-end: 1em;
	}
}

@supports (text-wrap: pretty) {
	p,
	.p {
		text-wrap: pretty;
	}
}

sup {
	font-size: 50%;
	vertical-align: super;
	line-height: 0;
}

.content {
	& ul {
		list-style: none;
		padding-inline-start: 0.666em;
		margin-inline-start: 0;
		& li {
			margin-block: 0;
			&::before {
				content: '-';
				display: inline-block;
				margin-inline-end: 0.25em;
				margin-inline-start: -0.666em;
			}
		}
	}
}

button {
	background-image: none;
	background-color: transparent;
	border-radius: 0;
	box-shadow: none;
	-webkit-appearance: none;
	border: none;
	padding: 0;
	margin: 0;
	font-family: inherit;
	text-box-trim: trim-both;
	text-edge: cap;
}

.button {
	line-height: 1;
}

a.button {
	text-decoration: none;
}

/* Accessibility utilities (kept after stripping Underscores style.css) */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--color-cream);
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(22, 40, 74, 0.35);
	clip: auto !important;
	clip-path: none;
	color: var(--color-navy);
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	inset-inline-start: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

#primary[tabindex="-1"]:focus {
	outline: 0;
}

.alignleft {
	float: inline-start;
	margin-inline-end: 1.5em;
	margin-block-end: 1.5em;
}

.alignright {
	float: inline-end;
	margin-inline-start: 1.5em;
	margin-block-end: 1.5em;
}

.aligncenter {
	display: block;
	margin-inline: auto;
	margin-block-end: 1.5em;
}

.content-legal {
	padding-inline: max(1.5rem, 50vw - var(--layout-max-width) / 2);
	padding-block: calc(var(--header-height) + 6rem);
}