/* -----------------------------------------------------------------------
   Reset, typography defaults and layout primitives.
   ----------------------------------------------------------------------- */

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

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

	/* Anchor targets must clear the floating header. */
	scroll-padding-top: 8rem;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	margin: 0;
	background-color: var(--color-surface);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: var(--fs-main);
	line-height: var(--lh-body);
	-webkit-font-smoothing: antialiased;
}

body.is-locked {
	overflow: hidden;
}

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

h1,
h2,
h5 {
	font-family: var(--font-display);
	line-height: var(--lh-display);
	text-transform: uppercase;
}

h1 {
	font-size: var(--fs-h1);
}

h2 {
	font-size: var(--fs-h2);
}

h3,
h4 {
	font-size: var(--fs-h3);
}

h5 {
	font-size: var(--fs-h5);
}

p,
ul,
ol {
	margin: 0;
}

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

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

a:hover {
	color: var(--color-primary);
}

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

/*
 * Padding included: the browser's own 1px 6px is easy to miss and quietly
 * shrinks anything laid out inside a button — it took 16 off every gallery
 * photo. Components state their own padding.
 */
button {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

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

/* Visible focus for keyboard users on every interactive element. */
:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 3px;
	border-radius: var(--space-4);
}

/* Layout ----------------------------------------------------------------- */

.container {
	width: 100%;
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: var(--container-pad);
}

.section {
	padding-block: var(--section-gap);
}

/* Accessibility ---------------------------------------------------------- */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	top: var(--space-8);
	left: var(--space-8);
	z-index: var(--z-overlay);
	padding: var(--space-12) var(--space-24);
	border-radius: var(--radius-button);
	background-color: var(--color-white);
	color: var(--color-black);
	box-shadow: var(--shadow-floating);
	transform: translateY(-200%);
	transition: transform var(--transition-base);
}

.skip-link:focus {
	transform: translateY(0);
}

.nodir-sprite {
	display: none;
}
