/* ============================================================
   BASE — reset, typography foundation, global element defaults
   ------------------------------------------------------------
   Framework-agnostic. Depends on tokens.css being imported
   first. Two-font system:
     - Inter  → UI / body
     - Sora   → display (headings, metrics, large numerals)
   Install with:
     npm i @fontsource/inter @fontsource/sora
   then import the weights you use in your entry file, e.g.:
     import "@fontsource/inter/400.css";  (400/500/600/700/800)
     import "@fontsource/sora/700.css";   (700/800)
   ============================================================ */

:root {
  color: var(--text);
  background: var(--background);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}

button {
  font: inherit;
}

select,
input,
textarea {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ------------------------------------------------------------
   DISPLAY TYPOGRAPHY
   Sora is applied EXPLICITLY. Without this, everything collapses
   to Inter and the display/body contrast — a defining trait of
   the style — is lost. Add your own display hooks to this list.
   ------------------------------------------------------------ */
h1,
h2,
h3,
.display {
  font-family: Sora, Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ------------------------------------------------------------
   UTILITIES
   ------------------------------------------------------------ */
.mono {
  font-family: ui-monospace, SFMono-Regular, Consolas,
    "Liberation Mono", monospace;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.spin {
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
