/* ==========================================================================
   base.css — reset, document defaults, shared utilities, language toggle
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
  overflow-x: hidden;
  overflow-x: clip;               /* clip never creates a scroll container, so sticky keeps working */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
img, svg { max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--blue); color: #fff; }

/* shared utilities */
.in {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: var(--gut);
  padding-right: var(--gutr);
}
.mono { font: 400 12px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: -80px; z-index: 200;
  padding: 12px 18px; border-radius: var(--r-btn);
  background: var(--ink); color: var(--paper); text-decoration: none;
  transition: top .3s var(--ease);
}
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }

/* bilingual content: every string is written once per language */
html[data-lang="en"] [lang="es"],
html[data-lang="es"] [lang="en"] { display: none !important; }
