/* Base — resets, typography, self-hosted fonts */

@font-face {
  font-family: "SSIT Icons";
  src: url('/assets/source/fa-solid-900.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url('/assets/fonts/ibm-plex-sans-variable.woff2') format('woff2-variations'),
       url('/assets/fonts/ibm-plex-sans-variable.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  font-family: "IBM Plex Sans", Arial, sans-serif;
  color: var(--color-ink);
  background: var(--color-primary);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
  background: var(--color-surface);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
}

/* Belt-and-braces: Bootstrap's CDN CSS sets `body{font-family:var(--bs-body-font-family)}`
   directly on body, and several pages hardcode `font-family:Arial` on specific
   heading/paragraph selectors (e.g. .hero h1, .section-title). A directly-matched
   rule on an element always beats an inherited value from :root regardless of
   specificity, so the :root font-family above can silently lose. This override
   guarantees the intended typeface actually renders everywhere. */
body,
h1, h2, h3, h4, h5, h6,
p, span, a, li, button, input, textarea, select, label {
  font-family: "IBM Plex Sans", Arial, sans-serif !important;
}

.fa {
  font-family: "SSIT Icons" !important;
  font-style: normal;
  font-weight: 900;
}

.container {
  width: min(calc(100% - 48px), var(--content));
  margin-inline: auto;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
