/**
 * Base reset and typography baseline. No component/section styling here.
 */

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

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

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

body {
	margin: 0;
	background-color: var(--color-background);
	color: var(--color-text);
	font-family: var(--font-body);
	line-height: 1.5;
	overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-heading);
	line-height: 1.2;
	margin: 0 0 var(--space-4);
}

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

/* Form controls and buttons use the body font (browsers default to their own). */
button,
input,
select,
textarea {
	font-family: inherit;
}

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

a {
	color: inherit;
}

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

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link.screen-reader-text:focus {
	position: fixed;
	top: var(--space-2);
	left: var(--space-2);
	width: auto;
	height: auto;
	clip: auto;
	z-index: 100;
	padding: var(--space-2) var(--space-4);
	background-color: var(--color-white);
	color: var(--color-text);
	border-radius: var(--radius-card);
}

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