/* Reset + element defaults. */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	overflow-x: clip;
	scroll-padding-top: calc(var(--header-h) + 72px);
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--f-body);
	font-size: var(--fs-md);
	line-height: 1.6;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

body.is-locked {
	overflow: hidden;
}

img,
svg,
iframe {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	font-family: var(--f-head);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

p {
	margin: 0;
	text-wrap: pretty;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

figure {
	margin: 0;
}

a {
	color: inherit;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
}

button,
input,
textarea,
select {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

:focus-visible {
	outline: 3px solid var(--teal);
	outline-offset: 2px;
	border-radius: 4px;
}

.section--ink :focus-visible,
.section--teal :focus-visible,
.site-footer :focus-visible,
.strip :focus-visible,
.course-bar :focus-visible {
	outline-color: var(--yellow);
}

[hidden] {
	display: none !important;
}

.wrap {
	width: min(100% - 2 * var(--gutter), var(--wrap));
	margin-inline: auto;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: var(--sp-4);
	top: -60px;
	z-index: 200;
	padding: var(--sp-2) var(--sp-4);
	background: var(--ink);
	color: var(--yellow);
	border-radius: var(--r-sm);
	font-weight: 700;
}

.skip-link:focus {
	top: var(--sp-3);
}

main:focus {
	outline: none;
}

.icon {
	width: 1.25em;
	height: 1.25em;
	flex: none;
}
