/*
Dev style (GitHub-like)
2024 Jal
*/

@font-face { font-family: jetbrains; src: url('../../fonts/JetBrainsMono.ttf'); } 

body {
    font-family: sans-serif;
    font-size: 0.9em;
}

h1 {
    font-family: sans-serif;
    font-weight: bold;
    border-bottom: 1px solid #CCCCCC;
    width: 100%;
    padding-bottom: 3px;
}

h2 {
    font-family: sans-serif;
    font-weight: normal;
    border-bottom: 1px solid #CCCCCC;
    width: 100%;
    padding-bottom: 3px;
}

h3, h4, h5 {
    font-family: sans-serif;
    font-weight: bold;
}

a {
    color: #0a64d9;
}

table {
    border-collapse: collapse;
}

td {
    white-space: nowrap; 
}

th, td {
    padding: 0.63em;
    text-align: left;
    border: 1px solid #637080;
}

code {
    font-family: jetbrains, monospace;
    font-size: 0.88em;
    background-color: #edf0f3;
    padding: 0 0.2em 0 0.2em;
    border-radius: 0.2em;
}

pre code.hljs {
    background-color: #edf0f3;
}

blockquote {
    margin: 1.5em 10px;
    padding: 0.5em 10px;
    background-color: #f6f7fa;
    border-left: 0.2em solid #CCCCCC;
}

hr {
    height: 0.25em;
    padding: 0;
    margin: 24px 0;
    background-color: #e1e4e8;
    border: 0;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    body {
        background: #0d1117;
        color: #dce3e9;
    }

    a {
        color: #4493f8;
    }

    h1, h2 {
        border-bottom: 1px solid #48525c;
    }

    code {
        background-color: #232a33;
    }

    pre code.hljs {
        background-color: #232a33;
    }

    blockquote {
        background-color: #14181d;
        border-left-color: #48525c;
    }

    hr {
        background-color: #48525c;
    }
} 