:root {
    --title-color: rgb(255, 142, 56);
    --background-color: #fbffdd;
    --text-color: #333333;
}

*,
*::before,
*::after {
    box-sizing: content-box;
}

/* Header styles */
header {
    font-family: 'Courier New', Courier, monospace;
    text-align: center;
    margin: 0;
    padding: 1em;
    background-color: var(--background-color);
}

/* WD Content */
h1 {
    text-transform: lowercase;
    font-size: 4.5em;
    font-weight: lighter;
    color: var(--title-color);
    padding: 0;
    margin: 0;
}

/* Date */
header p {
    float: left;
    position: absolute;
    top: 0;

    color: var(--text-color);
    font-family: 'Courier New', Courier, monospace;
    padding: 0;
    margin: 0;
}

/* Main content */
main {
    position: relative;
    padding: 2em 2em 2em 24em;
}

main ol {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

li {
    line-height: 1.4;
}

section {
    line-height: normal;
    padding: 1em;
    margin: 0;
}

section h2 {
    text-transform: lowercase;
    font-size: 2rem;
    padding: 0;
    margin: 0;
}

/* Section "roofing" */
section:nth-of-type(1) {
    border-top: 15px solid rgb(101, 189, 101);
}

section:nth-of-type(2) {
    border-top: 15px solid rgb(214, 57, 138);
}

section:nth-of-type(3) {
    border-top: 15px solid rgb(57, 159, 214);
}

/* Section Info */
main>section:nth-of-type(1) li h3 {
    color: rgb(101, 189, 101);
    text-transform: uppercase;
    display: inline-flex;
    margin: 0;
    padding: 0;
}

main>section:nth-of-type(2) li h3 {
    color: rgb(214, 57, 138);
    text-transform: uppercase;
    display: inline-flex;
    margin: 0;
    padding: 0;
}

main>section:nth-of-type(3) li h3 {
    /* EYAH */
    color: rgb(57, 159, 214);
    text-transform: uppercase;
    display: inline-flex;
    margin: 0;
    padding: 0;
}

main ol li p {
    display: inline;
    hyphens: auto;
    margin: 0;
}

/* List mods | AI assistance. Theres a robo meet today the 21st so I cant get help rn*/
ol li::marker {
    content: counter(list-item) " ";
}

/* Image */
aside:nth-of-type(1) {
    position: absolute;
    top: 2em;
    left: 1em;
    width: 21em;
}

aside:nth-of-type(1) figure {
    margin: 0;
    position: relative;
}

aside:nth-of-type(1) img {
    display: block;
    width: 100%;
    height: auto;
}

aside:nth-of-type(1) figcaption {
    position: absolute;
    left: 0.8em;
    bottom: 0.8em;
    color: #fff;
}

aside:nth-of-type(1) figcaption p {
    margin: 0;
    line-height: 1.1;
}

aside:nth-of-type(1) figcaption em {
    font-size: 4rem;
    font-style: normal;
}

/* On Our Cover */

/* Had to ref my trollpost project */
aside:nth-of-type(2)::before {
    content: "";
    position: absolute;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

aside:nth-of-type(2) {
    font-size: .8rem;
    position: absolute;
    top: 32em;
    left: 1em;
    width: 20em;
    margin-left: 2%;
    padding: 0.75em;
    border: 2px solid orange;
    background-color: #fff;
    font-weight: bold;
}

aside:nth-of-type(2) h2 {
    margin: 0;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    text-transform: lowercase;
    font-size: 2.5rem;
    font-weight: lighter;
}

aside:nth-of-type(2) p {
    margin: 0;
}

aside:nth-of-type(2) em {
    text-transform: uppercase;
    font-style: normal;
    font-weight: bold;
    display: block;
}

aside:nth-of-type(2) ol {
    margin: 0.5em 0 0;
    padding-left: 1.5em;
}

aside:nth-of-type(2) li {
    line-height: 1.25;
    /* 1.25 it is */
}

/* Footer */
footer {
    margin: 0;
    padding: 0;
    text-align: right;
}

footer em {
    color: rgb(255, 111, 0);
}

/* Responsive Design, baby*/

/*Mobile (Portrait)*/
@media (max-width: 767px) {
    main {
        padding: 2em 1em;
        display: flex;
        flex-direction: column;
    }

    main aside:nth-of-type(1) {
        order: 1;
    }

    main aside:nth-of-type(2) {
        order: 2;
    }

    aside:nth-of-type(1), /* off topic but holy hell is magicmirror a goc send*/
    aside:nth-of-type(2) {
        position: static;
        width: 100%;
        margin: 1em 0;
        box-sizing: border-box;
    }

    main section {
        order: 3;
    }

    aside:nth-of-type(1) {
        position: static;
        width: 100%;
        margin: 1em 0;
    }

    aside:nth-of-type(2) {
        position: static;
        margin: 1em 0;
    }

    header h1 {
        font-size: 2.5em;
    }

    header p {
        position: static;
        float: none;
        text-align: center;
    }

    footer {
        text-align: center;
        font-size: 1.2em;
        margin-bottom: 10px;
    }
}
