@font-face {
  font-family: "GT Planar VF";
  src:
    url("~/assets/fonts/GT-Planar-VF.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("~/assets/fonts/Inter.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("~/assets/fonts/Inter.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("~/assets/fonts/Inter.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("~/assets/fonts/Inter.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/*  WEBFONTS OPTIMIZE   */
*,
*::after,
*::before {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html {
  font-size: $font-size-base;
}

body {
  font-family: $font-body;
  font-weight: $font-body-weight;
  font-style: $font-body-style;
  font-size: $font-size-p-mobile;
  line-height: $line-height-p;
  color: $font-body-color;
  letter-spacing: 0.02em;

  @include breakpoint-sm {
    font-size: $font-size-p;
  }
}

h1,
.h1 {
  @include h1;
}

h2,
.h2 {
  @include h2;
}

h3,
.h3 {
  @include h3;
}

h4,
.h4 {
  @include h4;
}

h5,
.h5 {
  @include h5;
}

h6,
.h6 {
  @include h6;
}

u {
  h1 &,
  .h1 &,
  h2 &,
  .h2 &,
  h3 &,
  .h3 &,
  h4 &,
  .h4 &,
  h5 &,
  .h5 &,
  h6 &,
  .h6 & {
    font-variation-settings: $font-slnt-30-positive;
    display: inline-block;
  }
}

strike {
  h1 &,
  .h1 &,
  h2 &,
  .h2 &,
  h3 &,
  .h3 &,
  h4 &,
  .h4 &,
  h5 &,
  .h5 &,
  h6 &,
  .h6 & {
    font-variation-settings: $font-slnt-30-negative;
    display: inline-block;
    text-decoration: none;
    position: relative;

    &::after {
      width: 100%;
      display: block;
      position: absolute;
      background-color: $color-bright-blue;
    }
  }
}

p {
  font-size: $font-size-p-mobile;
  line-height: $line-height-p;

  @include breakpoint-sm {
    font-size: $font-size-p;
  }

  a {
    @include btn--link;

    color: inherit;
  }

  u {
    text-decoration-color: $color-bright-blue;
  }
}

.label,
.text-large {
  @include text-large;
}

.text-small {
  font-size: 2rem;
  line-height: 150%;
  font-weight: $font-weight-light;
}

.text-xsmall {
  font-size: 1.6rem;
  line-height: 150%;
  font-weight: $font-weight-light;
}

.text-xxsmall {
  font-size: 1.4rem;
  line-height: 140%;
  font-weight: $font-weight-light;
}

input,
textarea,
button,
select {
  -webkit-font-smoothing: antialiased;
  font-family: $font-body;
  font-weight: $font-body-weight;
  text-size-adjust: 100%;
}

a {
  text-decoration: none;
}

a:focus {
  outline: none;
}
