body {
    font: 400 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    color: #003559;
    /* background-color: #bfd9ff; */
    background-color: #edf2fb;
    max-width: 800px;
    margin: 3em auto 2em auto;
    padding: 0 1.5em;
    box-sizing: border-box;
    text-align: justify;
}

a {
    color: #003559;
    text-decoration: none;
    transition: color 0.2s;
}

a:visited {
    color: #003559;
}

a:hover {
    color: #111;
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 400;
    margin-bottom: 0.5em;
    margin-top: 2em;
    line-height: 1.1;
    color: #003559;
}

h1 {
    font-size: 2.5em;
}

h2 {
    font-size: 2em;
}

h3 {
    font-size: 1.5em;
}

li {
    margin-bottom: 1.5em;
}

blockquote {
    color: #828282;
    border-left: 4px solid #e8e8e8;
    padding-left: 15px;
    font-size: 1.1em;
    font-style: italic;
    margin: 2em 0;
}

small,
.meta,
.post-meta {
    color: #888;
    font-size: 0.95em;
}

img {
    max-width: 100%;
    display: block;
    margin: 2em auto;
}

pre,
code {
    font-size: 1em;
    border: 1px solid #e8e8e8;
    border-radius: 3px;
    background-color: #eef;
    padding: 2px 6px;
}

pre {
    padding: 12px;
    overflow-x: auto;
}

.wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5em;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5em;
}

.post-header h1 {
    margin-top: 1em;
}

.post-header h3 {
    margin: 0;
}

.post-item {
    margin-bottom: 5em;
}

.post-subtitle {
    color: #577589;
}

.blog-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2em;
}

.navbar-links a:not(:last-child) {
    margin-right: 15px;
}

.gh-button {
    margin-right: 15px;
}

/* Mobile-first responsive design */
@media (max-width: 768px) {
    body {
        margin: 1em auto;
        padding: 0 1em;
        font-size: 14px;
        line-height: 1.4;
    }

    .wrapper {
        padding: 0 1em;
    }

    h1 {
        font-size: 1.8em;
        margin-top: 1.5em;
    }

    h2 {
        font-size: 1.5em;
        margin-top: 1.5em;
    }

    h3 {
        font-size: 1.3em;
        margin-top: 1.5em;
    }

    .blog-navbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1em;
        margin-bottom: 1.5em;
    }

    .navbar-links {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .navbar-links a:not(:last-child) {
        margin-right: 10px;
    }

    .post-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5em;
    }

    .post-item {
        margin-bottom: 3em;
    }

    pre {
        font-size: 0.9em;
        padding: 8px;
        overflow-x: auto;
    }

    code {
        font-size: 0.9em;
        padding: 1px 4px;
    }

    blockquote {
        margin: 1.5em 0;
        padding-left: 12px;
        font-size: 1em;
    }

    li {
        margin-bottom: 1em;
    }

    img {
        margin: 1.5em auto;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    body {
        margin: 0.5em auto;
        padding: 0 0.75em;
        font-size: 14px;
    }

    .wrapper {
        padding: 0 0.75em;
    }

    h1 {
        font-size: 1.6em;
    }

    h2 {
        font-size: 1.4em;
    }

    h3 {
        font-size: 1.2em;
    }

    .blog-navbar {
        margin-bottom: 1em;
    }

    .navbar-links a:not(:last-child) {
        margin-right: 8px;
    }

    .post-item {
        margin-bottom: 2.5em;
    }

    pre {
        font-size: 0.85em;
        padding: 6px;
    }

    code {
        font-size: 0.85em;
    }
}

/* Large screens */
@media (min-width: 1200px) {
    body {
        max-width: 900px;
    }

    .wrapper {
        max-width: 900px;
    }
}