/*
Wanha style with vintage typography
2024 Jal
*/

@font-face {
    font-family: 'charter';
    src: url('../../fonts/Charter Regular.ttf');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'charter';
    src: url('../../fonts/Charter Bold.ttf');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'charter';
    src: url('../../fonts/Charter Italic.ttf');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'charter';
    src: url('../../fonts/Charter Bold Italic.ttf');
    font-weight: bold;
    font-style: italic;
}

@font-face { 
    font-family: 'kanzlei'; 
    src: url('../../fonts/kanzlei-initials.ttf'); 
} 

#content {
    font-family: 'charter', Georgia, 'Times New Roman', serif;
    font-size: 1em;
    color: #000000;
    background-color: #f7f4ed;

}

#content h1 {
    font-family: 'kanzlei', Georgia, 'Times New Roman', serif;
    font-size: 6em;
    color: #000000;
    text-align: center;
    font-weight: normal;
}

#content h2 {
    font-family: 'charter', Georgia, 'Times New Roman', serif;
    font-size: 1.8em;
    color: #000000;
    text-align: center;
    margin: 1em 0 0.5em;
    font-weight: bold;
}

#content h3, #content h4, #content h5 {
    font-family: 'charter', Georgia, 'Times New Roman', serif;
    color: #000000;
    font-weight: bold;
}

#content a {
    color: #2B4B9B;
    text-decoration: none;
    border-bottom: 1px solid #2B4B9B;
}


#content table {
    border-collapse: collapse;
    margin: 1.5em 0;
    width: 100%;
    border: 1px solid #000000;
}

#content th, #content td {
    border: 1px solid #000000;
    padding: 0.45em;
}

#content th {
    font-weight: bold;
}

#content pre {
    overflow-x: auto;
}

#content code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    padding: 0.2em 0.4em;
    border-radius: 0.4em;
    background-color: #e3ded4;
}

#content pre code.hljs {
    display: block;
    background-color: #e3ded4;
    padding: 0.6rem 0.8rem;
}

#content blockquote {
    margin: 1.5em 0;
    padding: 0.2em 1em;
    font-style: italic;
    color: #000000;
    background-color: #e3ded4;
}

#content hr {
    border: 0;
    border-top: 1px solid #000000;
    margin: 2em 0;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    #content {
        background-color: #000000;
        color: #f7f4ed;
    }

    #content h1 {
        color: #f7f4ed;
        border-bottom-color: #f7f4ed;
    }

    #content h2 {
        color: #f7f4ed;
        border-bottom-color: #f7f4ed;
    }

    #content h3, #content h4, #content h5 {
        color: #f7f4ed;
    }

    #content a {
        color: #8BA4DB;
    }


    #content table {
        border-color: #919191;
    }

    #content th, #content td {
        border-color: #919191;
    }


    #content code {
        background-color: #0d1117;
    }

    #content pre code.hljs {
        background-color: #0d1117;
    }

    #content blockquote {
        color: #f7f4ed;
        border-left-color: #f7f4ed;
        background-color: #0d1117;
    }

    #content hr {
        border-top-color: #f7f4ed;
    }
}

/* Print styles */
@media print {
    #content {
        color: #000000;
        background: #FFFFFF;
    }

    #content a {
        color: #000000;
        border-bottom: none;
    }
} 