/* ============================================
   Font Face Declarations
   ============================================ */

@font-face {
  font-family: 'HD Microbic Roman';
  src: url('../assets/fonts/HDMicrobic-Roman.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HD Microbic Italic';
  src: url('../assets/fonts/HDMicrobic-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HD Microbic Condensed';
  src: url('../assets/fonts/HDMicrobic-Condensed.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HD Microbic Mono';
  src: url('../assets/fonts/HDMicrobic-Mono.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FK Grotesk';
  src: url('../assets/fonts/FKGrotesk-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FK Grotesk';
  src: url('../assets/fonts/FKGrotesk-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============================================
   Base Styles
   ============================================ */

html {
  scroll-behavior: smooth;
  background-color: var(--color-paper);
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-charcoal);
  background-color: var(--color-paper);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ============================================
   Typography
   ============================================ */

h1 {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  line-height: var(--leading-heading);
}

h2 {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  line-height: var(--leading-heading);
}

h3 {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  line-height: var(--leading-heading);
}

strong, b {
  font-weight: 700;
}

/* ============================================
   Accessibility
   ============================================ */

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

/* Focus styles for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--color-cash);
  outline-offset: 2px;
}
