/* =========================================================================
   Plexamed — base.css: fontes self-hosted + reset + defaults tipográficos.
   Importa os tokens; é o único ponto de entrada que um app precisa para aderir
   ao design system:  import "@plexamed/design/base.css"
   ========================================================================= */

@import url("./tokens.css");

/* ---------- Fontes (variáveis, subset latin — cobre pt-br) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("./fonts/inter-var-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("./fonts/space-grotesk-var-latin.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("./fonts/jetbrains-mono-var-latin.woff2") format("woff2");
}

/* ---------- Reset mínimo ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--t-15);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- Defaults tipográficos ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 var(--s-3);
  letter-spacing: -0.01em;
}
h1 { font-size: var(--t-32); font-weight: 600; }
h2 { font-size: var(--t-22); font-weight: 600; }
h3 { font-size: var(--t-17); font-weight: 600; }
p  { margin: 0 0 var(--s-3); max-width: var(--measure); }
a  { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre, kbd { font-family: var(--font-mono); font-size: 0.92em; }
hr { border: 0; border-top: 1px solid var(--hairline); margin: var(--s-5) 0; }
::selection { background: var(--accent-soft); }
