* {
    box-sizing: border-box;
}

html {
    font-size: $base-font-size;
    line-height: $base-line-height * 0.72;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    letter-spacing: 0.01em;
    line-height: $base-line-height;
    font-size: 1.6rem;
    font-weight: 400;
    font-family: 'Segoe UI', 'Helvetica Neue', sans-serif; /*fallback*/
    font-family: $font-family;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 500;
    margin: 0.35em 0 0.7em 0;
}

h1 {
    font-size: 2em;
}

h2 {
    font-size: 1.75em;
}

h3 {
    font-size: 1.5em;
}

h4 {
    font-size: 1.25em;
}

h5 {
    font-size: 1em;
}

h6 {
    font-size: 0.85em;
}

a {
    color: $primary-color;
    text-decoration: none;
    &:hover:not(.button) {
        opacity: 0.6;
    }
}

p {
    margin-top: 0;
}

blockquote {
    background-color: #f3f3f3;
    padding: 1.5rem 2rem;
    border-left: 3px solid $lightGrey-color;
}

dl dt {
    font-weight: bold;
}

hr {
    border: none;
    background-color: $lightGrey-color;
    height: 1px;
    margin: 1rem 0;
}

table {
    width: 100%;
    border: none;
    border-collapse: collapse;
    border-spacing: 0;
    text-align: left;
}

td,
th {
    vertical-align: middle;
    padding: 1.2rem 0.4rem;
}

thead {
    border-bottom: 2px solid $lightGrey-color;
}

tfoot {
    border-top: 2px solid $lightGrey-color;
}

code,
kbd,
pre,
samp,
tt {
    font-family: $monospace-font-family;
}

code,
kbd {
    padding: 0 0.4rem;
    font-size: 90%;
    white-space: pre-wrap;
    border-radius: 4px;
    color: $red-color;
    padding: 0.2em 0.4em;
    background-color: #f7f7f7;
}

pre {
    background-color: #f7f7f7;
    font-size: 1em;
    padding: 1rem;
    overflow-x: auto;
}

pre code {
    background: none;
    padding: 0;
}

abbr[title] {
    border-bottom: none;
    text-decoration: underline;
    text-decoration: underline dotted;
}

img {
    max-width: 100%;
}

fieldset {
    border: 1px solid $lightGrey-color;
}

iframe {
    border: 0;
}
