/*
 * Inter @font-face declarations (self-hosted, Latin subset) and base type
 * rules. Loaded after tokens.css so var(--cm-*) is defined.
 */

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

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/_shared/assets/fonts/Inter-Medium.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/_shared/assets/fonts/Inter-SemiBold.woff2') format('woff2');
}

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

html {
  font-family: var(--cm-font-sans);
  font-size: 16px;
}

body {
  color: var(--cm-text-body);
  line-height: var(--cm-lh-normal);
  font-feature-settings: 'cv11', 'ss01';
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--cm-text-heading);
  line-height: var(--cm-lh-tight);
  margin: 0;
}

h1 {
  font-size: var(--cm-text-2xl);
  font-weight: var(--cm-fw-semibold);
}
h2 {
  font-size: var(--cm-text-xl);
  font-weight: var(--cm-fw-semibold);
}
h3 {
  font-size: var(--cm-text-lg);
  font-weight: var(--cm-fw-semibold);
}
h4 {
  font-size: var(--cm-text-base);
  font-weight: var(--cm-fw-semibold);
}

table,
td,
th {
  font-feature-settings: 'tnum';
}

input,
button,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}
