/* ============================================================
   Hazlnut — Base layer
   Light global defaults + brand utility classes. Kept deliberately
   small so the system layers cleanly onto consuming pages.
   ============================================================ */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--lh-body);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--hzl-coral); color: var(--hzl-cream); }

/* ---- Editorial type helpers -------------------------------- */
.hzl-display {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
}
.hzl-accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: var(--fw-light);
  line-height: var(--lh-snug);
}
.hzl-eyebrow {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: var(--text-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}
.hzl-mono {
  font-family: var(--font-mono);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-mono);
}

/* ============================================================
   Brand motifs — the seven geometric marks.
   Recolour by setting `color`; size with width/height (square).
   Built as CSS masks so any motif takes any brand colour.
   Paths are relative to this file (tokens/ -> ../assets/motifs).
   ============================================================ */
.hzl-motif {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  background-color: currentColor;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-size: contain;
          mask-size: contain;
  vertical-align: middle;
  flex: none;
}
/* The seven .hzl-motif--<name> modifiers (mask-image data-URIs) live
   in tokens/motifs.css so any motif recolours via `color`. */

/* A motif sitting inside a coloured square tile (as on the site) */
.hzl-tile {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0px;
}

/* Focus visibility */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
