@import "normalize.scss";
@import "common/transition.scss";
@import "common/icon";
@import "common/var.scss";
@import "fonts/effra";
@import "display.scss";

html {
    box-sizing: border-box;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

body {
    font-family: $font-family-base;
    font-weight: 400;
    font-size: $font-size-base;
    color: $--color-black;
    background-color: hsl(180, 20%, 98%);

    &.is-resizing:active, &.is-resizing:active * {
        cursor: col-resize !important;
    }
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: .5rem;
    font-size: 1.25em;
    color: inherit;
    font-weight: inherit;

    &:last-child {
        margin-bottom: 0;
    }
}

p {
    line-height: 1.5;
    margin: .75em 0;

    &:first-child {
        margin-top: 0;
    }

    &:last-child {
        margin-bottom: 0;
    }
}

a {
    color: $--link-color;
    text-decoration: none;

    &:hover,
    &:focus,
    &:active {
        color: $--link-hover-color;
    }

    &:hover {
        text-decoration: underline;
    }
}


sup, sub {
    font-size: .8rem;
}

small {
    font-size: .875rem;
}

strong {
    font-weight: 500;
}

hr {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    border: 0;
    border-top: 1px solid $color-gray--015;
}

fieldset {
    border: 0;
    padding: 0;
    margin: 0;
}

pre, code {
    background: $color-gray--000;
    color: $color-gray--080;
    border: 1px solid $color-gray--015;
    font-size: 12px;
    font-size: .9em;
    font-family: $font-family-monospace;
    border-radius: $--border-radius-small;
}

pre {
    padding: .5em;
}

code {
    padding: 1px 3px;
    text-shadow: 0 1px $color-white;
    word-wrap: break-word;

    @media screen and (min-width: 36em) {
        padding: 2px 4px;
    }

    pre & {
        border: 0;
    }
}

button, input, optgroup, select, textarea {
    font-family: $font-family-base;
    font-size: 100%;
    line-height: 1.15;
}

kbd {
    color: $color-black;
    background-color: $color-gray--000;
    border: $--border-base;
    border-bottom-color: $--border-color-base;
    border-radius: $--border-radius-base;
    box-shadow: inset 0 -1px 0 $--border-color-base;
    display: inline-block;
    font-family: $font-family-monospace !important;
    font-size: .9em;
    line-height: 1;
    padding: 3px 5px;
    min-width: 1.7em;
    height: 1.7em;
    vertical-align: middle;
    text-align: center;
}

kbd + kbd {
    margin-left: $space1;
}

iframe {
    border: 0;
}
