:root {
    --primary-bg-color: hsl(30, 38%, 92%);
    --card-bg-color: hsl(0, 0%, 100%);
    --h1-p-color: hsl(228, 12%, 48%);
    --product-name-color: hsl(212, 21%, 14%);
    --current-price-button-bg-color: hsl(158, 36%, 37%);
    --button-hover-color: hsl(158, 42%, 18%);
    --button-font-color: hsl(0, 0%, 100%);
}

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

*{
    margin: 0;
}

html, body{
    height: 100%
}

input, button, textarea, select {
    font: inherit;
}

img, picture, video, svg {
    display: block;
    max-width: 100%;
}

/* general styling */
body {
    display: grid;
    place-content: center;
    margin: 1rem;

    background-color: var(--primary-bg-color);
    font-family: 'fraunces', serif;
}

/* product styles */
.product {
    background-color: var(--card-bg-color);
    border-radius: .5rem;
    overflow: hidden;
    display: grid;
    max-width: 37.5rem;
}

@media (min-width: 37.5rem){
    .product {
        grid-template-columns: 1fr 1fr;
    }
}


.product__info{
    padding: 2rem;
}

h1 {
    font-size: 0.75rem;
    letter-spacing: 0.3rem;
    line-height: 120%;
    text-transform: uppercase;
    color: var(--h1-p-color);
    font-family: 'Montserrat', serif;
}

h2 {
    color: var(--product-name-color);
    font-size: 2rem;
    font-weight: 700;

    line-height: 100%;
    margin-top: 1rem;
}

.description {
    font-family: 'Montserrat', serif;
}

p {
    font-size: 0.875rem;
    color: var(--h1-p-color);

    line-height: 160%;
    margin-top: 1.5rem;
}


/* prices styling */
.prices {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
}

.product__price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--current-price-button-bg-color);
    line-height: 100%;
}

.product__original-price {
    font-size: 0.8rem;
    text-decoration: line-through;
    color: var(--h1-p-color);
    line-height: 120%;
}

/* button styling */
button {
    background-color: var(--current-price-button-bg-color);
    color: var(--button-font-color);
    font-family: 'Montserrat', serif;
    font-size: .875rem;
    font-weight: 700;
    line-height: 110%;
    
    border: none;
    border-radius: 0.5rem;
    padding: 1rem;
    width: 100%;
    cursor: pointer;

    margin-top: 1.5rem; 

    display: flex;
    justify-content: center;
    gap: 1rem;
}

button:hover {
    background-color: var(--button-hover-color);
}

/*Footer needs adjusting*/
footer { 
    font-size: .75rem; 
    text-align: center;
    margin-top: 1rem
}

footer a { 
    color: var(--current-price-button-bg-color); 
    text-decoration: none;
}
