@layer theme, base, components, utilities;

@font-face {
  font-family: 'SF Pro Display';
  src: url('./sf-pro/sf-pro-display-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'SF Pro Display';
  src: url('./sf-pro/sf-pro-display-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'SF Pro Display';
  src: url('./sf-pro/sf-pro-display-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'SF Pro Display';
  src: url('./sf-pro/sf-pro-display-400-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'SF Pro Display';
  src: url('./sf-pro/sf-pro-display-500-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'SF Pro Display';
  src: url('./sf-pro/sf-pro-display-600-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'SF Pro Text';
  src: url('./sf-pro/sf-pro-text-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'SF Pro Text';
  src: url('./sf-pro/sf-pro-text-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'SF Pro Text';
  src: url('./sf-pro/sf-pro-text-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'SF Pro Text';
  src: url('./sf-pro/sf-pro-text-400-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'SF Pro Text';
  src: url('./sf-pro/sf-pro-text-500-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'SF Pro Text';
  src: url('./sf-pro/sf-pro-text-600-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 600;
  font-display: swap;
}

:root {
  --font-text-family: 'SF Pro Text', sans-serif;
  --font-display-family: 'SF Pro Display', sans-serif;
  font-family: var(--font-text-family);
}

:where(h1, h2, h3, h4, h5, h6, [role='heading']) {
  font-family: var(--font-display-family);
}

:where(button, input, optgroup, select, textarea, pre, code, kbd, samp) {
  font-family: inherit;
}

@layer base {
  :root :is(h1, h2, h3, h4, h5, h6, b, strong, th) {
    font-weight: 600;
  }
}
