/* ==========================================================================
   core.css — variables, fuentes, reset, tipografia base
   Mundo de Juegos / Cordoba
   ========================================================================== */

@font-face {
	font-family: "Unbounded";
	font-weight: 400 900;
	font-style: normal;
	font-display: swap;
	src: url("../fonts/unbounded-latin.woff2") format("woff2");
}

@font-face {
	font-family: "Manrope";
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
	src: url("../fonts/manrope-latin.woff2") format("woff2");
}

:root {
	/* color */
	--c-black: #07080B;
	--c-black-2: #0D1016;
	--c-black-3: #14171F;
	--c-bone: #EAEBEA;
	--c-bone-dim: #A9ACB2;
	--c-cobalt: #2F5FFB;
	--c-cobalt-light: #6E8CFF;
	--c-cobalt-deep: #1C3AA8;
	--c-ink: #12141A;
	--c-line: #23262F;
	--c-accent-soft: #3C4664;

	/* tipografia */
	--f-display: "Unbounded", "Segoe UI", sans-serif;
	--f-text: "Manrope", "Segoe UI", sans-serif;

	/* layout */
	--container: 1180px;
	--radius-s: 6px;
	--radius-m: 14px;
	--radius-l: 26px;
	--gap-section: 128px;

	/* movimiento */
	--ease-stage: cubic-bezier(.22, .61, .36, 1);
}

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

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

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	margin: 0;
	padding: 0;
	background: var(--c-black);
	color: var(--c-bone);
	font-family: var(--f-text);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
	margin: 0;
	font-family: var(--f-display);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.01em;
}

p {
	margin: 0 0 16px;
	color: var(--c-bone-dim);
}

p:last-child {
	margin-bottom: 0;
}

a {
	color: var(--c-cobalt-light);
	text-decoration-color: rgba(110, 140, 255, .45);
	text-underline-offset: 3px;
}

a:hover {
	text-decoration-color: currentColor;
}

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

ul, ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

button {
	font-family: inherit;
	cursor: pointer;
}

address {
	font-style: normal;
}

table {
	border-collapse: collapse;
	width: 100%;
}

/* TODO: revisar el contraste del texto secundario en fondos claros con luz de escenario */

/* --- accesibilidad --- */

.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-nav {
	position: absolute;
	top: -100px;
	left: 12px;
	z-index: 1000;
	background: var(--c-cobalt);
	color: var(--c-black);
	font-weight: 700;
	padding: 12px 20px;
	border-radius: var(--radius-s);
	transition: top .18s var(--ease-stage);
}

.skip-nav:focus {
	top: 12px;
}

:focus-visible {
	outline: 3px solid var(--c-cobalt-light);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.skip-nav {
		transition: none;
	}
}
