*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	overflow-x: clip;
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: var(--text-body);
	line-height: var(--leading-normal);
	color: var(--color-text);
	background: var(--color-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body.is-menu-open {
	overflow: hidden;
}

img,
svg {
	max-width: 100%;
	height: auto;
}

img {
	display: block;
	vertical-align: middle;
}

.site-logo img,
.custom-logo {
	height: 2.75rem;
	width: auto;
	max-width: 2.95rem;
}

.icon {
	display: block;
	width: 1.15em;
	height: 1.15em;
	flex-shrink: 0;
}

a {
	color: inherit;
}

ul,
ol {
	margin: 0;
	padding: 0;
}

figure {
	margin: 0;
}

.skip-link {
	position: absolute;
	top: -100%;
	left: 1rem;
	z-index: 9999;
	padding: 0.75rem 1.25rem;
	background: var(--color-primary);
	color: var(--color-white);
	font-weight: 600;
	text-decoration: none;
	border-radius: var(--radius-sm);
}

.skip-link:focus {
	top: 1rem;
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

.site-main {
	min-height: 50vh;
}

.container {
	width: 100%;
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: var(--container-x);
}

.container--narrow {
	max-width: calc(var(--content-width) + 4rem);
}

.container--prose {
	max-width: calc(var(--content-width) + 2rem);
}

.photo-frame {
	display: block;
	overflow: hidden;
	background: var(--color-surface-muted);
	border-radius: var(--radius-md);
	line-height: 0;
}

.photo,
.photo-frame img,
.photo-frame .photo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.photo--top {
	object-position: center 14%;
}

.photo--center {
	object-position: center center;
}

.photo--left {
	object-position: 28% center;
}

.photo-frame--tall {
	aspect-ratio: 4 / 5;
}

.photo-frame--square {
	aspect-ratio: 1 / 1;
}

.photo-frame--wide {
	aspect-ratio: 16 / 10;
}

.photo-frame--bleed {
	border-radius: 0;
}

.u-max-720 {
	max-width: 720px;
}

.u-mt-2 { margin-top: var(--space-5); }
.u-mt-3 { margin-top: var(--space-7); }
.u-mb-2 { margin-bottom: var(--space-5); }
