@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@700&family=Montserrat:wght@500;700&display=swap');

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    background-color: hsl(30, 38%, 92%);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

h1, h2, h3 {
    font-family: 'Fraunces', serif;
    font-weight: 700;
}

main {
    background-color: white;
    width: 538px;
    display: flex;
    border-radius: 10px;
    overflow: hidden;
}

.one {
    width: 50%;
    overflow: hidden;
}

.desk, .mob {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.desk {
    transform: scale(1.5);
}

.mob {
    display: none;
}

.two {
    width: 50%;
    padding: 2rem;
}

.top {
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-size: 0.8em;
    font-weight: bold;
    color: #7B7C81;
}

h1 {
    line-height: 0.9em;
    margin: 1.5rem 0;
}

p {
    font-size: 0.875em;
    line-height: 1.5em;
    color: #7B7C81;
}

.price {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

.now {
    font-family: 'Fraunces', serif;
    font-size: 2em;
    font-weight: bold;
    color: hsl(158, 36%, 37%);
}

s {
    color: #7B7C81;
    font-size: 0.8em;
    margin-left: 1rem;
}

button {
    color: white;
    background-color: hsl(158, 36%, 37%);
    padding: 1rem;
    width: 100%;
    border-radius: 10px;
    border: none;
    outline: none;
}

button::before {
    content: url("images/icon-cart.svg");
    position: relative;
    left: -10px;
    bottom: -2px;
}

button:hover {
    background-color: hsl(158, 42%, 18%);
    cursor: pointer;
}

.attribution {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.8em;
}

@media screen and (min-width: 363px) and (max-width: 568px) {
    main {
        flex-direction: column;
        width: 70%;
    }

    .one {
        width: 100%;
        height: 240px;
    }

    .two {
        width: 100%;
    }

    .desk {
        display: none;
    }

    .mob {
        display: block;
    }
}

@media screen and (max-width: 362px) {
    main {
        flex-direction: column;
        width: 100%;
        padding-top: 2rem;
    }

    .one {
        width: 100%;
        height: 240px;
    }

    .two {
        width: 100%;
    }
}
