/* ============================================================
   OFG — BASE / RESET / TYPOGRAPHY SYSTEM
   ============================================================ */

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

/* the [hidden] attribute must always win over display rules */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: var(--leading-body);
  font-weight: var(--weight-reg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

button { font: inherit; color: inherit; cursor: pointer; }

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

/* ---- DISPLAY TYPE ---- */
.display {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-solid);
  text-transform: uppercase;
  margin: 0;
}

/* micro editorial copy — OFG / 001, PLAYGROUND STATUS : ACTIVE */
.micro {
  font-family: var(--font-mono);
  font-size: var(--step-micro);
  font-weight: var(--weight-med);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  line-height: 1.4;
}

.lead {
  font-family: var(--font-display);
  font-weight: var(--weight-med);
  font-size: var(--step-lead);
  letter-spacing: var(--tracking-tight);
  line-height: 1.05;
  text-transform: uppercase;
  margin: 0;
}

/* ---- ACCESSIBILITY ---- */
:focus-visible {
  outline: var(--pixel) solid var(--ofg-pink);
  outline-offset: 3px;
}

.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;
}

.skip-link {
  position: absolute; top: -100%; left: var(--gutter);
  background: var(--ofg-black); color: var(--ofg-cream);
  padding: var(--space-2) var(--space-3); z-index: var(--z-overlay);
}
.skip-link:focus { top: var(--space-3); }

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