body {
    font-family: GeoSlb712MdBT, Georgia, serif;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box;
    width: 80vw;
    margin: auto;
}

header, nav {
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    user-select: none;
}

header {
    color: #111113;
    text-align: center;
}

.header-title {
    font-size: 3em;
    margin: 0;
    user-select: none;
}

nav {
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 5px double #111113;
}

nav a {
    color: #000;
    text-decoration: none;
    margin: 0 10px;
    display: block !important;
}

nav a:hover {
    color: grey;
}

nav .divider::before {
    content: "|";
    color: #111113;
    margin: 0 10px;
}

.article h2, .article p, .article img, .article a, h2 {
    width: 100%;
}

h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

p {
    line-height: 1.6;
}

footer {
    background-color: #fff;
    color: #111113;
    text-align: center;
    padding: 10px 0;
    flex-shrink: 0;
    border-top: 2px solid #000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #92B1D7;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.archive-link {
    color: #111113;
    margin-left: 15px;
    font-size: 1.25em;
    text-decoration: underline;
    text-underline-offset: 0.1em;
    text-decoration-thickness: 2px;
    text-underline-position: under;
    transition: text-underline-offset 0.3s ease;
}

.archive-link:hover {
    text-underline-offset: 0.2em;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 20px auto;
    background-color: #fff;
    padding: 20px;
    flex: 1 0 auto;
}

.featured-article {
    box-sizing: border-box;
    width: calc(80vw - 20px);
    margin: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.other-articles {
    box-sizing: border-box;
    width: calc(80vw + 20px);
    column-width: 40vw;
    column-count: 2;
    column-gap: 20px;
}

.other-articles article {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding-top: .1px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    margin-top: 10px;
    width: 100%;
    break-inside: avoid-column;
    max-width: calc(40vw - 20px);
    overflow: hidden;
}
.other-articles article * {
    max-width: calc(40vw - 20px);
}

article {
    padding: 0 20px;
    margin: 0;
    height: auto;
    border-radius: 10px;
    box-sizing: border-box;
}
.category-name {
    color: #92B1D7;
    font-weight: 750;
    font-size: 1.25em;
    margin-bottom: 0;

}
article h1, article h2 {
    font-size: 2em;

}
.author-date {
    color: grey;
}

#empty-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    text-align: center;
    font-size: 3em;
}

.selected {
    color: #92B1D7;
}

.article-image {
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-right: -20px;
    margin-bottom: -5px;
    height: auto;
    position: relative;
    box-sizing: border-box;
}

.article-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.more-link {
    align-self: flex-end;
    margin-top: auto;
    font-size: larger;
    color: darkgray;
}
.archive-link {
    margin-left: 15px;
    
}

.theme-switch {
    margin-right: 15px;
}

.dropdown-btn {
    display: none;
}

.nav-links {
    display: flex;
}

@media only screen and (min-width: 601px) and (max-width: 1125px) {
    body {
        font-size: 20px;
        box-sizing: border-box;
        width: 85vw;
        margin: auto;
        hyphens: auto;
    }

    .header-content,
    nav,
    .featured-article,
    .other-articles {
        flex-direction: column;
    }

    nav a {
        padding: 15px;
    }

    .header-title {
        font-size: 2.5em;
        margin-bottom: 20px;
    }

    .other-articles .column {
        width: 100%;
        margin-bottom: 20px;
    }

    .article-image {
        width: calc(100% + 40px);
        margin-left: -20px;
        margin-right: -20px;
    }

    nav .divider::before {
        content: "----------------------";
    }

    .dropdown-btn {
        display: block;
        border: none;
        background-color: transparent;
        font-size: 1em;
        font-family: GeoSlb712MdBT, Georgia, serif;
        color: #111113;
        margin-bottom: 10px;
    }

    .arrow {
        border: solid;
        border-color: #111113;
        border-width: 0 1.5px 1.5px 0;
        display: inline-block;
        padding: 3px;
        margin-bottom: 2px;
        transform: rotate(-45deg);
        -webkit-transform: rotate(-45deg);
        transition: transform 0.3s ease;
    }

    .arrow.down {
        transform: rotate(45deg);
        -webkit-transform: rotate(45deg);
    }

    .nav-links {
        display: none;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        height: 0;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        height: auto;
    }
}
