/* BASE — reset, page background layers, typography defaults, focus. */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--c-bg); overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  min-height: 100vh;
  color: var(--c-ivory);
  font-family: var(--font-ui);
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

/* ---- Page background: 4 layers (base / dark gradients / glows / grain) --
   Fixed, behind everything. Glows near the figure live in hero.css. */
.page-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 95% at 64% 42%, transparent 38%, rgba(14, 11, 8, .62) 100%),
    linear-gradient(180deg, rgba(14, 11, 8, .55) 0%, transparent 24%, transparent 66%, rgba(14, 11, 8, .7) 100%),
    radial-gradient(70% 60% at 0% 100%, rgba(156, 123, 60, .06), transparent 70%),
    var(--c-bg);
}
.page-bg::after { /* static film grain, never animated */
  content: ""; position: absolute; inset: 0;
  background-image: var(--grain);
  background-size: 180px 180px;
  opacity: var(--grain-opacity);
  mix-blend-mode: overlay;
}

/* ---- Focus ---- */
:focus-visible {
  outline: 1px solid var(--c-gold-light);
  outline-offset: 6px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---- Micro label (shared) ---- */
.label {
  font-family: var(--font-ui);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--c-ivory-dim);
}
