:root {
    --sd-background: black;
    --sd-foreground: white;
    --sd-title: #FFF101;
    --sd-title-strong: #ecdf00;
    --sd-accent: #ff74af;
    --sd-accent-strong: #d6005b;
    --sd-accent-extrastrong: #af004a;
}

html {
    scroll-behavior: smooth;
    display: block;
    font-size: 1rem;
    font: -apple-system-body;
    font-family: Gill Sans;
    line-height: 1.2rem;
}

body {
    background-color: var(--sd-background);
    color: var(--sd-foreground);
    margin: 1.5rem;
}

figure > img {
    width: 50%;
}

figcaption {
    font-family: "American Typewriter";
    color: var(--sd-accent-extrastrong);
}

h1 {
    color: var(--sd-title);
    text-shadow: 0.1em 0.1em var(--sd-accent-strong);
    outline: 0.4em;
    -webkit-text-stroke: 1px var(--sd-accent-strong);
    text-transform: uppercase;
    font-size: 4rem;
    font-family: Gill Sans;
    line-height: 4rem;
}

h2 {
    color: var(--sd-title);
}

h3 {
    color: var(--sd-accent-strong);
}

main {
    display: grid;
    grid-template-columns: 40rem auto;
    grid-gap: 2rem;
    justify-content: space-between;
}

.blog-posts > article {
    margin-bottom: 3rem;
}

article {
    max-width: 40rem;
    background-color: var(--sd-foreground);
    color: var(--sd-background);
    padding: 1.4rem;
    border-radius: 0.3rem;
    box-shadow: 1rem 1rem var(--sd-accent-strong);
    border: 0.6rem double var(--sd-title-strong);

    & img {
        max-width: 100%;
    }
}

details {
    border-radius: 0.3rem;
    border: 0.4rem double var(--sd-title);
    padding: 0.4rem;
    background-color: var(--sd-accent-strong);
    color: var(--sd-title);
    max-width: 20rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.blogroll {
    margin: 0;
    width: 20rem;
    height: fit-content;
}

a {
    color: var(--sd-accent-extrastrong);
    background-color: var(--sd-title);
}

a:hover {
    filter: brightness(110%);
}

.action {
    color: var(--sd-accent-strong);
    background-color: var(--sd-title-strong);
    padding: 0.2rem;
    font-weight: bold;
    font-size: 1.4rem;
    box-shadow: 0.3rem 0.3rem var(--sd-accent-strong);
    border-radius: 0.2rem;
}

.action:hover {
    box-shadow: 0.1rem 0.1rem var(--sd-accent);
}

li {
    padding: 0.5rem;
}

.menu-item {
    background-color: var(--sd-accent-extrastrong);
    color: var(--sd-title);
    border-radius: 0.3rem;
    line-height: 3rem;
}

.menu-summary {
    font-size: 1.2rem;
}

.article-header {
    background-color: var(--sd-accent-extrastrong);
    padding: 2rem;
    margin: 0;
    border: 0.2rem solid var(--sd-background);
    border-radius: 0.3rem;
    font-size: 2rem;
}

hgroup {
    display: grid;
    grid-template-areas: "logo header header header"
                         "logo header header header"
                         "logo subheader .  fuckfascists";
    grid-column-gap: 2rem;

    @media screen and (max-width: 820px) {
        grid-template-areas: "logo fuckfascists fuckfascists fuckfascists"
                             "header header header header"
                             "subheader subheader subheader subheader";
    }
}

hgroup > * {
    background: none;
}

.logo {
    grid-area: logo;

    & > img {
        max-height: 15rem;
    }

    @media screen and (max-width: 820px) {
        & > img {
            max-height: 6rem;
        }
    }
}

.header {
    grid-area: header;
}

.subheader {
    grid-area: subheader;
}

.fuck-fascists {
    border-radius: 0.3rem;
    color: var(--sd-accent-extrastrong);
    background-color: var(--sd-title);
    padding: 0.6rem;
    transform: rotate(3deg);
    border: 0.4rem ridge var(--sd-accent-strong);
    text-align: center;
    align-content: center;
    font-size: 1.2rem;
    width: fit-content;
    grid-area: fuckfascists;
}

footer {
    font-style: italic;
}

@media screen and (max-width: 1100px) {
    h1 {
        font-size: 3rem;
    }

    details {
        max-width: 100%;
    }

    .blogroll {
        margin-top: 2rem;
        width: unset;
        max-width: 100%;
    }

    main {
        display: block;
    }
}

@media screen and (max-width: 700px) {
    .header {
        grid-template-columns: none;
    }
}
