@mixin font($font-family, $font-file, $font-extension, $font-style) {
  @font-face {
    font-family: $font-family;
    src: url($font-file + $font-extension) format("truetype");
    font-weight: normal;
    font-style: $font-style;
  }
}

@include font(
  "Ratio",
  "../font/Ratio_OT_FullFamily/Ratio_OT_v1/psRatioBold",
  ".otf",
  "normal"
);


$ratio: "Ratio", sans-serif;
$arial: "Arial", sans-serif;

@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  src: local('Material Icons'),
    local('MaterialIcons-Regular'),
    url(../font/material-design-icons/font/MaterialIcons-Regular.ttf) format('truetype');
}

$materialIcons: "Material Icons", "MaterialIcons-Regular";

.material-icons {
  font-family: $materialIcons;
  font-weight: normal;
  font-style: normal;
  font-size: 24px;  /* Preferred icon size */
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;

  /* Support for all WebKit browsers. */
  -webkit-font-smoothing: antialiased;
  /* Support for Safari and Chrome. */
  text-rendering: optimizeLegibility;

  /* Support for Firefox. */
  -moz-osx-font-smoothing: grayscale;

  /* Support for IE. */
  font-feature-settings: 'liga';
}

i {
  .tiny {
   font-size:  1rem;
  }

  .small {
   font-size:  2rem;
  }

  .medium {
   font-size:  4rem;
  }

  .tiny {
   font-size:  6rem;
  }
}


h1,
h2,
h3,
p {
  margin-block-start: 0;
  margin-block-end: 0;

  a {
    text-decoration: underline;
  }
}

h1,
h2,
h3,
a,
strong {
  font-weight: bold;

  a {
    text-decoration: underline;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: $zim_green;
  font-family: $ratio;

  a {
    text-decoration: underline;
  }
}

a,
p,
strong {
  color: $text_primary;
}

h1 {
  font-size: 75px;
  line-height: 1.17;
  margin-bottom: 50px;
}

h2 {
  font-size: 40px;
  line-height: 1.25;
  margin-bottom: 35px;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.33;
}

p,
span,
ul li {
  font-family: $arial;
  font-size: 20px;
  font-weight: normal;
  line-height: 1.5;

  &.bold {
    font-weight: bold;
  }
}

strong {
  font-family: $arial;
  font-weight: bold;
}

small {
  font-family: $arial;
  font-weight: normal;
}

@media only screen and (max-width: $breakpoint_notebook) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.4rem;
    line-height: 1.305;
  }

  h3 {
    font-size: 1.1rem;
    line-height: 1.415;
  }

  p,
  span,
  ul li,
  a,
  strong {
    font-size: 0.8rem;
    line-height: 1.565;
  }

  i, div {
    font-size: 0.8rem;
    line-height: 1.63;
  }
}

@media only screen and (max-width: $breakpoint_medium) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.1rem;
    line-height: 1.36;
  }

  h3 {
    font-size: 1rem;
    line-height: 1.5;
  }

  p,
  span,
  ul li,
  a,
  strong {
    font-size: 0.8rem;
    line-height: 1.63;
  }

  i, div {
    font-size: 0.8rem;
    line-height: 1.63;
  }
}

