/**
 * Reset and element defaults.
 */

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

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

body {
	margin: 0;
	background: var(--bc-page);
	color: var(--bc-ink);
	font-family: var(--bc-font-body);
	font-size: var(--bc-fs-16);
	font-weight: 400;
	line-height: var(--bc-lh-normal);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-weight: 600;
	line-height: var(--bc-lh-tight);
}

p {
	margin: 0;
}

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

a {
	color: inherit;
	text-decoration: none;
}

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

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

button {
	cursor: pointer;
	background: none;
	border: 0;
	padding: 0;
}

/* Visible focus for keyboard users — the Figma file specifies no focus state,
   so this is an accessibility addition rather than a design transcription. */
:focus-visible {
	outline: 2px solid var(--bc-brand);
	outline-offset: 2px;
}

.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 {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	background: var(--bc-brand);
	color: var(--bc-on-brand);
	padding: 12px 20px;
	border-radius: 0 0 var(--bc-r-4) 0;
}

.skip-link:focus {
	left: 0;
}
