/* ntvrli design system — base
   Reset, document defaults, accessibility floor. No component styles here. */

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

html {
  background: var(--bone);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--face-mono);
  font-variation-settings: "wdth" 87.5, "wght" 400;
  font-size: var(--t-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Mass type. One face, one weight, uppercase, tight. */
.mass {
  font-family: var(--face-mass);
  font-weight: 400;
  text-transform: uppercase;
  line-height: var(--lh-mass);
  letter-spacing: var(--track-mass);
  color: var(--fg);
}
.mass-crop { font-size: var(--t-crop); }
.mass-head { font-size: var(--t-mass); }

/* Micro labels. Uppercase and tracked is reserved for THIS role only —
   never for running text, where it destroys word shape. */
.micro {
  font-size: var(--t-micro);
  line-height: var(--lh-micro);
  letter-spacing: var(--track-micro);
  text-transform: uppercase;
  /* Small tracked caps lose their stroke before body copy does, so this sits
     closer to the foreground than --fg-quiet and carries extra weight. */
  color: color-mix(in srgb, var(--fg) 72%, var(--ground));
  font-variation-settings: "wdth" 87.5, "wght" var(--micro-weight, 500);
}
.micro-fg { color: var(--fg); }

.lead {
  font-size: var(--t-lead);
  line-height: var(--lh-lead);
  max-width: var(--measure-lead);
  color: var(--fg);
}

.body { max-width: var(--measure); color: var(--fg); }
.body + .body { margin-top: var(--s-3); }
.quiet { color: var(--fg-quiet); }

h1, h2, h3 { font-size: inherit; font-weight: inherit; }

a { color: inherit; }

/* Accessibility floor */
:focus-visible {
  outline: 2px solid var(--fg-accent);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute; top: var(--s-2); left: var(--s-2);
  z-index: 100; padding: var(--s-2) var(--s-3);
  background: var(--ink); color: var(--bone);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
