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

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
   scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:root {
    --color-dark-cyan: hsl(158, 36%, 37%);
    --color-cream: hsl(30, 38%, 92%);
    --color-very-dark-blue: hsl(212, 21%, 14%);
    --color-dark-grayish-blue: hsl(228, 12%, 48%);
    --color-white: hsl(0, 0%, 100%);
}


body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--color-cream);
    font-size: .875rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

main {
 padding-inline: 1rem;
}

article {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 37.5rem;
  border-radius: 10px;
  overflow: hidden;
}

picture,.description {
  flex: 1 1 18.75rem;
}

.description {
  padding: 2rem;
  background-color: var(--color-white);
  display: flex;
  flex-direction: column;
}

.description > * + * {
  margin-block-start: 1.5rem;
}

a,p,s {
  color: var(--color-dark-grayish-blue);
}

h1,span {
  font-family: "Fraunces",sans-serif;
  font-size: 2rem;
  line-height: 1;
}

a.category {
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.42em;
  font-size: .75rem;
  line-height: 1.22;
}

h1 {
  color: var(--color-very-dark-blue);
  
}

p {
  
  line-height: 1.64;
}

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

span {
  color: var(--color-dark-cyan);
}

s {
  margin-inline-start: 1.25rem;
}

button {
  color: var(--color-white);
  background-color: var(--color-dark-cyan);
  border: transparent;
  border-radius: 8px;
  padding: 1em;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

svg {
  margin-inline-end: .75rem;
}