/* Reset and element defaults. */

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

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

/* In-page links (the hero's scroll arrow, buttons that jump to a section) glide to their target. */
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font-family: var(--f-body);
	font-size: var(--t-body);
	line-height: var(--lh-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-family: var(--f-display);
	font-weight: 500;
	font-size: var(--t-title);
	line-height: var(--lh-title);
	text-wrap: balance;
}

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

/* Components set display on elements that JS hides with the hidden attribute. */
[hidden] {
	display: none !important;
}

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

img, video {
	height: auto;
}

a {
	color: inherit;
}

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

button {
	cursor: pointer;
}

:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 1000;
	padding: 12px 16px;
	background: var(--c-dark);
	color: var(--c-light);
}

.skip-link:focus {
	top: 16px;
}

.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Long-form text: blog articles, legal pages, rich text sections. */
.prose > * + * {
	margin-top: 1em;
}

.prose {
	line-height: 1.6;
}

.prose h2 { font-size: var(--t-title); line-height: var(--lh-title); margin-top: 1.5em; }
.prose h3 { font-size: var(--t-title-s); line-height: var(--lh-title-s); margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose img { margin-inline: auto; }
.prose a { text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
