/* Camada 2 — Base: reset leve, tipografia e acessibilidade. */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	overflow-x: clip; /* nada pode criar rolagem horizontal da página */
	scroll-behavior: smooth;
	scroll-padding-top: var(--header-h);
}

/* Barra de rolagem fina, nas cores da marca. */
html {
	scrollbar-width: thin;
	scrollbar-color: var(--color-blue-600) var(--color-navy-900);
}

::-webkit-scrollbar {
	width: 0.625rem;
	height: 0.625rem;
}

::-webkit-scrollbar-track {
	background: var(--color-navy-900);
}

::-webkit-scrollbar-thumb {
	border: 2px solid var(--color-navy-900);
	border-radius: var(--radius-pill);
	background: var(--color-blue-600);
}

::-webkit-scrollbar-thumb:hover {
	background: var(--color-yellow-400);
}

body {
	margin: 0;
	padding-top: var(--header-h);
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-text);
	font-size: var(--text-body);
	font-weight: 500;
	line-height: 1.55;
	letter-spacing: -0.03em;
	font-optical-sizing: none;
	font-variation-settings: "opsz" 14;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

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

h1,
h2,
h3,
h4 {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: -0.03em;
	text-transform: uppercase;
	text-wrap: balance;
}

h1 {
	font-size: var(--text-display);
	line-height: 0.98;
}

h2 {
	font-size: var(--text-h2);
	line-height: 1.02;
}

h3 {
	font-size: var(--text-h3);
	line-height: 1.05;
}

h4 {
	font-size: var(--text-h4);
	line-height: 1.2;
}

p {
	margin: 0;
}

a {
	color: inherit;
}

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

button {
	font: inherit;
	color: inherit;
}

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

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

.skip-link {
	position: fixed;
	top: var(--space-2);
	left: var(--space-2);
	z-index: calc(var(--z-header) + 1);
	padding: var(--space-3) var(--space-4);
	background: var(--color-yellow-400);
	color: var(--color-blue-800);
	font-weight: 700;
	transform: translateY(-200%);
}

.skip-link:focus {
	transform: none;
}

@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;
	}
}
