/* ═══════════════════════════════════════════════════════════════════════════
   On Energy — Design System entry point
   Consumers link THIS file only. It is a manifest of @import lines; every
   token and @font-face rule ships through this closure.
   ═══════════════════════════════════════════════════════════════════════════ */

@import './tokens/fonts.css';
@import './tokens/colors.css';
@import './tokens/typography.css';
@import './tokens/spacing.css';

/* ── Global base ─────────────────────────────────────────────────────────── */
html {
  font-size: 15px;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-weight: var(--font-weight-normal);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-medium);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  margin: 0;
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

p { margin: 0; }

code, pre, kbd {
  font-family: var(--font-mono);
  font-variant-numeric: normal;
}

::selection {
  background: var(--brand-lime);
  color: var(--foreground);
}
