@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,700;1,9..144,700&family=Montserrat:ital,wght@0,500..700;1,500..700&display=swap');

.montserrat-semibold {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    color: hsl(228, 12%, 48%);
}
.montserrat-bold {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}
.fraunces-bold {
    font-family: "Fraunces", serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-variation-settings:
      "SOFT" 0,
      "WONK" 0;
    color: hsl(212, 21%, 14%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-size: 14px;
}
#img2 {
    display: none;
}
body {
    background: hsl(30, 38%, 92%);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    background: hsl(0, 0%, 100%);
    width: 26.79rem;
    margin: auto;
    border-radius: 0.75rem;
}
.image-container #img1 {
    width: 100%;
    border-top-right-radius: 0.75rem;
    border-top-left-radius: 0.75rem;
}

.product-info {
    margin: 1.75rem;
}
.product-info .montserrat-semibold:nth-child(1) {
    text-transform:uppercase;
    letter-spacing: 0.25rem;
    font-size: 1rem;
    margin-block-end: 1rem;
}

.product-info h1 {
    font-size: 2.4rem;
    line-height: 1.2;
    margin-block-end: 1rem;
}

.product-info .montserrat-semibold:nth-child(3){
    line-height: 1.5rem;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.pricing {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-block-end: 1.5rem;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.pricing p:nth-of-type(1){
    color: hsl(158, 36%, 37%);
    font-size: 2.5rem;
}

.pricing p:nth-of-type(2){
    text-decoration: line-through;
}

.btn {
    width: 100%;
    border: none;
    color: hsl(0, 0%, 100%);
    background: hsl(158, 36%, 37%);
    padding: 1rem 0;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.btn:hover {
    background: hsl(158, 42%, 18%);
    cursor: pointer;
}

.btn img {
    margin-right: 0.5rem;
}

/* Because the margin in the container is set to auto, any other container will by default move to the bottom of the webpage */
.attribution {
    font-size: 11px; 
    text-align: center;
    width: 100%;
    /* Prevent div from shrinking if content grows. */
    flex-shrink: 0; 
    margin-bottom: 10px;
}

@media(min-width: 376px){
    .container {
        display: flex;
        width: auto;
        margin: auto;
    }
    .product-info {
        max-width: 18rem;
    }
    #img1 {
        display: none;
    } 
    #img2 {
        display: grid;
        width: 24rem;
        border-top-left-radius: 0.75rem;
        border-bottom-left-radius: 0.75rem;
        height: 100%;
    }
    .product-info h1, .product-info .montserrat-semibold:nth-child(3) {
        margin-block-start: 1.75rem;
    }

    .product-info h1 {
        font-size: clamp(2rem, 0.1rem + 50vw, 2.4rem);
    }
    
    .product-info .montserrat-semibold:nth-child(3){
        line-height: 2rem;
    } 

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

}