/**
 * EyD Institutional Base v2
 * Diseño institucional para Aprende Inglés con Empeño y Dedicación.
 * Enfoque: educativo, claro, sobrio, confiable, sin JavaScript.
 */

:root {
	--eyd-blue-950: #06245c;
	--eyd-blue-900: #082f76;
	--eyd-blue-800: #0b3f91;
	--eyd-blue-700: #0b4da2;
	--eyd-blue-100: #eaf1ff;
	--eyd-red-700: #c62828;
	--eyd-red-800: #a91f1f;
	--eyd-red-100: #fff0f0;
	--eyd-ink: #111827;
	--eyd-muted: #4b5563;
	--eyd-soft: #f6f8fc;
	--eyd-soft-2: #eef3fb;
	--eyd-border: #dce4f2;
	--eyd-white: #ffffff;

	--eyd-radius-sm: .55rem;
	--eyd-radius-md: .9rem;
	--eyd-radius-lg: 1.25rem;
	--eyd-radius-xl: 1.75rem;
	--eyd-radius-pill: 999px;

	--eyd-shadow-sm: 0 3px 12px rgba(6, 36, 92, .06);
	--eyd-shadow-md: 0 12px 32px rgba(6, 36, 92, .10);
	--eyd-shadow-lg: 0 22px 58px rgba(6, 36, 92, .14);

	--eyd-container: 1180px;
	--eyd-content: 760px;
	--eyd-section-y: clamp(3rem, 6vw, 5.5rem);
	--eyd-gap: clamp(1rem, 2.2vw, 1.75rem);
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--eyd-white);
	color: var(--eyd-ink);
	font-family: var(--wp--preset--font-family--system-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif);
	font-size: clamp(1rem, .96rem + .18vw, 1.08rem);
	line-height: 1.68;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--eyd-blue-950);
	font-family: var(--wp--preset--font-family--system-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif);
	font-weight: 850;
	line-height: 1.08;
	letter-spacing: -.035em;
	text-wrap: balance;
}

p {
	text-wrap: pretty;
}

a {
	color: var(--eyd-blue-700);
	text-decoration-thickness: 1px;
	text-underline-offset: .18em;
	transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

a:hover {
	color: var(--eyd-red-700);
}

a:focus-visible,
button:focus-visible,
.wp-block-button__link:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 3px solid rgba(11, 77, 162, .35);
	outline-offset: 3px;
}

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

img {
	display: block;
}

audio {
	display: block;
	width: 100%;
}

::selection {
	background: var(--eyd-blue-900);
	color: var(--eyd-white);
}

.wp-site-blocks {
	min-height: 100vh;
	overflow-x: clip;
}

.wp-block-separator {
	border-color: var(--eyd-border);
	opacity: 1;
}

.wp-block-image img {
	border-radius: var(--eyd-radius-lg);
}

.wp-block-quote {
	margin-inline: 0;
	padding: 1.25rem 1.5rem;
	background: var(--eyd-soft);
	border-left: 5px solid var(--eyd-blue-700);
	border-radius: var(--eyd-radius-md);
	color: var(--eyd-blue-950);
}

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

.screen-reader-text:focus,
.eyd-screen-reader-text:focus {
	position: fixed !important;
	z-index: 100000;
	top: 1rem;
	left: 1rem;
	width: auto;
	height: auto;
	padding: .75rem 1rem;
	clip: auto;
	background: var(--eyd-white);
	color: var(--eyd-ink);
	border: 2px solid var(--eyd-blue-700);
	border-radius: var(--eyd-radius-sm);
	box-shadow: var(--eyd-shadow-md);
}
