@use "variables";

/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

html,
button,
input,
select,
textarea {
    color: #222;
}

html {
    font-size: 1em;
    line-height: 1.4;
}

html,
body {
    background: #fff;
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

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

audio,
canvas,
img,
video {
    vertical-align: middle;
}

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

textarea {
    resize: vertical;
}


html {
    box-sizing: border-box;
}

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

body,
button,
input,
select,
textarea {
    font-family: variables.$font;
    font-size: 18px;
    font-weight: 300;
}

.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    clear: both;

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

    h4 {
        font-size: 30px;
    }

    code.console {
        background: variables.$text-color;
        color: #fff;
        font-size: 16px;
        padding: 3px 7px;
    }

    .note {
        display: table;
        color: #666;
        background: rgba(0, 0, 0, 0.02);
        padding: 8px 12px;
        border-left: 3px solid variables.$primary-color-light;
        border-radius: 8px;
        font-size: 15px;
        margin-block-start: 0.5em;
        margin-block-end: 0.5em;

        > :first-child {
            margin-top: 6px;
        }

        > :last-child {
            margin-bottom: 6px;
        }

        code {
            margin-left: 2px;
            margin-right: 2px;
        }
    }
}

.section {
    a {
        text-decoration: none;
        color: variables.$primary-color;

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


h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 300;
    margin: 0;
    padding: 0;
}

hr.clearfix {
    display: block;
    border: none;
    background: none;
    margin: 0;
    padding: 0;
    height: 0;
    clear: both;
}

code,
kbd,
pre,
samp {
    font-family: "JetBrains Mono", monospace;
    font-size: 15px;
    line-height: 1.5;
}


:root {
    --tbw-cell-vertical-padding: 4px;
    --tbw-cell-horizontal-padding: 8px;
    --tbw-cell-line-height: 1.5em;
}

table {
    margin-bottom: var(--tbw-cell-line-height);
}

th,
td {
    height: calc(var(--tbw-cell-vertical-padding) * 2 + var(--tbw-cell-line-height));
    min-width: calc(var(--tbw-cell-horizontal-padding) * 2);
    padding: var(--tbw-cell-vertical-padding) var(--tbw-cell-horizontal-padding);
    border: 1px solid #e7eaec;
}

thead {
    background: #FFFFFF;
}
