/* base.css — Estrellas del Mundial
   Reset, variables, tipografía base, utilidades */

:root {
  --black: #0a0a0b;
  --black-2: #111114;
  --black-3: #18181c;
  --ink: #1d1d22;
  --gold: #d4af37;
  --gold-2: #f3d98b;
  --gold-soft: #b8932e;
  --paper: #f6f1e7;
  --paper-2: #ece4d3;
  --text: #ece7dc;
  --text-dim: #b7b1a3;
  --text-faint: #8a857a;
  --line: rgba(212, 175, 55, 0.22);
  --line-soft: rgba(255, 255, 255, 0.08);
  --maxw: 1200px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

* {
  margin: 0;
}

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

body {
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(212, 175, 55, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(212, 175, 55, 0.06), transparent 55%),
    var(--black);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  letter-spacing: 0.01em;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

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

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

h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
}

h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.9rem);
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
}

p {
  color: var(--text-dim);
}

strong {
  color: var(--text);
  font-weight: 600;
}

::selection {
  background: var(--gold);
  color: var(--black);
}

/* ----- utilidades ----- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-2);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.gold {
  color: var(--gold-2);
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-dim);
  max-width: 60ch;
}

.section {
  padding-block: clamp(56px, 9vw, 110px);
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
  border: 0;
}

.center {
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--gold);
  color: var(--black);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: 600;
}

.skip-link:focus {
  left: 16px;
}

:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
