@font-face {
    font-family: Vollkorn;
    src: url(Resources/CodespreeTheme/fonts/Vollkorn/Vollkorn-Italic_wght.ttf);
    font-style: italic;
}

@font-face {
    font-family: Vollkorn;
    src: url(Resources/CodespreeTheme/fonts/Vollkorn/Vollkorn_wght.ttf);
    font-style: normal;
}

@font-face {
    font-family: JetBrainsMono;
    src: url(Resources/CodespreeTheme/fonts/JetBrainsMono/JetBrainsMono-Italic_wght.ttf);
    font-style: italic;
}

@font-face {
    font-family: JetBrainsMono;
    src: url(Resources/CodespreeTheme/fonts/JetBrainsMono/JetBrainsMono_wght.ttf);
    font-style: normal;
}

@font-face {
    font-family: Raleway;
    src: url(Resources/CodespreeTheme/fonts/Raleway/Raleway-Italic_wght.ttf);
    font-style: italic;
}

@font-face {
    font-family: Raleway;
    src: url(Resources/CodespreeTheme/fonts/Raleway/Raleway_wght.ttf);
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #fff;
    color: #000;
    font-family: Raleway, Arial;
    text-align: center;
}

.wrapper {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
    padding: 40px;
    text-align: left;
}

header {
    background-color: #eee;
}

header .wrapper {
    padding-top: 30px;
    padding-bottom: 30px;
    text-align: left;
}

header a {
    text-decoration: none;
}

header .site-name {
    font-size: 2em;
    color: #000;
    font-family: JetBrainsMono;
    font-weight: 800;
    font-style: italic;
}

nav {
    
}

nav li {
    display: inline-block;
    margin: 0 12px 0 0;
    line-height: 1.5em;
    font-family: Raleway;
    font-weight: bold;
}

nav li a.selected {
    text-decoration: underline;
}

h1 {
    font-family: JetBrainsMono;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 3em;
}

h2 {
    font-family: JetBrainsMono;
    font-weight: 600;
    font-size: 2.25em;
    margin: 20px 0;
}

h3 {
    font-family: JetBrainsMono;
    font-weight: 600;
    font-size: 1.5em;
    margin: 12px 0;
}

p {
    margin: 16px 0;
    line-height: 1.5em;
    font-weight: 400;
    letter-spacing: 0.25px;
    font-size: 18px;
}

a {
    color: inherit;
}

.description {
    margin-bottom: 40px;
}

.item-list > li {
    display: block;
    padding: 20px;
    border-radius: 20px;
    background-color: #eee;
    margin-bottom: 20px;
}

.item-list > li:last-child {
    margin-bottom: 0;
}

.item-list h1 {
    margin-bottom: 15px;
    font-size: 1.3em;
}

.item-list p {
    margin-bottom: 0;
}

.tag-list {
    margin-bottom: 15px;
}

.tag-list li,
.tag {
    display: inline-block;
    color: #ddd;
    padding: 4px 6px;
    border-radius: 5px;
    margin-right: 5px;
}

.tag-list a,
.tag a {
    text-decoration: none;
}

.item-page .tag-list {
    display: inline-block;
}

.browse-all {
    display: block;
    margin-bottom: 30px;
}

.all-tags li {
    font-size: 1.4em;
    margin-right: 10px;
    padding: 6px 10px;
}

footer {
    color: #8a8a8a;
}

/* ----------------- DARK MODE -------------------- */

@media (prefers-color-scheme: dark) {
    body {
        background-color: #0D0D0D;
    }

    body,
    header .site-name {
        color: #ddd;
    }

    .item-list > li {
        background-color: #1a1a1a;
    }

    header {
        background-color: #000;
    }
    
    article blockquote {
        background-color: #171717 !important;
    }
    
    article code {
        background-color: #171717 !important;
    }
    
    article pre {
        background-color: #171717 !important;
    }
    
    article pre code {
        background-color: #171717 !important;
        color: #a9bcbc !important;
    }
}



@media(max-width: 600px) {
    .wrapper {
        padding: 40px 20px;
    }
}

/* ----------------- ARTICLE -------------------- */

article blockquote {
    position: relative;
    background-color: #efefef;
    padding: 10px 10px 10px 15px;
    border-top-right-radius: 7px;
    border-bottom-right-radius: 7px;
    border-left: 4px solid #4e72ff;
}

article code {
    background-color: #efefef;
    display: inline-block;
    padding: 0 5px;
    border-radius: 8px;
    font-size: 0.9em;
    margin: 1px;
    line-break: anywhere;
}

article pre {
    background-color: #efefef;
    margin-bottom: 1.5em;
    padding: 8px 0;
    border-radius: 16px;
    font-variant-ligatures: normal;
}

article pre code {
    background-color: #efefef;
    color: #424141;
    font-family: JetBrainsMono;
    font-weight: 300;
    font-size: 0.9em;
    font-variant-ligatures: normal;
    display: block;
    padding: 15px 20px;
    border-radius: 12px;
    line-height: 1.4em;
    overflow-x: auto;
    white-space: pre;
    -webkit-overflow-scrolling: touch;
}

article pre code .keyword {
    color: #DD5E17;
}

article pre code .type {
    color: #5957B9;
}

article pre code .call {
    color: #348fe5;
}

article pre code .property {
    color: #A77800;
}

article pre code .number {
    color: #D08CFF;
}

article pre code .string {
    color: #90BC41;
}

article pre code .comment {
    color: #465B62;
}

article pre code .dotAccess {
    color: #FFA02E;
}

article pre code .preprocessing {
    color: #A77800;
}

article .content {
    margin-bottom: 40px;
    tab-size: 2;
}

article pre code .highlight {
    padding-bottom: 1px;
    display: inline-block;
    padding: 0 4px 2px 4px;
    padding-bottom: 2px;
    border: 1px solid #546AFF;
    border-radius: 5px;
    background-color: #1A1721;
    margin-left: -5px;
}

.content > ul {
    font-size: 1.05em;
    line-height: 1.5em;
}

.content ul {
    list-style-type: disc;
    margin-top: 20px;
    padding-left: 20px;
}

/* ----------- TAG COLORS ------------ */

.tag-color-0 {background-color: #F72585;}
.tag-color-1 {background-color: #B5179E;}
.tag-color-2 {background-color: #7209B7;}
.tag-color-3 {background-color: #560BAD;}
.tag-color-4 {background-color: #480CA8;}
.tag-color-5 {background-color: #3A0CA3;}
.tag-color-6 {background-color: #3F37C9;}
.tag-color-7 {background-color: #4262F0;}
.tag-color-8 {background-color: #4895EF;}
.tag-color-9 {background-color: #4CC9F0;}
