@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100;0,300;0,400;0,800;1,100;1,300;1,400;1,800&display=swap");

* {
    font-family: inherit;
    text-decoration: none;
    margin: 0;
    padding: 0;
    -webkit-user-drag: none;
    -moz-window-dragging: none;
    -webkit-tap-highlight-color: transparent;
}

* img {
    max-width: 100%;
}

html,
body {
    color: var(--white-2);
    background-color: var(--gray-6);
    font-family: "JetBrains Mono", monospace;
    line-height: 2rem;
    background-color: var(--gray-5);
}

header {
    padding: 2rem 0 4rem 0;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

header .site-title {
    font-size: 4rem;
    font-weight: bolder;
    line-height: 110%;
    color: var(--white-1);
}

main {
    margin: 0 auto;
    max-width: 650px;
    padding: 3rem 0;
}

/* header */

#bio {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

#img-wrapper img {
    border-radius: 50%;
    max-width: 100px;
}

#bio-wrapper {
    margin-left: 1rem;
}

#text-wrapper {
    line-height: 1.2rem;
    font-weight: 300;
}

#text-wrapper a {
    color: cyan;
    border-bottom: 1px solid cyan;
}

@media (prefers-color-scheme: light) {
    #text-wrapper a {
        color: #1ebaba;
        border-bottom: 1px solid #1ebaba;
    }
}

[data-theme="light"] {

#text-wrapper a {
    color: #1ebaba;
    border-bottom: 1px solid #1ebaba;
}

}
[data-theme="dark"] {

#text-wrapper a {
    color: cyan;
    border-bottom: 1px solid cyan;
}

}
#social-wrapper {
    margin-top: 1rem;
}

#social-wrapper img {
    filter: invert() !important;
    width: 25px;
    height: 25px;
    margin: 0 0 0.3rem 0;
    transition: all 0.2s ease-in-out;
}

@media (prefers-color-scheme: light) {
    #social-wrapper img {
        filter: none !important;
    }
}

[data-theme="light"] {

#social-wrapper img {
    filter: none !important;
}

}
[data-theme="dark"] {

#social-wrapper img {
    filter: invert() !important;
}

}
#social-wrapper img:hover {
    transform: scale(1.2);
}

/* article section */

.articles {
    display: grid;
    row-gap: 2rem;
    margin: 4rem 0 3rem 0;
}

.articles .article {
    padding: 2rem;
    background: var(--gray-3);
    border-radius: 15px;
    transition: all 0.2s ease-in-out;
}

/*Simulate <a> link styling */
.article-title-link {
    display: inline-block;
    cursor: pointer;
}

.articles .article .article-title,
.articles .article .article-title a {
    color: var(--white-2);
    font-weight: 100;
    font-style: italic;
    font-size: 1.4rem;
    line-height: 130%;
}

.articles .article:hover {
    transform: scale(1.05);
}

.articles .article .date {
    display: block;
    font-size: 0.8rem;
}

.articles .article .categories {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.articles .article .categories .category {
    margin: 0 0.5rem 0.3rem 0;
    display: block;
    color: var(--gray-4);
    background: var(--white-2);
    border-radius: 15px;
    font-size: 0.7rem;
    padding: 0 0.8rem;
    line-height: 1.3rem;
    cursor: default;
}

/* media query */

@media screen and (max-width: 750px) {
    body {
        padding: 1.5rem;
    }

    header {
        flex-direction: column;
        gap: 3rem;
    }

    header #dark-mode-toggle {
        display: flex;
        justify-content: flex-end;
        align-items: flex-end;
        align-self: flex-end;
    }

    header .site-title {
        font-size: 3rem;
    }
}

@media screen and (max-width: 550px) {
    header .site-title {
        font-size: 3rem;
    }

    .articles {
        row-gap: 1.2rem;
    }
}

@media screen and (max-width: 350px) {
    #img-wrapper img {
        max-width: 50px;
    }

    #bio {
        align-items: flex-start;
    }

    main,
    .articles {
        padding: 0;
        margin: 0;
    }

    main {
        padding-bottom: 1rem;
    }

    .articles {
        margin: 2rem 0 3rem 0;
        row-gap: 1.2rem;
    }

    header .site-title {
        font-size: 2.4rem;
    }

    .article {
        padding: 1.2rem;
    }

    .articles .article .article-title,
    .articles .article .article-title a {
        font-size: 1rem;
    }
}

#attribution {
    font-size: 0.75rem;
}

.wrapper {
    box-sizing: border-box;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.page-footer {
    flex-grow: 0;
    flex-shrink: 0;
}

.page-body {
    flex-grow: 1;
}