* {
    box-sizing: border-box;
    font-family: 'Trispace';
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

main {
    scroll-behavior: smooth;
    flex-grow: 1;
    overflow: auto;
}

header {
    position: sticky;
    top: 0;
}

article {
    display: grid;
    min-height: 100vh;
    padding: 100px 30px 30px;
    place-items: center;
    grid-template-rows: auto 1fr auto;
}

article:nth-child(2n) {
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "t p"
        "c p"
        "n n";
    background: var(--color-2);
    color: var(--color-1);
}

article:nth-child(2n+1) {
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "p t"
        "p c"
        "n n";
    background: var(--color-1);
    color: var(--color-2);
}

article>h1 {
    grid-area: t;
    text-align: center;
}

article>div {
    grid-area: c;
    max-width: 500px;
}

article>img {
    grid-area: p;
    max-width: 30vw;
}

article>img[src="/uploads/img/"] {
    display: none;
}

article>nav {
    grid-area: n;
}

article:nth-child(2n)>nav a {
    color: var(--color-1);
}

article:nth-child(2n+1)>nav a {
    color: var(--color-2);
}

.thumbnail {
    width: 200px;
}

blockquote {
    padding: 0 1.5em;
    border-left: 5px solid #ccc;
    font-style: italic;
    overflow: hidden;
}

section {
    border-radius: 20px;
    box-shadow: 0 0 20px #0008;
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
}

section>h1 {
    text-align: center;
}

h1, h2, h3, h4, h5, h6, label, header a, footer a {
    font-variant: small-caps;
    font-weight: 600;
}

@media (max-width:765px) {
    article, article:nth-child(n) {
        padding: 50px 10px;
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto auto;
        grid-template-areas:
            "t"
            "c"
            "p"
            "n";
    }

    article>div {
        max-width: 100%;
        justify-self: stretch;
    }

    article>img {
        max-width: 100%;
    }
}
