@use 'theme';


body {
    font: theme.$base-font-weight #{theme.$base-font-size}/#{theme.$base-line-height} theme.$base-font-family;
    color: theme.$text-color;
    background-color: theme.$background-color;
    -webkit-text-size-adjust: 100%;
    -webkit-font-feature-settings: "kern" 1;
    -moz-font-feature-settings: "kern" 1;
    -o-font-feature-settings: "kern" 1;
    font-feature-settings: "kern" 1;
    font-kerning: normal;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

/**
 * Reset some basic elements
 */
body, h1, h2, h3, h4, h5, h6,
p, blockquote, pre, hr,
dl, dd, ol, ul, figure {
    margin: 0;
    padding: 0;
}

/**
 * Set `margin-bottom` to maintain vertical rhythm
 */
h1, h2, h3, h4, h5, h6,
p, blockquote, pre,
ul, ol, dl,
%vertical-rhythm {
    margin-bottom: theme.$gap * 0.6;
}

/**
 * Lists
 */
ul, ol {
    margin-left: theme.$gap;
}

li {
    > ul,
    > ol {
        margin-bottom: 0;
    }
}

/**
 * Headings
 */
h1, h2, h3, h4, h5, h6 {
    font-weight: theme.$base-font-weight;
}

.markdown {
    line-height: 1.7;

    h1 {
        padding-bottom: 0.3em;
        font-size: 2em;
        margin-top: 0;
        margin-bottom: 16px;
        font-weight: 600;
        line-height: 1.25;
        color:white
    }

    h2 {
        padding-bottom: 0.3em;
        font-size: 1.5em;
        margin-top: 24px;
        margin-bottom: 16px;
        font-weight: 600;
        line-height: 1.25;
        color: theme.$primary;
    }

    h3 {
        padding-bottom: 0.3em;
        font-size: 1.25em;
        margin-top: 24px;
        margin-bottom: 16px;
        font-weight: 600;
        line-height: 1.25;
        color: theme.$accent;

    }

    h4 {
        margin-bottom: 0;
    }

    a {
        border-bottom: 1px solid theme.$primary;
        &:hover {
            color: theme.$primary;
        }
    }

    figure.highlight {
        font-size: 16px;
        line-height: 2em;
        margin-bottom: theme.$gap;

        pre {
            padding: theme.$small-gap;
            overflow-x: auto;

            code {
                display: block;
                max-width: 1000px;
                min-width: 0;
                width: auto;
                margin: auto;
            }
        }
    }

    /**
 * Tables
 */
    table {
        margin-bottom: theme.$gap;
        width: 100%;
        text-align: left;
        border-collapse: collapse;
        border: 1px solid rgba(0, 0, 0, 0.3);

        tr {
            &:nth-child(odd) {
                //background-color: rgba(255,255,255, 0.005);
            }
            &:nth-child(even) {
                background-color: rgba(255, 255, 255, 0.02);
            }
        }
        th, td {
            padding: 10px 13px;
        }
        th {
            border: 1px solid #333333;
            text-align: center;
        }
        td {
            border: 1px solid #333333;
            vertical-align: top;
            figure, pre {
                margin-bottom: 0 !important;
            }
        }
    }

}
