@font-face {
    font-family: 'EBG';
    font-display: block;
    src: url("/static/fonts/EBGaramond-Regular.ttf") format("truetype");
}

:root {
    --bg: #FFF; /* Background color */
    --fg: #000000; /* Foreground(i.e., text color) */
    --link: #000000; /* Links color */
    --primary: #ff6266; /* Accent color of theme */
    --tr-primary: rgba(255, 98, 102, 0.2); /* Transparent accent color */
}

html {
    font-family: 'EBG', 'Times New Roman', 'Georgia', serif;
    font-size: 20px;
    background-color: var(--bg);
    color: var(--fg);
}

body {
    min-height: 100vh;
    max-width: 900px;
    padding: 0 15px;
    margin: 0 auto;
}

main {
    text-align: left;
}

footer {
    margin: 35px;
    font-size: 13px;
    text-align: center;
}

a {
    color: var(--link);
}

pre {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background-color: inherit;
    white-space: pre-wrap;
    overflow-x: auto;
}

.sp {
    background: #737373;
    border-color: #1b1a1a;
    border-bottom: 5px;
    margin: 11px 0;
    overflow: hidden;
    height: 1px;
}

.navbar {
    display: flex;
    flex-direction: row;
    padding-top: 20px;
    margin-bottom: 5vh;
}

.navbar-right {
    margin-left: 10px;
}

.navbar-links > a {
    text-decoration: none;
}

.navbar-links > a:hover {
    text-decoration: underline;
}

.navbar-title {
    text-decoration: none;
    font-family: "EBG", sans-serif;
    font-weight: bold;
    font-size: 35px;
    color: var(--primary);
}

#logo {
    background: url("/static/icons/logo.svg") no-repeat center 0;
    background-size: 48px 48px;
    background-position: center;
    height: 58px;
    width: 48px;
}

.page-title {
    font-family: "EBG", sans-serif;
    color: var(--primary);
    font-size: 25px;
}

.footnote {
    margin: 0px;
}

@media (max-width: 500px) {
    html {
        font-size: 15px;
    }

    .navbar-links > a {
        font-size: 15px;
    }

    .page-title {
        font-size: 20px;
    }

    .navbar-title {
        font-size: 30px;
    }

    .article-list, .article-list > a {
        text-align: left; 
        font-size: 13px;
    }

    #logo {
        background: url("/static/icons/logo.svg") no-repeat center 0;
        background-size: 40px 40px;
        background-position: center;
        height: 50px;
        width: 40px;
    }
}

@media (max-width: 280px) {
    html {
        font-size: 12px;
    }

    .navbar-links > a {
        font-size: 12px;
    }

    .page-title {
        font-size: 16px;
    }

    .navbar-title {
        font-size: 25px;
    }

    #logo {
        background: url("/static/icons/logo.svg") no-repeat center 0;
        background-size: 35px 35px;
        background-position: center;
        height: 35px;
        width: 35px;
    }

    footer {
        font-size: 12px;
    }
}
