html {
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    height: 100%;

    --bg-color: hsl(30, 38%, 92%);
    --btn-color: hsl(158, 36%, 37%);
    --card-bg-color: hsl(0, 0%, 100%);
}

body {
    padding: 8px;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.max-width-wrapper {
    width: auto;
    max-width: 375px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

article {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    color: hsl(228, 12%, 48%);
    box-shadow: 5px 10px 10px hsl(30, 30%, 70%);
}

.perfume-image img {
    border-radius: 12px 12px 0px 0px;
}

h1 {
    line-height: 1.1;
    color: hsl(212, 21%, 14%);
}

div.info {
    padding: 20px 30px;
}

div.info > * {
    margin-bottom: 20px;
}

.item-type {
    letter-spacing: 4px;
    margin-top: 8px;
}

.fraunces {
    font-family: 'Fraunces', serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-variation-settings: 'SOFT' 0, 'WONK' 0;
    font-size: 2rem;
}

strong.fraunces {
    color: var(--btn-color);
}

.price {
    display: flex;
    gap: 16px;
    align-items: center;
}

sup {
    text-decoration: line-through;
    font-size: 1rem;
}

button {
    background-color: var(--btn-color);
    color: var(--card-bg-color);
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    padding: 12px;
    border: none;
    width: 100%;
    margin-bottom: 10px;
    border-radius: 8px;
    font-weight: 700;
    box-shadow: 2px 4px 4px hsl(0, 0%, 90%);
}

button:active {
    background-color: hsl(158, 42%, 18%);
    box-shadow: 3px 6px 6px hsl(0, 0%, 80%);
    cursor: pointer;
}

button img {
    width: 1.2rem;
    height: 1.2rem;
}

@media (min-width: 650px) {
    .max-width-wrapper {
        max-width: 600px;
    }

    article {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr;
    }

    .perfume-image img {
        grid-column: 1;
        border-radius: 10px 0px 0px 10px;
        height: 100%;
    }

    div.info {
        grid-column: 2;
        padding-top: 20px;
    }

    div.info > button {
        margin-bottom: 0px;
    }
}
