/* ============================================================
   Azpigorri — Base element styling + a few brand utilities.
   Light reset so specimen cards & kits inherit the right feel.
   ============================================================ */

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

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

/* Headlines default to Vasca (all-caps display) */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  color: var(--text-strong);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  margin: 0 0 var(--space-4);
  text-transform: uppercase;
}
h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }

/* Sub-heads / UI titles use the body font for legibility */
h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  color: var(--text-strong);
  line-height: var(--leading-snug);
  margin: 0 0 var(--space-3);
}
h4 { font-size: var(--text-lg); }
h5 { font-size: var(--text-md); }
h6 { font-size: var(--text-sm); text-transform: uppercase; letter-spacing: var(--tracking-wide); }

p { margin: 0 0 var(--space-4); }
a { color: var(--text-link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

strong { font-weight: var(--weight-bold); }
hr { border: none; border-top: var(--border-hair) solid var(--border-default); margin: var(--space-6) 0; }

::selection { background: var(--rust-200); color: var(--ink-900); }

:focus-visible {
  outline: var(--border-thick) solid var(--focus-ring);
  outline-offset: 2px;
}

/* ---- Brand utilities ---- */

/* Eyebrow: small Vasca caps with wide tracking */
.az-eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  font-size: var(--text-2xs);
  color: var(--text-accent);
  line-height: 1;
}

/* Editorial serif lede */
.az-lede {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--text-body);
}

/* Hard letterpress framed block */
.az-stamp {
  border: var(--border-stamp) solid var(--ink-800);
  box-shadow: var(--shadow-stamp);
}

/* Mountain-rule: a thin rust rule used as a section divider */
.az-rule {
  height: 0;
  border-top: var(--border-thick) solid var(--rust-600);
  width: 56px;
}
