/* TradeWorks — base element styles, resets, links, and print foundations.
   Print is a first-class deliverable (rosters, invoices, agreements), so
   sensible print defaults live here. */

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

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-strong);
  margin: 0;
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
}

p { margin: 0; }

/* Links — defined up front so user-added links never render browser-blue */
a { color: var(--text-link); text-decoration: none; }
a:hover { color: var(--text-link-hover); text-decoration: underline; text-underline-offset: 2px; }

/* Tabular numbers everywhere data is shown */
.tabular, table, .mono { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); }

/* Eyebrow / caps label helper */
.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Focus visibility — never suppressed */
:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-sm);
}

::selection { background: var(--brand-tint); color: var(--text-strong); }

/* ---------------- Print ---------------- */
@media print {
  :root { --surface-app: #fff; }
  body { background: #fff; color: #000; }
  .no-print { display: none !important; }
  a { color: #000; text-decoration: none; }
  @page { margin: 0.6in; }
}
