/*
Theme Name: APES
Theme URI: https://apes.org.ar
Author: Asociación Posadeña de Estudiantes Secundarios
Description: Identidad visual de APES: la Estudiantina y el resto de los eventos estudiantiles de Posadas. Vestimenta para el contenido y el módulo en vivo que ya vive en el plugin apes-core.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: apes-theme
*/

/* ============================================================
   Tokens — colores extraídos del sello institucional (gestión
   2026-2027), franjas del isotipo: acero, naranja, verde, rojo.
   ============================================================ */
:root {
	--apes-tinta: #0a0f1f;
	--apes-tinta-2: #131a33;
	--apes-tinta-borde: #262f52;
	--apes-tinta-texto: #e9ecf5;
	--apes-tinta-texto-tenue: #a7aec9;

	--apes-papel: #fbf6ec;
	--apes-papel-2: #f1e9d8;
	--apes-papel-borde: #e3d7bd;
	--apes-negro-texto: #14181f;
	--apes-negro-texto-tenue: #52565f;

	--apes-azul: #1428b4;
	--apes-acero: #0072b8;
	--apes-naranja: #ff5a1e;
	--apes-verde: #2ed62b;
	--apes-rojo: #f21b3f;

	--apes-fuente-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
	--apes-fuente-cuerpo: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
	--apes-fuente-dato: "JetBrains Mono", ui-monospace, "Courier New", monospace;

	--apes-radio: 14px;
	--apes-ancho-contenido: 1120px;
	--apes-ancho-lectura: 720px;
}

/* ============================================================
   Reset base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
	margin: 0;
	background: var(--apes-papel);
	color: var(--apes-negro-texto);
	font-family: var(--apes-fuente-cuerpo);
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--apes-azul); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--apes-rojo); }

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

h1, h2, h3, h4 {
	font-family: var(--apes-fuente-display);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	line-height: 0.95;
	margin: 0 0 0.4em;
}

h1 { font-size: clamp(2.6rem, 5vw + 1rem, 5rem); }
h2 { font-size: clamp(1.9rem, 3vw + 1rem, 3rem); }
h3 { font-size: clamp(1.3rem, 1.5vw + 1rem, 1.8rem); }

p { margin: 0 0 1em; }

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

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

.apes-envoltorio {
	max-width: var(--apes-ancho-contenido);
	margin: 0 auto;
	padding: 0 24px;
}

.apes-lectura {
	max-width: var(--apes-ancho-lectura);
	margin: 0 auto;
	padding: 48px 24px 80px;
}

.apes-eyebrow {
	font-family: var(--apes-fuente-dato);
	font-size: 0.8rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--apes-naranja);
}

.apes-boton {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--apes-fuente-display);
	font-weight: 700;
	font-size: 1.15rem;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	text-decoration: none;
	padding: 14px 28px;
	border-radius: 999px;
	border: 2px solid transparent;
	transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.apes-boton:hover { transform: translateY(-2px); }

.apes-boton--naranja {
	background: var(--apes-naranja);
	color: var(--apes-tinta);
}
.apes-boton--naranja:hover { background: #ff7440; color: var(--apes-tinta); }

.apes-boton--contorno {
	border-color: currentColor;
	color: inherit;
	background: transparent;
}
.apes-boton--contorno:hover { color: var(--apes-naranja); }

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

.apes-skip-link {
	position: fixed;
	top: -100px;
	left: 12px;
	z-index: 100;
	background: var(--apes-naranja);
	color: var(--apes-tinta);
	padding: 10px 18px;
	border-radius: 8px;
	font-weight: 700;
	text-decoration: none;
	transition: top 0.15s ease;
}

.apes-skip-link:focus {
	position: fixed;
	top: 12px;
	width: auto;
	height: auto;
	clip: auto;
	overflow: visible;
}
