/* ==========================================================================
   Modern CSS Reset - Portal Ambiental La Unión
   ========================================================================== */

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

* {
	margin: 0;
	padding: 0;
}

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

body {
	min-height: 100vh;
	font-family: var(--font-family);
	font-size: var(--font-size-base);
	line-height: 1.6;
	color: var(--color-gray-800);
	background-color: var(--color-gray-50);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

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

h1, h2, h3, h4, h5, h6 {
	overflow-wrap: break-word;
	line-height: 1.3;
	color: var(--color-gray-900);
}

p {
	overflow-wrap: break-word;
}

a {
	color: inherit;
	text-decoration: none;
}

ul, ol {
	list-style: none;
}

button {
	cursor: pointer;
	border: none;
	background: none;
}

/* Accessibility - Skip Link */
.skip-link {
	position: absolute;
	top: -100%;
	left: var(--space-4);
	background: var(--color-primary-purple);
	color: var(--color-white);
	padding: var(--space-2) var(--space-4);
	border-radius: var(--radius-md);
	z-index: var(--z-modal);
	font-weight: var(--font-semibold);
	transition: top var(--transition-fast);
}

.skip-link:focus {
	top: var(--space-4);
}

/* Focus visible */
:focus-visible {
	outline: 2px solid var(--color-primary-purple);
	outline-offset: 2px;
}

/* Screen reader only */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal;
}

.screen-reader-text:focus {
	background-color: var(--color-gray-100);
	clip: auto;
	clip-path: none;
	color: var(--color-gray-900);
	display: block;
	font-size: var(--font-size-sm);
	font-weight: var(--font-bold);
	height: auto;
	left: var(--space-2);
	padding: var(--space-4);
	top: var(--space-2);
	width: auto;
	z-index: var(--z-modal);
}
