/**
 * Base element styling and resets.
 */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

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

body {
	margin: 0;
	background-color: var(--color-neutral-100);
	color: var(--color-ink-900);
	font-family: var(--font-body);
	font-size: var(--font-size-body);
	line-height: var(--line-height-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 var(--space-sm);
	font-family: var(--font-heading);
	font-weight: 700;
	line-height: var(--line-height-tight);
}

p {
	margin: 0 0 var(--space-sm);
}

p:last-child {
	margin-bottom: 0;
}

a {
	color: inherit;
}

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

ul,
ol {
	margin: 0 0 var(--space-sm);
	padding-left: 1.5rem;
}

:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}

.site-content {
	display: block;
}

.entry__inner {
	max-width: 48rem;
	margin: 0 auto;
	padding: var(--space-xl) var(--page-gutter);
}

.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:focus {
	position: fixed;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	margin: 0;
	clip: auto;
	overflow: visible;
	background: var(--color-neutral-100);
	color: var(--color-ink-900);
	border-radius: var(--radius-input);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-md);
	padding: var(--space-sm) var(--page-gutter);
}

.site-header__logo {
	max-height: 60px;
	width: auto;
}

.site-header__menu {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-md);
	list-style: none;
	margin: 0;
	padding: 0;
}
