/* Causario — tokens y reset de las superficies públicas: portada, acceso y
 * páginas legales. Se carga junto a fuentes.css y antes de la hoja de cada
 * página, que sólo añade encima lo suyo.
 */

:root {
  color-scheme: light;
  --ink: #0d1421;
  --ink-hover: #172033;
  --text: #172033;
  --muted: #596579;
  --line: #e5e9f0;
  --line-strong: #d0d7e2;
  --surface: #f8fafc;
  --authority: #785a21;
  --authority-on-dark: #d9b871;
  --danger: #9f2f2f;
  --danger-soft: #fff1f0;
  --font-ui: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: Newsreader, Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html, body { min-width: 320px; }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 15px/1.55 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, input { font: inherit; }

a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--muted); }

:focus-visible { outline: 3px solid rgb(13 20 33 / 24%); outline-offset: 2px; }

.skip-link {
  position: fixed;
  z-index: 30;
  top: 8px;
  left: 8px;
  padding: 9px 13px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(calc(-100% - 14px));
}

.skip-link:focus { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
