/* Font stack custom properties.
   Sans (Cabinet Grotesk) and serif (Gambetta) are loaded from Fontshare
   via the @import at the top of common.css. */
:root {
  --font-sans: 'Cabinet Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-sans-fallback: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Font weight utilities */
.font-light {
  font-weight: 300;
}

.font-regular {
  font-weight: 400;
}

.font-medium {
  font-weight: 500;
}

.font-bold {
  font-weight: 700;
}

.font-black {
  font-weight: 900;
}

/* Latin Modern (for code/preformatted blocks) */
@font-face {
  font-display: swap;
  font-family: latin modern mono;
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/lmmono-bold.woff');
}
@font-face {
  font-display: swap;
  font-family: latin modern mono;
  font-style: italic;
  font-weight: 700;
  src: url('../fonts/lmmono-bolditalic.woff');
}
@font-face {
  font-display: swap;
  font-family: latin modern mono;
  font-style: italic;
  font-weight: 400;
  src: url('../fonts/lmmono-italic.woff');
}
@font-face {
  font-display: swap;
  font-family: latin modern mono;
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/lmmono-normal.woff');
}
@font-face {
  font-display: swap;
  font-family: latin modern roman;
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/lmroman-bold.woff');
}
@font-face {
  font-display: swap;
  font-family: latin modern roman;
  font-style: italic;
  font-weight: 700;
  src: url('../fonts/lmroman-bolditalic.woff');
}
@font-face {
  font-display: swap;
  font-family: latin modern roman;
  font-style: italic;
  font-weight: 400;
  src: url('../fonts/lmroman-italic.woff');
}
@font-face {
  font-display: swap;
  font-family: latin modern roman;
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/lmroman-normal.woff');
}

/* Chakra Petch (self-hosted) — wordmark */
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    local('Chakra Petch Regular'),
    local('ChakraPetch-Regular'),
    url('/fonts/chakra-petch/chakra-petch-v12-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src:
    local('Chakra Petch Medium'),
    local('ChakraPetch-Medium'),
    url('/fonts/chakra-petch/chakra-petch-v12-latin-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src:
    local('Chakra Petch SemiBold'),
    local('ChakraPetch-SemiBold'),
    url('/fonts/chakra-petch/chakra-petch-v12-latin-600.woff2') format('woff2');
}
