/* =========================================================
   BASE — reset, typography defaults, and the accessibility
   primitives every other file builds on (focus rings, the
   skip link, sr-only). Nothing component-specific lives here.
========================================================= */
*, *::before, *::after{ box-sizing: border-box; margin: 0; padding: 0; }

html{ font-size: 16px; }

body{
  font-family: var(--ff-sans);
  background: var(--void);
  color: var(--ivory);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a{ color: inherit; text-decoration: none; cursor: pointer; }
img{ display: block; max-width: 100%; }
button{ font-family: inherit; border: none; background: none; cursor: pointer; }
em{ font-style: italic; }
::selection{ background: var(--gold-glow); color: var(--gold2); }

/* Body scroll is locked while the boot sequence or the mobile
   menu owns the screen — one shared class, two callers. */
body.scroll-lock{ overflow: hidden; }

/* --- scrollbar: matches the noir/gold identity instead of the
   browser default --- */
html{ scrollbar-width: thin; scrollbar-color: var(--gold3) var(--void2); }
::-webkit-scrollbar{ width: 10px; height: 10px; }
::-webkit-scrollbar-track{ background: var(--void2); }
::-webkit-scrollbar-thumb{
  background: linear-gradient(var(--gold3), var(--gold));
  border-radius: 6px; border: 2px solid var(--void2);
}
::-webkit-scrollbar-thumb:hover{ background: var(--gold2); }

/* =========================================================
   ACCESSIBILITY — focus rings, skip link, screen-reader-only
========================================================= */
:focus{ outline: none; }
:focus-visible{ outline: 2px solid var(--gold2); outline-offset: 3px; border-radius: 2px; }
a:focus-visible, button:focus-visible{ outline: 2px solid var(--gold2); outline-offset: 3px; }

.skip-link{
  position: fixed; top: -60px; left: 1rem; z-index: 99999;
  background: var(--gold2); color: var(--void);
  font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 12px 20px; border-radius: 2px; font-weight: 600;
  transition: top .25s var(--ease);
}
.skip-link:focus{ top: 1rem; }

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

[data-i18n]{ transition: opacity .16s var(--ease); }
@media (prefers-reduced-motion: reduce){ [data-i18n]{ transition: none; } }
