/*******************************************
                Headings
********************************************/

:root {
  font-size: 16px;
}

html {
  font-size: var(--typography-base);
  font-family: var(--font-family-body);
  line-height: 1.6;
}

h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5,
h6, .h6 {
  word-break: break-word;
  -webkit-hyphens: auto;
          hyphens: auto;
  font-family: var(--font-family-headings);
  text-wrap: pretty;
}

@media screen and (min-width: 600px) {
  h1, .h1,
  h2, .h2,
  h3, .h3,
  h4, .h4,
  h5, .h5,
  h6, .h6 {
    word-break: auto-phrase;
  }
}

h1, .h1 {
  font-family: 'Montserrat';
  font-size: var(--typography-xxxl);
  //color: var(--color-primary);
  line-height: 1.1;
  margin-block: var(--rhyme-lg);
  margin-block: 0 0.5rem;
}

h2, .h2 {
  font-size: var(--typography-xxl);
  //color: var(--color-primary);
  line-height: 1.1;
  margin-block: var(--rhyme-xxxl) var(--rhyme-md);
}

h2::after, .h2::after {
  display: block;
  content: '';
  width: 4rem;
  height: 6px;
  background-color: var(--color-primary);
  margin-inline: auto;
  margin-top: 0.5rem;
}

h3, .h3 {
  font-size: var(--typography-xl);
  //color: var(--color-primary);
  line-height: 1.2;
  margin-block: var(--rhyme-xxxl) var(--rhyme-base);
}

h4, .h4 {
  font-size: var(--typography-lg);
  //color: var(--color-primary);
  line-height: 1.2;
  margin-block: var(--rhyme-lg);
}

h5, .h5 {
  font-size: var(--typography-md);
  //color: var(--color-primary);
  line-height: 1.2;
  margin-block: var(--rhyme-lg);
}

h6, .h6 {
  font-size: var(--typography-base);
  //color: var(--color-primary);
  line-height: 1.2;
  margin-block: var(--rhyme-base);
}

p {
  margin-top: 1lh;
  margin-bottom: 1lh;
}

::-moz-selection { /* Code for Firefox */
  color: var(--color-highlight-text, white);
  background: var(--color-highlight-bg, dodgerblue);
}

::selection {
  color: var(--color-highlight-text, white);
  background: var(--color-highlight-bg, dodgerblue);
}

/* montserrat-regular - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: url('../../fonts/montserrat-v26-latin_latin-ext-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-italic - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 400;
  src: url('../../fonts/montserrat-v26-latin_latin-ext-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-700 - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  src: url('../../fonts/montserrat-v26-latin_latin-ext-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-700italic - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 700;
  src: url('../../fonts/montserrat-v26-latin_latin-ext-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
