/* Links */

a {
    text-decoration: underline;
    transition: color 0.07s ease-in;

    &:hover,
    &:active,
    &:focus {
        text-decoration: none;
    }
}

/* Heading */

h1,
.h1 {
    font-weight: 700;
    color: $headingColor;
    font-size: $head1FontSize;
    line-height: $head1LineHeight;
    margin: 0 0 0.5em 0;
    text-wrap: balance;
}
h2,
.h2 {
    font-weight: 700;
    color: $headingColor;
    font-size: $head2FontSize;
    line-height: $head2LineHeight;
    margin: 0 0 0.5em 0;
    text-wrap: balance;
}
h3,
.h3 {
    font-weight: 700;
    color: $headingColor;
    font-size: $head3FontSize;
    line-height: $head3LineHeight;
    margin: 0 0 0.5em 0;
    text-wrap: balance;
}
h4,
.h4 {
    font-weight: 700;
    color: $headingColor;
    font-size: $baseFontSize;
    line-height: $baseLineHeight;
    margin: 0 0 0.5em 0;
}
h5,
.h5 {
    font-weight: 400;
    color: $headingColor;
    font-size: $baseFontSize;
    line-height: $baseLineHeight;
    margin: 0 0 0.5em 0;
}
h6,
.h6 {
    font-weight: 400;
    color: $headingColor;
    font-size: $baseFontSize;
    line-height: $baseLineHeight;
    margin: 0 0 0.5em 0;
}

.section-head {
    text-wrap: balance;
}

/* Paragraphs */

p {
    margin: 0 0 1em 0;
}
address {
    font-style: normal;
}
cite {
    font-style: normal;
}

/* Lists */

.list-unstyled {
    li {
        padding: 0;
        background: none;
    }
}

.text-small {
    font-size: 0.7em;
}
.text-big {
    font-size: 1.3em;
}

.text-light {
    font-weight: 200;
}
.text-bold,
strong {
    font-weight: 600;
}

.text-uppercase {
    text-transform: uppercase;
}
.text-nowrap {
    white-space: nowrap;
}

.text-left {
    text-align: left;
}
.text-center {
    text-align: center;
}
.text-right {
    text-align: right;
}

.color-gray {
    color: $gray !important;
}

.f-l {
    float: left;
}
.f-r {
    float: right;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid $gray;
    margin: 1em 0;
    padding: 0;
}

sup,
sub {
    height: 0;
    line-height: 1;
    vertical-align: baseline;
    _vertical-align: bottom;
    position: relative;
}
sup {
    bottom: 1ex;
}
sub {
    top: 0.5ex;
}

/* Rows / sections spacing inside an article, page... */

.article > .row:not(:first-child) {
    margin-top: 1.5rem;
}

/* Text content */

.entry {
    font-size: $baseFontSize;
    line-height: $baseLineHeight;

    &.perex {
        font-size: 1.2rem;
    }

    p,
    ul,
    ol,
    li,
    table {
        margin-bottom: 1rem;

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

    h2 {
        margin-top: 1.5rem;
    }

    h3 {
        margin-top: 1.25rem;
    }

    h4,
    h5,
    h6 {
        margin-top: 1rem;
    }

    h2,
    h3,
    h4,
    h5,
    h6 {
        &:first-child {
            margin-top: 0;
        }
    }

    figure,
    table {
        margin: 1.25rem 0 1rem 0;

        &:first-child {
            margin-top: 0.25rem;
        }

        &:last-child {
            margin-bottom: 0.25rem;
        }
    }

    ul {
        & > li {
            position: relative;
            padding-left: 2.5rem;
            margin-bottom: 0.75rem;

            &:before {
                content: "";
                position: absolute;
                left: 1.3rem;
                top: 0.6rem;
                width: 6px;
                height: 6px;
                display: block;
                background: $gray;
                border-radius: 50%;
            }
        }
    }

    ol {
        counter-reset: counter;
        margin-left: 0;
        *margin-left: 54px;

        & > li {
            padding-left: 2.5rem;
            margin-bottom: 0.75rem;
            *list-style-type: decimal;
            counter-increment: counter;
            position: relative;

            &:before {
                color: $gray;
                content: counter(counter) ". ";
                position: absolute;
                left: 0.9rem;
                top: 0;
            }
        }
    }


    .btn {
        margin-bottom: 0.25rem;
    }
}

/* laptop < 1370 */
@media screen and (max-width: $xl) {
    h1,
    .h1 {
        font-size: 2.2rem;
    }
}

@media screen and (max-width: $lg) {
    h1,
    .h1 {
        font-size: 2rem;
    }
}

@media screen and (max-width: $md) {
}

/* mobile < 768 */
@media screen and (max-width: $sm) {
}

@media screen and (max-width: $xs) {
    .item-list .item {
        width: 100% !important;
    }
}

@media screen and (max-width: $xxs) {
}
