* {
    margin: 0;
    padding: 0;
}

:root {
    --green500: hsl(158, 36%, 37%);
    --green700: hsl(158, 42%, 18%);
    --black: hsl(212, 21%, 14%);
    --grey: hsl(228, 12%, 48%);
    --cream: hsl(30, 38%, 92%);
}

body {
    font-family: "Montserrat";
    background-color: var(--cream);
}

img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    border-radius: 10px 10px 0 0;
}

/* main section */

.container {
    margin: 2rem;
    background-color: white;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

.content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.item-tag {
    text-transform: uppercase;
    letter-spacing: .2rem;
    font-size: .75rem;
    color: var(--grey);
    margin-bottom: .25rem;
}

h1 {
    font-family: "Fraunces";
    font-weight: 700;
    color: var(--black);  
    margin-bottom: .875rem;  
}

p {
    font-size: .875rem;
    color: var(--grey);
    line-height: 1.4;
}

.price-tag {
    display: flex;
    gap: 1rem;
    font-family: "Fraunces";
    color: var(--green500);
    align-items: center;
    margin-top: 1rem;
}

.price-tag p {
    color: var(--grey);
    font-family: "Montserrat";
    font-size: .75rem;
    text-decoration: line-through;
}

button {
    background-color: var(--green500);
    border: none;
    border-radius: 5px;
    height: 2.5rem;
    color: white;
    font-weight: 700;
    margin-top: 1rem;
}

button::before {
    content: "";
    background-image :url(/images/icon-cart.svg);
    background-size: 100% 100%;
    display: inline-block;
    width: .875rem;
    height: .875rem;
    position: relative;
    top: 2px;
    right: .5rem;
}

button:hover,
button:focus {
    background-color: var(--green700);
    cursor: pointer;
}

/* attribution section */

.attribution { 
    font-size: 11px; 
    text-align: center; 
}

.attribution a { 
    color: hsl(228, 45%, 44%); 
}

/* desktop */

@media only screen and (min-width: 768px) {
    .container {
        display: flex;
        flex-direction: row;
        max-width: 33rem;
        max-height: 29rem;
    }

    .main-container {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
    }

    .content {
        display: flex;
        justify-content: space-around;
        padding: 1.5rem;
        width: 80%;
    }

    img {
        height: 100%;
        border-radius: 10px 0 0 10px;
    }

    h1 {
        line-height: 1;
    }

    .attribution {
        margin-bottom: 1rem;
    }
}