// Base
// -----------------------------------------------
// -----------------------------------------------
// Body, html
// -----------------------------------------------
html {
    box-sizing: border-box;
    font-size: $base-font-size;
}

*,
*::after,
*::before {
    box-sizing: inherit;
}

body,
html {
    height: 100%;
}

// Typography
// -----------------------------------------------
body {
    color: $base-font-color;
    background: $white;
    font-family: $base-font-family;
    font-weight: $font-regular;
    line-height: $base-line-height;
    display: flex;
    flex-direction: column;

    &#doc {
        background: $white;
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: $header-font-color;
    font-family: $header-font-family;
    font-weight: $font-medium;
}

a {
    color: $link-color;
    text-decoration: none;
    transition: color $base-duration $base-timing;

    &:visited {
        color: $link-color;
    }
    &:hover {
        color: $link-hover;
        text-decoration: underline;
    }
    &:active {
        color: $white;
    }
}

hr {
    display: block;
    border: none;
}


// Helpers
// -----------------------------------------------
.wrap {
    padding: 0 $base-point-grid * 3;
    margin: 0 auto;
    box-sizing: border-box;
    max-width: $bp-xlarge;
}
