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

body {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    background-color: #184a11;
    margin: 0;
}

.wrapper {
    max-width: 1000px;
    margin:auto;
    background-color:#f5fbf2;
    display: grid;
    gap: 10px;
    padding: 20px;
}

header h1 {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    text-align: center;
    text-transform: uppercase;
}

p {
    line-height: 1.5;
}

.post {
    display: grid;
    gap: 20px;
    padding: 20px;
    border-bottom: 4px solid #184a11;
    margin-bottom: 5px;

}

.post a:link {
    color: #184a11;
}

.post a:visited {
    color: #926012;
}

.post a:hover {
    color: #cc9346;
    font-weight: bold;
}

.post-featured-image {
    margin: 0;
    align-content: center;
}

.post-featured-image img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    padding: 15px;
    background-color: #184a11;
    border: 4px solid #cc9346;
}

footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 0;
}
footer a:link {
    color: #184a11;
}
footer a:visited {
    color: #926012;
}
footer a:hover {
    color: #cc9346;
    font-weight: bold;
}

@media screen and (min-width: 768px) {
    .post {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .post-content {
        order: 1;
    }
    
    .post-featured-image {
        order: 2;
    }
}   
