/* ==========================================================================
   BASE — reset moderno e elementos HTML
   ========================================================================== */

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

	html {
		-webkit-text-size-adjust: 100%;
		text-size-adjust: 100%;
		scroll-behavior: smooth;
		scroll-padding-top: calc(var(--header-h) + 1rem);
	}

	body {
		margin: 0;
		background: var(--c-bg);
		color: var(--c-text);
		font-family: var(--font-body);
		font-size: var(--fs-base);
		line-height: var(--lh-body);
		-webkit-font-smoothing: antialiased;
		text-rendering: optimizeLegibility;
		overflow-x: clip;
	}

	img,
	svg,
	video,
	picture,
	iframe {
		display: block;
		max-width: 100%;
	}

	img {
		height: auto;
	}

	h1,
	h2,
	h3,
	h4,
	h5,
	h6 {
		margin: 0 0 0.5em;
		color: var(--c-ink);
		font-family: var(--font-display);
		font-weight: 600;
		line-height: var(--lh-tight);
		letter-spacing: -0.02em;
		text-wrap: balance;
	}

	h1 { font-size: var(--fs-h1); }
	h2 { font-size: var(--fs-h2); }
	h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); }
	h4 { font-size: var(--fs-h4); line-height: var(--lh-snug); }

	p {
		margin: 0 0 1em;
		text-wrap: pretty;
	}

	a {
		color: var(--c-primary);
		text-decoration-thickness: 1px;
		text-underline-offset: 0.2em;
		transition: color var(--dur) var(--ease);
	}

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

	ul,
	ol {
		margin: 0 0 1em;
		padding-left: 1.2em;
	}

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

	button {
		cursor: pointer;
	}

	:focus-visible {
		outline: 3px solid var(--c-turquesa);
		outline-offset: 3px;
		border-radius: 4px;
	}

	::selection {
		background: var(--c-turquesa);
		color: var(--c-petroleo-900);
	}

	hr {
		border: 0;
		border-top: 1px solid var(--c-line);
		margin: var(--space-7) 0;
	}

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