/* base.css — Golden Lounge: tokens, reset, tipografía */

:root {
  --color-bg-dark: #0D1B3D;
  --color-surface: #162650;
  --color-accent: #E3A33B;
  --color-bg-light: #F7F5EE;
  --color-text-light: #171A22;
  --color-text-dark: #EEF1F8;
  --color-warning: #B2552A;
  --color-success: #2E7D5B;

  --font-heading: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --radius: 10px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg-light);
  color: var(--color-text-light);
  line-height: 1.6;
  font-size: 1rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-text-light);
  margin-top: 0;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 var(--space-2); }

a {
  color: var(--color-warning);
  text-decoration: underline;
}

a:hover { text-decoration: none; }

ul, ol { padding-left: 1.25rem; }

code {
  background: #eee;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  font-size: 0.9em;
}

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

/* Foco visible en todo elemento interactivo */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-accent);
  color: var(--color-text-light);
  padding: 0.5rem 1rem;
  z-index: 1000;
  font-weight: 600;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* Oculta <main> hasta que el age gate decida (ver edadgate.js) */
html.age-gate-pending main,
html.age-gate-pending .site-footer {
  visibility: hidden;
}

html.age-gate-blocked main.site-blocked-content,
html.age-gate-blocked .site-footer {
  display: none;
}
