/* ============================================================
 * ARENA RESPAWN -- root.css
 * Variables, reset, tipografía base y utilidades.
 * ============================================================ */

@font-face {
	font-family: "Tektur";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/tektur-700.woff2") format("woff2");
}
@font-face {
	font-family: "Tektur";
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url("../fonts/tektur-800.woff2") format("woff2");
}
@font-face {
	font-family: "Tektur";
	font-style: normal;
	font-weight: 900;
	font-display: swap;
	src: url("../fonts/tektur-900.woff2") format("woff2");
}
@font-face {
	font-family: "Onest";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/onest-400.woff2") format("woff2");
}
@font-face {
	font-family: "Onest";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/onest-500.woff2") format("woff2");
}
@font-face {
	font-family: "Onest";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/onest-600.woff2") format("woff2");
}
@font-face {
	font-family: "Onest";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/onest-700.woff2") format("woff2");
}

/* ------------------------------------------------------------
 * Variables de marca
 * ------------------------------------------------------------ */
:root {
	--color-papel: #F7F4EE;
	--color-papel-alt: #ECE8DF;
	--color-tinta: #191721;
	--color-tinta-suave: #4C4956;
	--color-acento: #E8541E;
	--color-acento-suave: #F2A480;
	--color-borde: #D9D3C4;
	--color-blanco: #FFFFFF;

	--font-display: "Tektur", "Arial Narrow", sans-serif;
	--font-texto: "Onest", "Segoe UI", sans-serif;

	--container-w: 1180px;
	--space-1: 8px;
	--space-2: 12px;
	--space-3: 20px;
	--space-4: 32px;
	--space-5: 48px;
	--space-6: 72px;
	--space-7: 104px;

	--radio-s: 4px;
	--radio-m: 10px;

	--sombra-glow: 0 30px 80px -30px rgba(232, 84, 30, 0.35);
}

/* ------------------------------------------------------------
 * Reset
 * ------------------------------------------------------------ */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body,
h1, h2, h3, h4, p,
ul, ol, dl, dd,
figure {
	margin: 0;
}

ul, ol {
	padding: 0;
	list-style: none;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	cursor: pointer;
}

table {
	border-collapse: collapse;
}

/* ------------------------------------------------------------
 * Base
 * ------------------------------------------------------------ */
body {
	background-color: var(--color-papel);
	color: var(--color-tinta);
	font-family: var(--font-texto);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: 0.2px;
}

p {
	max-width: 62ch;
}

::selection {
	background: var(--color-acento);
	color: var(--color-papel);
}

/* ------------------------------------------------------------
 * Foco visible y accesibilidad
 * ------------------------------------------------------------ */
:focus-visible {
	outline: 3px solid var(--color-acento);
	outline-offset: 3px;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip {
	position: absolute;
	top: -100px;
	left: 12px;
	z-index: 500;
	padding: 12px 20px;
	background-color: var(--color-tinta);
	color: var(--color-papel);
	font-family: var(--font-texto);
	font-weight: 600;
	border-radius: var(--radio-s);
	transition: top 0.18s ease;
}

.skip:focus {
	top: 12px;
}

/* ------------------------------------------------------------
 * Contenedor editorial
 * ------------------------------------------------------------ */
.container {
	width: 100%;
	max-width: var(--container-w);
	margin-left: auto;
	margin-right: auto;
	padding-left: 48px;
	padding-right: 48px;
}

.container-narrow {
	max-width: 820px;
}

/* rotulo de rubrica, como una volanta de diario deportivo */
.rubric {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-texto);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 2.2px;
	text-transform: uppercase;
	color: var(--color-acento);
}

.rubric::before {
	content: "";
	width: 28px;
	height: 2px;
	background-color: var(--color-acento);
}

.pagenum {
	font-family: var(--font-display);
	font-size: 13px;
	color: var(--color-tinta-suave);
	letter-spacing: 1px;
}

/* TODO: revisar el interlineado de .lede en pantallas muy angostas cuando llegue el rediseño de tipografía móvil */
.lede {
	font-size: 19px;
	color: var(--color-tinta-suave);
	max-width: 56ch;
}

@media (max-width: 960px) {
	.container {
		padding-left: 28px;
		padding-right: 28px;
	}
}

@media (max-width: 600px) {
	body {
		font-size: 16px;
	}
	.container {
		padding-left: 20px;
		padding-right: 20px;
	}
	.lede {
		font-size: 17px;
	}
}
