html {
    font-size: 62.5%;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: $font-regular;
    line-height: 1.5;
    letter-spacing: 0.01em;
    color: $color-grey-dark;
}

input, textarea {
    font-family: 'Open Sans', sans-serif;
}

*, *::before, *::after {
    box-sizing: inherit;
}


// Headings
h1, h2, h3, h4, h5 {
    margin: 10px 0;
    font-weight: 300;
    color: $black
}
h1 {
    font-size: 33px;
    line-height: 1.3;
    letter-spacing: -0.08px;

    @include mq($from: xlg) {
        font-size: 44px;
    }
}
h2 {
    font-size: 28px;
    line-height: 1.4;

    @include mq($from: xlg) {
        font-size: 31px;
    }
}
h3 {
    font-size: 24px;
    line-height: 1;

    @include mq($from: xlg) {
        font-size: 27px;
    }
}
h4 {
    font-size: 18px;
    line-height: 1.8;

    @include mq($from: xlg) {
        font-size: 22px;
    }
}
h5 {
    font-size: 16px;
    line-height: 1.8;

    @include mq($from: xlg) {
        font-size: 18px;
    }
}
h3 small,
h4 small,
h5 small {
  font-weight: 300;
}

// Links
a {
    color: inherit;
    color: $color-primary;
    text-decoration: none;
    transition: color 0.1s linear 0s, background-color 0.1s linear 0s, opacity 0.2s linear 0s;

    @include on-event {
        color: $color-primary-light;
        outline: 0;
        text-decoration: none;
    }
}


/**
 * Basic styles for paragraphs
 */
p {
    display: block;
    margin: 0 0 10px 0;
    font-size: $font-small;
    font-style: normal;
    white-space: normal;

    &.mb {
        margin: 0 0 1em;
    }

    @include mq($from: xlg) {
        font-size: $font-regular;
    }
}

ol, ul {
    margin: 0 0 10px 0;
    padding: 0;

    > li {
        line-height: 24px;
    }
    &.nospacing {
      margin: 0;
      padding: 0;
    }
}

hr {
    height: 0;
    border: 0;
    border-top: 1px solid $color-grey-medium;
    margin: 30px 0;
    margin: 3rem 0;
    box-sizing: content-box;

    &.nospacing {
      margin: 0;
    }
}

code {
    padding: 2px 4px;
    font-size: $font-small;
    color: #c64643;
    background-color: #f5f5f5;
    border-radius: 4px;
}

mark {
    padding: .2em 0;
    background-color: #fcf8e3;
}

