/*
 * Deelos ERP typography policy.
 * Keep this file small and load it on every HTML surface.
 */

@font-face {
  font-family: "InterVariable";
  src: url("../fonts/inter/web/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "InterVariable";
  src: url("../fonts/inter/web/InterVariable-Italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --deelos-font-family: "InterVariable", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --deelos-heading-font-family: var(--deelos-font-family);
  --bs-body-font-family: var(--deelos-font-family);
  --bs-font-sans-serif: var(--deelos-font-family);
}

html,
body,
button,
input,
select,
textarea,
optgroup {
  font-family: var(--deelos-font-family);
}

/* Keep common ERP and Bootstrap surfaces on one consistent UI family. */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-family: var(--deelos-heading-font-family);
}

.btn,
.form-control,
.form-select,
.input-group-text,
.dropdown-menu,
.modal,
.offcanvas,
.popover,
.tooltip,
table,
.table {
  font-family: var(--deelos-font-family);
}

body {
  font-optical-sizing: auto;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
