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

body {
    font-family: sans-serif;
    margin: 0;
    background-color: #d50000;
}

.wrapper {

    max-width: 1000px;
    display: grid;
    gap: 10px;
    padding: 20px;
    background-color: #00bae2;
    margin: auto;
}

header h1 {

    text-align: center;
    text-transform: uppercase;
}

.post {

    display: grid;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 3px solid white;
    margin-bottom: 20px;
}

.post a:link {

    color: #ff976c;
}

.post a:hover {

    color: lightblue !important;
    text-shadow: 3px 3px 3px darkblue;
}

.post a:active {

    color: orangered !important;
}

.post a:visited {

    color: purple;
}

.post-featured-image {

    margin: 0px;
}

.post-featured-image img {

    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    padding: 20px;
    background-color: #281713;
    border: 3px solid black;
}

footer {

    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: flex-end;
}

footer a {

    border: 1px solid black;
    border-radius: 5px;
    padding: 7px;
}

footer a:link {

    color: black;
    text-decoration: none;
}

footer a:hover {

    box-shadow: 3px 3px gray inset;
    background-color: lightgray;
    text-decoration: underline dashed black 1px;
}

footer a:active {

    box-shadow: 6px 6px gray inset;
    background-color: lightgray;
    color: lightseagreen;
}

@media screen and (min-width: 768px) {
    .post {

        display: flex;
    }

    .post-featured-image {

        order: 2;
        flex-basis: 100%;
    }

    .post-content {

        order: 1;
        flex-basis: 100%;
    }
}
