/* ==========================================================================
   base.css
   Base typography, resets, and utility classes for Hypecast Authorization API.
   Depends on tokens.css being loaded first (uses CSS custom properties).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Font-face declarations — unified "Spartan" family with weight mapping
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Spartan";
  src: url("/fonts/Spartan-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Spartan-Regular";
  src: url("/fonts/Spartan-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Spartan";
  src: url("/fonts/Spartan-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Spartan-Medium";
  src: url("/fonts/Spartan-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Spartan";
  src: url("/fonts/Spartan-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Spartan-Semibold";
  src: url("/fonts/Spartan-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Spartan";
  src: url("/fonts/Spartan-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Spartan-Bold";
  src: url("/fonts/Spartan-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   Box-sizing reset
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Body reset
   -------------------------------------------------------------------------- */

html,
body {
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--hc-text);
  font-family: "Spartan-Regular", "Helvetica Neue", sans-serif;
  font-weight: 400;
  background-color: var(--hc-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 1281px) {
  html, body {
    font-size: 14px;
  }
}

/* --------------------------------------------------------------------------
   Typography defaults (Figma type scale)
   -------------------------------------------------------------------------- */

h1 {
  font-family: "Spartan", sans-serif;
  font-weight: 700;
  font-size: 50px;
  line-height: 140%;
  letter-spacing: 0.02em;
}

h2 {
  font-family: "Spartan", sans-serif;
  font-weight: 600;
  font-size: 39px;
  line-height: 120%;
}

h3 {
  font-family: "Spartan", sans-serif;
  font-weight: 500;
  font-size: 25px;
}

h4 {
  font-family: 'Spartan-Bold';
}

p {
  font-family: "Spartan", sans-serif;
  font-weight: 400;
}

a {
  color: var(--hc-text-highlight);
  font-weight: 600;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Utility classes
   -------------------------------------------------------------------------- */

.hc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hc-hidden {
  display: none !important;
}
