/* Consuma — base resets & helpful primitives.
   Lightweight: sets the canvas, typography defaults, and a few utility
   classes used across specimen cards. Components style themselves via tokens. */

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

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

/* Theme override classes (Tailwind convention). Default on :root is
   `color-scheme: light dark` (follows system); these force one scheme. */
.dark  { color-scheme: dark; }
.light { color-scheme: light; }

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

h1, h2, h3, h4, h5, p { margin: 0; }

a { color: var(--color-text-link); text-decoration: none; }
a:hover { color: var(--color-brand-hover); }

::selection { background: light-dark(var(--color-violet-200), var(--color-violet-700)); color: light-dark(var(--color-violet-900), var(--color-violet-100)); }

:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

/* Type helper classes (optional convenience) */
.display-2xl { font-family: var(--font-display); font-weight: var(--text-display-2xl--font-weight); font-size: var(--text-display-2xl); line-height: var(--text-display-2xl--line-height); letter-spacing: var(--text-display-2xl--letter-spacing); color: var(--color-text-strong); }
.display-xl  { font-family: var(--font-display); font-weight: var(--text-display-xl--font-weight);  font-size: var(--text-display-xl);  line-height: var(--text-display-xl--line-height);  letter-spacing: var(--text-display-xl--letter-spacing);  color: var(--color-text-strong); }
.display-lg  { font-family: var(--font-display); font-weight: var(--text-display-lg--font-weight);  font-size: var(--text-display-lg);  line-height: var(--text-display-lg--line-height);  letter-spacing: var(--text-display-lg--letter-spacing);  color: var(--color-text-strong); }
.h1 { font-weight: var(--text-h1--font-weight); font-size: var(--text-h1); line-height: var(--text-h1--line-height); letter-spacing: var(--text-h1--letter-spacing); color: var(--color-text-strong); }
.h2 { font-weight: var(--text-h2--font-weight); font-size: var(--text-h2); line-height: var(--text-h2--line-height); letter-spacing: var(--text-h2--letter-spacing); color: var(--color-text-strong); }
.h3 { font-weight: var(--text-h3--font-weight); font-size: var(--text-h3); line-height: var(--text-h3--line-height); letter-spacing: var(--text-h3--letter-spacing); color: var(--color-text-strong); }
.h4 { font-weight: var(--text-h4--font-weight); font-size: var(--text-h4); line-height: var(--text-h4--line-height); color: var(--color-text-strong); }
.body-lg { font-size: var(--text-body-lg); line-height: var(--text-body-lg--line-height); }
.body    { font-size: var(--text-body); line-height: var(--text-body--line-height); }
.body-sm { font-size: var(--text-body-sm); line-height: var(--text-body-sm--line-height); }
.caption { font-size: var(--text-caption); line-height: var(--text-caption--line-height); color: var(--color-text-muted); }
.overline { font-size: var(--text-overline); line-height: var(--text-overline--line-height); letter-spacing: var(--text-overline--letter-spacing); text-transform: uppercase; font-weight: var(--text-overline--font-weight); color: var(--color-text-muted); }
.mono { font-family: var(--font-mono); }
.tnum { font-variant-numeric: tabular-nums; }
