/* Canndata — Base element defaults
 * Light-touch resets and the brand reading defaults. Tabular figures are on
 * globally so numbers align everywhere — the rule the whole system depends on.
 */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
  font-weight: var(--weight-regular);
  color: var(--text-body);
  background: var(--surface-page);
  font-variant-numeric: tabular-nums;   /* mandatory across the brand */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-weight: var(--weight-semibold);
  color: var(--text-heading);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: var(--accent); }

/* Tables and charts use square corners and tabular numerals by default. */
table { font-variant-numeric: tabular-nums; border-collapse: collapse; }

/* Visible focus is never removed — a 3px navy ring on every interactive element. */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: var(--focus-width) solid var(--focus-ring);
  outline-offset: 2px;
}

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