/* ============================================================
   TEND — BASE ELEMENT DEFAULTS & UTILITY PRIMITIVES
   Opt-in foundation. Sets the warm page, body type, and a few
   text-role helpers used across artefacts.
   ============================================================ */

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

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

/* Display headings use the serif; emphasis is weight, never slant */
h1, h2, h3, .tend-display {
  font-family: var(--font-display);
  font-weight: var(--w-semibold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  color: var(--text-body);
  margin: 0;
  text-wrap: balance;
}

p { text-wrap: pretty; }

/* Italic only inside a quote */
em, i { font-style: normal; }
blockquote em, blockquote i, .tend-quote { font-style: italic; }

/* Eyebrow / overline label */
.tend-eyebrow {
  font-family: var(--font-body);
  font-weight: var(--w-semibold);
  font-size: var(--text-eyebrow-size);
  letter-spacing: var(--text-eyebrow-track);
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* Tabular data */
.tend-data {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--ls-data);
  font-feature-settings: "tnum" 1;
}

/* The TEND wordmark lockup (text-set fallback; see brand assets for SVG) */
.tend-wordmark {
  font-family: var(--font-display);
  font-weight: var(--w-semibold);
  letter-spacing: 0.02em;
  color: var(--text-body);
}

/* Confidentiality strip */
.tend-confidential {
  font-family: var(--font-body);
  font-size: var(--t-micro);
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}

:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--r-xs); }

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