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

/* CSS RESET */
/*
1. Use a more-intuitive box-sizing model.
*/
*, *::before, *::after {
    box-sizing: border-box;
}
/*
2. Remove default margin
*/
* {
    margin: 0;
}
/*
3. Allow percentage-based heights in the application
*/
html, body {
    height: 100%;
}
/*
Typographic tweaks!
4. Add accessible line-height
5. Improve text rendering
*/
body {
    line-height: 2.5;
    -webkit-font-smoothing: antialiased;
}
/*
6. Improve media defaults
*/
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}
/*
7. Remove built-in form typography styles
*/
input, button, textarea, select {
    font: inherit;
}
/*
8. Avoid text overflows
*/
p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

/* CSS RESET END */


body {
    background-color: hsl(30, 38%, 92%);
    font-family: 'Montserrat', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
}

main {
    background-color: white;
    border-radius: .5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    max-width: 37.5rem;
    max-height: 28.125rem;
}

h1 {
    color: hsl(212, 21%, 14%);
    font-family: 'Fraunces', serif;
    font-weight: 700;
    line-height: 2rem;
    margin: 1rem 0 1.6rem;
}

p {
    color: hsl(228, 12%, 48%);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.63;
}

.category {
    font-size: 0.76rem;
    letter-spacing: .3rem;
}

.content {
    margin: 1.9rem;
    display: flexbox;
}

.prices {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.22rem 0;
}

.currentPrice {
    color: hsl(158, 36%, 37%);
    font-family: 'Fraunces', serif;
    font-size: 2rem;
}

.previousPrice {
    font-size: 0.8rem;
}

button {
    background-color: hsl(158, 36%, 37%);
    border: 0;
    border-radius: .5rem;
    color: white;
    display: inline-flex;
    font-weight: 700;
    font-size: .875rem;
    justify-content: center;
    align-items: center;
    gap: .65rem;
    padding: .4rem;
    width: 100%;
    
}

button:hover {
    background-color: #184131;
    cursor: pointer;
}

footer {
    display: block;
    position: absolute;
    bottom: 1rem;
}

.attribution {
    font-size: 0.687rem; text-align: center;
}
.attribution a {
    color: hsl(228, 45%, 44%);
}


@media (max-width: 37.5rem) {
    main {
        grid-template-columns: 1fr;
        max-height: fit-content;
        max-width: 80%;
    }
}