/*
Simple style inspired by Jal style tokens
2026 Jal
*/

@font-face {
    font-family: 'charter';
    src: url('../../fonts/Charter Regular.ttf');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'charter';
    src: url('../../fonts/Charter Bold.ttf');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'charter';
    src: url('../../fonts/Charter Italic.ttf');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'charter';
    src: url('../../fonts/Charter Bold Italic.ttf');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'jetbrains';
    src: url('../../fonts/JetBrainsMono.ttf');
    font-display: swap;
}

#content {
    font-family: 'charter', Georgia, serif;
    font-size: 1rem;
    line-height: 1.65;
    color: #1a1814;
    background: #ffffff;
}

#content h1 {
    font-size: 2rem;
    margin: 0.67em 0;
    color: #1a1814;
    font-weight: 700;
    line-height: 1.15;
    border-bottom: 2px solid #c8c8c2;
    padding-bottom: 0.25em;
}

#content h2 {
    font-size: 1.6rem;
    margin: 1.15em 0 0.5em;
    font-weight: 700;
    color: #1a1814;
    border-bottom: 1px solid #e2e2dc;
    padding-bottom: 0.18em;
}

#content h3,
#content h4,
#content h5 {
    color: #1a1814;
    font-weight: 700;
}

#content a {
    color: #375f78;
    text-decoration: none;
}

#content a:hover {
    color: #254e65;
    text-decoration: underline;
}

#content table {
    border-collapse: collapse;
    margin: 1em 0;
    width: 100%;
}

#content th,
#content td {
    border: 1px solid #c8c8c2;
    padding: 0.7em;
    vertical-align: top;
}

#content th {
    background-color: #efefec;
}

#content pre {
    overflow-x: auto;
}

#content code {
    font-family: 'jetbrains', Consolas, monospace;
    background-color: #efefec;
    padding: 0.1em 0.35em;
    border-radius: 0.25rem;
    font-size: 0.92em;
}

#content pre code.hljs {
    display: block;
    background-color: #efefec;
    padding: 0.6rem 0.8rem;
}

#content blockquote {
    margin: 1em 0;
    padding: 0.4em 1em;
    color: #4a4540;
    border-left: 3px solid #c8c8c2;
    background: #f6f5f1;
}

#content hr {
    border: 0;
    height: 1px;
    background-color: #c8c8c2;
    margin: 1.75em 0;
}

@media (prefers-color-scheme: dark) {
    #content {
        background: #252522;
        color: #f0efec;
    }

    #content h1,
    #content h2,
    #content h3,
    #content h4,
    #content h5 {
        color: #f0efec;
    }

    #content h1 {
        border-bottom-color: #424240;
    }

    #content h2 {
        border-bottom-color: #363633;
    }

    #content a {
        color: #7eb3cf;
    }

    #content a:hover {
        color: #9ec8e0;
    }

    #content table,
    #content th,
    #content td {
        border-color: #424240;
    }

    #content th {
        background-color: #2e2e2b;
    }

    #content code,
    #content pre code.hljs {
        background-color: #2e2e2b;
    }

    #content blockquote {
        color: #c7c3bc;
        border-left-color: #424240;
        background: #2e2e2b;
    }

    #content hr {
        background-color: #424240;
    }
}

@media print {
    #content {
        color: #000000;
        background: #ffffff;
    }

    #content a {
        color: #375f78;
    }
}