/* ==========================================================================
   MOT — Base element styles & utility helpers
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  margin: 0 0 0.4em;
  letter-spacing: var(--ls-tight);
}

p { margin: 0 0 1em; text-wrap: pretty; }

a {
  color: var(--mot-blue);
  text-decoration: none;
}
a:hover { color: var(--mot-blue-600); text-decoration: underline; }

small { font-size: var(--fs-sm); }
code, kbd, samp { font-family: var(--font-mono); font-size: 0.92em; }

/* --- Typographic helpers ------------------------------------------------ */
.mot-overline {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-overline);
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
  color: var(--mot-blue);
}
.mot-display { font-size: var(--fs-display); font-weight: var(--fw-extrabold); line-height: var(--lh-tight); }
.mot-lead { font-size: var(--fs-lg); color: var(--text-muted); line-height: var(--lh-relaxed); }

/* --- Focus visibility --------------------------------------------------- */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-sm);
}
