/**
 * Primeira Essência — Base
 * Reset mínimo + tipografia e comportamento padrão do documento.
 */

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

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

body {
	margin: 0;
	overflow-x: hidden;
	background: var(--pe-color-bg);
	color: var(--pe-color-text);
	font-family: var(--pe-font-body);
	font-size: var(--pe-text-body);
	line-height: var(--pe-leading-normal);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-family: var(--pe-font-display);
	font-weight: 600;
	line-height: var(--pe-leading-tight);
	color: var(--pe-color-text);
}

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

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 {
	font-family: inherit;
	color: inherit;
	background: none;
	border: 0;
	cursor: pointer;
}

input, textarea, select {
	font-family: inherit;
	font-size: inherit;
	color: inherit;
}

::selection {
	background: var(--pe-color-gold);
	color: var(--pe-black);
}

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

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

.screen-reader-text:focus {
	position: static;
	width: auto;
	height: auto;
	margin: 0;
	clip: auto;
}

@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;
		scroll-behavior: auto !important;
	}
}
