:root {
    --main-color: #202035;
    --red: #d42626;
    --heading-color: rgb(105, 171, 218);
    --article-heading-color: #FFFFFF;

    --logo-height: 10rem;
    --header-height: calc(var(--logo-height) + 12rem);
    --page-padding-vertical: 0.5rem;
    --page-padding-horizontal: 3rem;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: monospace;
    background-color: #000000;
    color: white;
    padding: var(--page-padding-vertical) var(--page-padding-horizontal);

    font-size: 1.2rem;
}

#header {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1;
    padding-bottom: 1rem;
    padding-top: 1rem;
    width: 100%;
    height: max-content;
    max-height: var(--header-height);
    display: flex;
    justify-content: flex-start;

    background-color: black;

    .nav-toggle {
        display: none;
        visibility: hidden;
        position: absolute;
        top: 1rem;
        right: 5px;

        height: 2rem;
        width: 2rem;

        appearance: none;
        cursor: pointer;

        &::after{
            content: "☰";
            color: white;

            font-size: 2rem;
        }
    }

    nav {
        margin-left: 2rem;
        display: flex;

        justify-content: center;
        align-items: center;

        background-color: black;

        a {
            text-decoration: none;
            margin: 0 1rem;
            font-size: 1.8rem;
            font-weight: bold;

            padding: 5px;
        }

        a:link, a:visited {
            color: white;
        }

        a:hover {
            color: var(--red);
        }

        a:active {

        }
    }
}

.logo {
    user-select: none;

    border-radius: 5px;
    background-color: var(--main-color);

    height: var(--logo-height);
    width: max-content;
    padding: 1rem 2rem;
    align-content: center;

    font-size: 3rem;
    font-weight: bold;

    ruby {
        ruby-position: under;

        width: max-content;
        color: white;
    }

    rt {
        margin-top: 15px;
        color: #555570;
        font-family: monospace;
        margin-left: 15px;
    }
}

.photograph {
    position: relative;
    display: inline-block;
    float: right;
    text-align: center;
    width: 22rem;
    height: 27rem;
    max-width: 100%;

    background-color: white;
    border: 1.5rem solid white;
    border-bottom: 0;
    margin: 0 2rem;

    &:nth-of-type(even) {
        float: left;
        margin-left: 0;
    }

    &:nth-of-type(odd) {
        float: right;
        margin-right: 0;
    }

    img {
        width: 100%;
        height: 20rem;
        object-fit: contain;
        object-position: center;
        background-color: black;
    }

    .description {
        height: 5rem;
        display: flex;
        justify-content: center;
        align-items: center;
        color: #202020;
        font-weight: 900;
        font-size: 0.8rem;
        text-transform: uppercase;
    }

    .date {
        position: absolute;
        font-size: 0.8rem;
        bottom: 5px;
        right: 0;
        color: black;
    }
}

main {
    padding-left: 2.2rem;
    padding-bottom: 10rem;

    display: flex;
    justify-content: center;

    article {
        width: 100%;
        max-width: 1024px;
    }

    header {
        font-size: 2rem;

        font-family: "Times New Roman", serif;

        color: var(--heading-color);
    }

    p {
        margin: 2rem 0;
    }
}

.author {
    color: #444444;
}

.kaomoji {
    color: black;
    background-color: white;
}

.link-list {
    list-style-position: inside;
    list-style-type: square;

    span {
        margin: 0 1rem;
    }

    a {
        text-decoration: none;
        text-transform: lowercase;
        margin: 0 1rem;
        padding: 5px;

        font-size: 1.5rem;
        font-weight: 100;
        font-family: serif;
    }

    a:link, a:visited {
        color: white;
    }

    a:hover {
        color: var(--red);
    }

    a:active {

    }
}

@media screen and (max-width: 900px) {
    #header {
        flex-direction: column;
        align-items: center;

        padding-bottom: 1rem;

        nav {
            display: none;
            visibility: collapse;
            overflow-x: hidden;
            overflow-y: scroll;

            a {
                margin-right: 0;
                padding: 0;
            }
        }

        .nav-toggle {
            display: inline-block;
            visibility: visible;

            &:checked + nav {
                visibility: visible;
                display: flex;
                flex-direction: column;
                align-content: flex-start;

                margin-top: 1rem;
                margin-left: 0;
                padding-bottom: 1rem;
                width: 100%;
            }
        }
    }

    .photograph {
        margin: 2rem 0rem;
    }
}

@media screen and (max-width: 480px) {
    :root {
        --page-padding-vertical: 1rem;
        --page-padding-horizontal: 1.4rem;
    }

    body {
        padding: var(--page-padding-vertical) var(--page-padding-horizontal);
    }

    #header {
        width: 100%;
        flex-direction: column;

        .logo {
            display: flex;
            justify-content: center;
            width: 100%;

            padding-bottom: 2rem;
        }

        a {
            margin-left: 0;;
        }
    }

    .photograph {
        width: 100%;
        float: none;
    }

    main {
        padding-left: 0;
    }
}
