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

:root {
    --Green500: hsl(158, 36%, 37%);
    --Green700: hsl(158, 42%, 18%);
    --Black: hsl(212, 21%, 14%);
    --Grey: hsl(228, 12%, 48%);
    --Cream: hsl(30, 38%, 92%);
    --White: hsl(0, 0%, 100%);
}

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

html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

body, h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
    margin-block-end: 0;
}

ul[role='list'],
ol[role='list'] {
    list-style: none;
}

body {
    min-height: 100vh;
    line-height: 1.5;
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--Cream);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 1.5rem;
}

h1, h2, h3, h4,
button, input, label {
    line-height: 1.1;
}

h1, h2,
h3, h4 {
    text-wrap: balance;
}

a:not([class]) {
    text-decoration-skip-ink: auto;
    color: currentColor;
}

img,
picture {
    max-inline-size: 100%;
    display: block;
    block-size: auto;
    object-fit: contain;
    border-top-left-radius: 0.8rem;
    border-top-right-radius: 0.8rem;
}

input, button,
textarea, select {
    font-family: inherit;
    font-size: inherit;
}

textarea:not([rows]) {
    min-height: 10em;
}

:target {
    scroll-margin-block: 5ex;
}

main {
    max-width: 25rem;
    background-color: var(--White);
    border-radius: 0.7rem;
}

h1 {
    font-family: "Fraunces", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 900;
}

.light-text {
    color: var(--Grey);
}

.letter-space {
    letter-spacing: 0.2rem;
}

.info {
    margin: 1.5rem 1.5rem;
}

.price {
    display: flex;
    align-items: center;
    color: var(--Green500);
    font-family: "Fraunces", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin: 1rem 0;
}

.current-price {
    margin-right: 1rem;
}

.strike {
    font-size: 0.8rem;
    color: black;
    font-weight: 500;
}

button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: var(--Green500);
    border: none;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 0.8rem;
    font-weight: 600;

    &:hover {
        background-color: var(--Green700);
        transition: ease-in-out 0.5s;
    }
}

button > img {
    width: 1rem;
    margin-right: 0.8rem;
}

.attribution {
    font-size: 11px;
    text-align: center;
}

.attribution a {
    color: hsl(228, 45%, 44%);
}

@media screen and (min-width: 44rem) {
  
    img {
        border-radius: 0;
        border-top-left-radius: 0.8rem;
        border-bottom-left-radius: 0.8rem;
    }

    main {
        min-width: 47rem;
        display: flex;
    }
}