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

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--header-height);
	-webkit-text-size-adjust: 100%;
}

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

body {
	margin: 0;
	background: var(--ink);
	color: var(--bone);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

body.nav-open {
	overflow: hidden;
}

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

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

a {
	color: inherit;
}

h1,
h2,
h3,
p,
dl,
dd {
	margin: 0;
}

h1,
h2,
h3 {
	font-family: var(--font-heading);
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
}

:focus-visible {
	outline: 2px solid var(--sky);
	outline-offset: 3px;
}

/*
 * Light section themes. Components use the palette variables, so redefining
 * them here turns the text dark. The accent darkens on bone so small text
 * keeps a 4.5:1 contrast ratio.
 */
.theme-bone {
	--bone: #101318;
	--bone-muted: rgba(16, 19, 24, 0.74);
	--ink-line: rgba(16, 19, 24, 0.16);
	--ink-raised: #f0f2f3;
	--sky: #0a6fa0;
	background: #f0f2f3;
	color: var(--bone);
}

.theme-sky {
	--bone: #101318;
	--bone-muted: rgba(16, 19, 24, 0.78);
	--ink-line: rgba(16, 19, 24, 0.2);
	--ink-raised: #3cbff0;
	--sky: #101318;
	background: #3cbff0;
	color: var(--bone);
}

.container {
	width: min(100%, 94rem);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

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

.section-header {
	margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-title {
	font-size: clamp(3rem, 7vw, 6.5rem);
	line-height: 0.95;
}

.section-empty {
	color: var(--bone-muted);
}

.eyebrow {
	margin-bottom: 1.25rem;
	color: var(--sky);
	font-family: var(--font-heading);
	font-size: 1.125rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	line-height: 1.2;
	text-transform: uppercase;
}

.button {
	display: inline-block;
	padding: 1rem 1.75rem;
	border: 1px solid var(--sky);
	background: var(--sky);
	color: var(--ink);
	font-family: var(--font-heading);
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.button:hover {
	border-color: var(--bone);
	background: var(--bone);
}

.button--ghost {
	border-color: var(--bone);
	background: transparent;
	color: var(--bone);
}

.button--ghost:hover {
	color: var(--ink);
}

.button--small {
	padding: 0.625rem 1.125rem;
	font-size: 1rem;
}

.button--large {
	padding: 1.25rem 2.5rem;
	font-size: 1.375rem;
}

.demo-note {
	margin-top: 1.5rem;
	color: var(--bone-muted);
	font-size: 0.8125rem;
	font-style: italic;
}

.skip-link {
	position: fixed;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 200;
	padding: 0.75rem 1rem;
	background: var(--bone);
	color: var(--ink);
	transform: translateY(-200%);
}

.skip-link:focus {
	transform: none;
}

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

.page-content {
	min-height: 70vh;
	padding-top: calc(var(--header-height) + 4rem);
	padding-bottom: var(--section-space);
}

.page-content__title {
	margin-bottom: 2rem;
	font-size: clamp(3rem, 7vw, 6rem);
}

.page-content p + .button {
	margin-top: 2rem;
}

/* Elementor resets every image to height: auto; these images fill their frames. */
.elementor .hero__image,
.elementor .hero__layer,
.elementor .event-card__media img,
.elementor .breakdown__base,
.elementor .breakdown__piece img {
	height: 100%;
}

.elementor .hero__image,
.elementor .hero__layer {
	max-width: none;
}
