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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background-color: hsl(30, 38%, 92%);
    font-size: 0.88rem;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 0.1px);
    margin: 0 1rem;
}

h1, .price {
    font-family: 'Fraunces', serif;
    color: hsl(212, 21%, 14%); 
    margin-bottom: 1rem;
    font-size: xx-large;
}

h2 {
    font-size: 1rem;
    font-weight: 500;
    margin: 1rem 0;
    letter-spacing: 0.3rem;
}

.container {
    background-color: hsl(0, 0%, 100%);
    max-width: 500px;
    margin-bottom: 1rem;
    border-radius: 1rem 1rem;
    margin-top: 1.5rem;
}

img {
    max-width: 100%;
    border-radius: 1rem 1rem 0 0;
}

p {
    line-height: 1.5;
}

p, h2 {
    color: hsl(228, 12%, 48%)
}

ul {
    list-style-type: none;
    display: flex;
    flex-direction: row;
}

.price {
    color: hsl(158, 36%, 37%);
    margin-top: 1rem;
    font-size: x-large;
    width: auto;
    margin-right: 1.5rem;
}

.btn {
    background-color: hsl(158, 36%, 37%);
    color: hsl(0, 0%, 100%);
    border: none;
    outline: none;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    height: 2.2rem;
}

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

button:hover {
    background-color: hsl(158, 36%, 17%);
}

button, li {
    font-size: inherit;
    width: 100%;
    height: 2.7rem;
    border-radius: 0.5rem;
}

.text {
    padding: 1.5rem;
}

li:nth-child(2) {
    margin-top: 1rem;
    padding-top: 0.5rem;
    height: 100%;
}

.attribution { 
    font-size: 11px; 
    text-align: center;
    margin-bottom: 1.5rem;
 }
    
 .attribution a { 
    color: hsl(228, 45%, 44%);
 }

 @media (min-width: 640px) {
    .container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        border-radius: 0.5rem;
    }
    .container article:first-child img {
        height: 100%;
    }

    .container img:nth-child(2) {
        border-radius: 0.5rem 0 0 0.5rem;
    }
    h2 {
        font-size: smaller;
        margin: 0.3rem 0 0.3rem;
    }
 }