/* One family across public pages, ballots, community and private administration. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter/InterVariable.woff2") format("woff2");
}

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

:root {
  --mc-font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-family: var(--mc-font-sans);
}

/* Layered important declarations outrank legacy unlayered important rules.
   Override only the family, preserving page sizes, spacing and line heights. */
@layer mc-typography {
  *, *::before, *::after {
    font-family: var(--mc-font-sans) !important;
  }

  ::placeholder {
    font-family: var(--mc-font-sans) !important;
  }

  ::file-selector-button {
    font-family: var(--mc-font-sans) !important;
  }
}

/* Strong, modern headlines; leave existing sizes, colors and layout intact. */
html body :is(h1) { font-weight: 850; }
html body :is(h2) { font-weight: 750; }
html body :is(h3) { font-weight: 700; }
