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

body,
h1,
p {
  margin: 0;
}

img {
  display: block;
}

:root {
  --white: #ffffff;
  --black: #1c232b;
  --grey: #6c7289;
  --cream: #f2eae2;
  --green-700: #1a4032;
  --green-500: #3d8168;
  --font-family-primary: "Fraunces", serif;
  --font-family-secondary: "Montserrat", sans-serif;
  --font-medium: 500;
  --font-bold: 700;
  --font-spacing-regular: 0;
  --font-spacing-medium: 0.3125rem;
  --font-preset1: 2rem;
  --font-preset1-line-height: 1;
  --font-preset2: 0.875rem;
  --font-preset2-line-height: 1.1;
  --font-preset3: 0.875rem;
  --font-preset3-line-height: 1.6;
  --font-preset4: 0.75rem;
  --font-preset4-line-height: 1.2;
  --font-preset5: 0.8125rem;
  --font-preset5-line-height: 1.2;
  --spacing-xs: 0.25rem;
  --spacing-s: 0.5rem;
  --spacing: 1rem;
  --spacing-l: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 2.5rem;
  --border-radius: 0.5rem;
}

body {
  font-family: var(--font-family-secondary);
  font-weight: var(--font-medium);
  color: var(--grey);
  background-color: var(--cream);
}

.card {
  width: 100%;
  max-width: 600px;
  border-radius: var(--border-radius);
  overflow: hidden;
  display: flex;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.card > * {
  width: 50%;
}
.card picture img {
  width: 100%;
  height: 100%;
}
.card .content {
  padding: var(--spacing-xl);
  background-color: var(--white);
}
.card .content .category {
  display: block;
  margin-bottom: var(--spacing-l);
  font-size: var(--font-preset4);
  line-height: var(--font-preset4-line-height);
  letter-spacing: var(--font-spacing-medium);
  text-transform: uppercase;
}
.card .content .title {
  margin-bottom: var(--spacing-l);
  color: var(--black);
  font-family: var(--font-family-primary);
  font-size: var(--font-preset1);
  font-weight: var(--font-bold);
  line-height: var(--font-preset1-line-height);
}
.card .content .description {
  font-size: var(--font-preset3);
  line-height: var(--font-preset3-line-height);
}
.card .content .price {
  display: flex;
  align-items: center;
  margin: var(--spacing-xl) 0;
}
.card .content .price span {
  color: var(--green-500);
  font-family: var(--font-family-primary);
  font-size: var(--font-preset1);
  font-weight: var(--font-bold);
  line-height: var(--font-preset1-line-height);
}
.card .content .price s {
  margin-left: var(--spacing);
  font-size: var(--font-preset5);
  line-height: var(--font-preset5-line-height);
}
.card .content .button {
  width: 100%;
}

.button {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--spacing) var(--spacing-xl);
  border: none;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: var(--font-preset2);
  font-weight: var(--font-bold);
  line-height: var(--font-preset2-line-height);
  color: var(--white);
  background-color: var(--green-500);
}
.button:hover {
  background-color: var(--green-700);
}
.button svg {
  height: 18px;
  width: 18px;
  margin-right: var(--spacing-s);
}

.attribution {
  font-size: 11px;
  text-align: center;
  position: absolute;
  left: 50%;
  bottom: var(--spacing);
  transform: translateX(-50%);
}
.attribution a {
  color: hsl(228, 45%, 44%);
}

@media (max-width: 767px) {
  .card {
    max-width: 350px;
    flex-direction: column;
  }
  .card > * {
    width: 100%;
  }
  .card .content .price {
    margin: var(--spacing-l) 0;
  }
}
