:root {
  --green-500: hsl(158, 36%, 37%);
  --green-700: hsl(158, 42%, 18%);
  --black: hsl(212, 21%, 14%);
  --grey: hsl(228, 12%, 48%);
  --cream: hsl(30, 38%, 92%);
  --white: hsl(0, 0%, 100%);
  --font-title: 'Fraunces', serif;
  --font-body: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-body);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: left;
    background-color: var(--cream);
}

.item-page {
    background-color: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    width: 20rem;
}

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

.item-image {
    width: 100%;
    height: auto;
    display: block;
}

.tag {
    color: var(--grey);
    letter-spacing: 0.3rem;
    font-size: 0.625rem;
}

.item-title, .new-price{
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.8rem;
}

.new-price{
    color: var(--green-500);
}

.description {
    color: var(--grey);
    font-size: 0.9rem;
}

.price-container {
  display: flex;
  align-items: center;
}

.original-price{
    color: var(--grey);
    margin-left: 1rem;
}

.button-text {
    color: var(--white);
    font-size: 0.9rem;
    padding-left: 1rem;
}

.shop-cart-button{
    text-align: center;
    background-color: var(--green-500);
    border-radius: 0.5rem;
    cursor: pointer;
    padding: 0.6rem;
    border: none;
}

.shop-cart-button:hover{
    background-color: var(--green-700);
}

@media screen and (min-width: 37.5rem) {

    .item-page {
        width: 40rem;
        display: flex;
        flex-direction: row;
    }

    .content {
        width: 60%;
        height: auto;
    }

    .tag {
        font-size: 1rem;
    }

    .item-title, .new-price{
        font-size: 2.2rem;
    }

    .description {
        margin: 0;
        font-size: 1rem;
    }
}

.attribution { 
    font-size: 0.5rem; 
    text-align: center; 
    margin-top: 3rem;
}

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