/* base.css — Royal Play Guide — reset, tipografía, tokens de color */
:root {
  --color-bg-primary: #0E3B4D;
  --color-surface: #154A60;
  --color-accent: #E8A23C;
  --color-bg-light: #F7F5EF;
  --color-text-on-light: #162228;
  --color-text-on-dark: #EAF3F6;
  --color-warning: #B2552A;
  --color-success: #2E7D5B;
  --font-heading: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius: 10px;
  --max-width: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html.gate-pending main,
html.gate-pending .site-footer,
html.gate-pending .cookie-banner {
  visibility: hidden !important;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-bg-primary);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: 1.6em; }
h3 { font-size: 1.2rem; margin-top: 1.2em; }

p { margin: 0 0 1em; }
a { color: var(--color-bg-primary); text-decoration: underline; }
a:hover { color: var(--color-accent); }

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

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-accent);
  color: #162228;
  padding: 0.6em 1em;
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

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