@font-face {
    font-family: 'Bi';
    src: url('Bitter-VariableFont_wght.ttf');
}
.avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
    border: 2px solid #eee;
}

.avatar:hover {
    filter: grayscale(0%);
}
body {
    max-width: 650px;
    margin: 40px auto;
    padding: 0 10px;
    font:
        18px/1.5 -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        Arial,
        "Noto Sans",
        sans-serif,
        "Apple Color Emoji",
        "Segoe UI Emoji",
        "Segoe UI Symbol",
        "Noto Color Emoji";
    color: #454545;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    font-family: inherit;
}

.nav-links, .nav-lang {
    display: flex;
    gap: 12px;
}

.nav-separator {
    width: 1px;
    height: 1.2em;
    background-color: #eee;
    margin: 0 4px;
}

.site-nav a {
    text-decoration: none;
    color: #007acc;
    transition: color 0.2s;
}

.site-nav a:hover {
    color: #005fa3;
    text-decoration: underline;
}

.current-lang {
    color: #999;
    cursor: default;
}

h1,
h2,
h3 {
    font-family: Bitter;
    font-weight: 400;
    line-height: 1.1;
}

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

    a:link {
        color: #58a6ff;
    }

    a:visited {
        color: #8e96f0;
    }
}
code {
    white-space: pre-wrap;
    font-size: 15px;
}

article img, .post-content img {
    max-height: 500px;
    max-width: 650px;
    height: auto;
    border-radius: 8px; 
    display: block;
    margin: 1.5rem auto; 
    width: auto; 
}

@media (max-width: 480px) {
    body {
        margin: 20px auto;
        font-size: 16px;
    }

    .avatar {
        width: 60px;
        height: 60px;
    }

    article img, .post-content img {
        max-height: none;
        width: 100%;
    }
}