:root {
    --border-radius: 0px;
    --foreground: rgb(20, 20, 20);
    --background: rgb(240, 240, 240);
    --accent: maroon;
}

* {
    box-sizing: border-box;
    scrollbar-width: thin;
}

body {
    background: var(--background);
    color: var(--foreground);
    font-family: 'Noto Sans', sans-serif;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 0;
    margin: 0;
}

.content {
    width: 100%;
    max-width: 800px;
    padding: 0 1em;
    /* text-align: justify; */
}

a {
    color: var(--accent);

    &:visited {
        color: color-mix(in oklab, var(--accent), black 20%)
    }
}

.navbar {
    margin-bottom: 1em;
    width: 100%;
    height: 220px;
    background: url('/banner.png');
    background-position: center center;
    background-repeat: no-repeat;
}

.article-btn {
    --height: 100px;
    display: grid;
    gap: 5px;
    height: var(--height);
    text-decoration: none !important;
    grid-template-columns: auto var(--height);
    grid-template-rows: auto auto auto;
    grid-template-areas:
        "title thumbnail"
        "subtitle thumbnail"
        "time thumbnail";

    .title {
        font-size: larger;
        font-weight: bold;
        grid-area: title;
        text-decoration: underline;
        display: grid;
        align-items: end;
    }

    .subtitle {
        font-size: medium;
        font-style: italic;
        grid-area: subtitle;
        color: var(--foreground);
    }

    .time {
        font-size: small;
        display: grid;
        align-items: end;
        opacity: 0.5;
        grid-area: time;
        color: var(--foreground);
    }

    img {
        aspect-ratio: 1/1;
        grid-area: thumbnail;
        width: var(--height);
        height: var(--height);
        object-fit: cover;
        object-position: center;
    }
}

form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
}

input[type=text],
input[type=password],
button {
    border-radius: 0;
    border: 0;
    box-shadow: none;
    outline: 1px solid black;
    padding: 5px;
    font-family: inherit;
}

button {
    cursor: pointer;
}

textarea {
    resize: vertical;
    min-height: 5em;
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2em 0;
}

figcaption {
    text-align: center;
    font-style: italic;
}

.article {
    img {
        object-fit: contain;
        object-position: center;
        width: 100%;
        max-height: 400px;
        display: inline-block;
    }
}

@media (max-width: 1180px) {
    .content {
        grid-template-columns: 1fr;
    }

    .right-sidebar,
    .left-sidebar {
        display: none;
    }
}