/* ============================================================
   Reset + base typography
   ============================================================ */

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

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

body {
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--text-xl);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color var(--ease-quick);
}

a:hover .headline {
	color: var(--brand-dark);
}

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

button {
	font: inherit;
	color: inherit;
	cursor: pointer;
	background: none;
	border: none;
}

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

ul,
ol {
	list-style: none;
}

:focus-visible {
	outline: 2px solid var(--brand);
	outline-offset: 3px;
	border-radius: 2px;
}

::selection {
	background: var(--brand);
	color: #fff;
}

/* ---- Screen-reader utilities ---- */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
	word-wrap: normal;
}

.skip-link.screen-reader-text:focus {
	position: fixed;
	top: 12px;
	left: 12px;
	width: auto;
	height: auto;
	overflow: visible;
	clip: auto;
	white-space: normal;
	background: var(--brand);
	color: #fff;
	font-family: var(--font-ui);
	font-size: 14px;
	font-weight: 600;
	padding: 10px 20px;
	border-radius: 3px;
	z-index: 99999;
	text-decoration: none;
	outline: 3px solid #fff;
	outline-offset: 2px;
}
