/* root styles */
:root {
  /* project main colors */
  --cyan: hsl(158, 36%, 37%);
  --dark-cyan: hsl(158, 37%, 20%);
  --cream: hsl(30, 38%, 92%);
  --very-dark-blue: hsl(212, 21%, 14%);
  --dark-grayish-blue: hsl(228, 12%, 48%);
  --white: hsl(0, 0%, 100%);

  /* font families */
  font-family: 'Montserrat', sans-serif;

  /* font sizes */
  font-size: 14px;
  --fs-tiny: 0.8rem;
  --fs-regular: 1em;
  --fs-big: 2.2em;

  --fs-primary-heading: var(--fs-big);

  /* project font weight */
  --fw-500: 500;
  --fw-700: 700;

  --fw-primary-heading: var(--fw-700);

  /* sizing */
  --size-100: 0.25em;
  --size-200: 0.50em;
  --size-300: 0.75em;
  --size-400: 1em;
  --size-500: 1.25em;
  --size-600: 1.5em;
  --size-700: 1.75em;
  --size-800: 2em;
  --size-900: 2.25em;
}

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
* {
  margin: 0;
  padding: 0;
  font-size: inherit;
}

/* 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;
  }
}

/* general styling */

html,
body {
  height: 100vh;;
}

h1,
h2,
h3,
h4,
h5,
h6,
.primary-heading {
  font-family: 'Fraunces', serif;
}

/* Utility classes */
.text-yellow {
  color: #00aeff;
}

.text-cream {
  color: var(--cream);
}

.text-very-dark-blue {
  color: var(--very-dark-blue);
}

.text-grayish-blue {
  color: var(--dark-grayish-blue);
}

.text-white {
  color: var(--white);
}

.bg-cyan {
  background-color: var(--dark-cyan);
}

.bg-cream {
  background-color: var(--cream);
}

.bg-very-dark-blue {
  background-color: var(--very-dark-blue);
}

.bg-grayish-blue {
  background-color: var(--dark-grayish-blue);
}

.bg-white {
  background-color: var(--white);
}

.primary-heading {
  font-size: var(--fs-primary-heading);
  font-weight: normal ;
  line-height: 1.1;
}

.uppercase {
  text-transform: uppercase;
}

.mono-space {
  letter-spacing: 4px;
}

.line-through {
  text-decoration: line-through;
}

.fs-tiny {
  font-size: var(--fs-tiny);
}

.mb-100 {
  margin-bottom: var(--size-100);
}

.mb-200 {
  margin-bottom: var(--size-200);
}

.mb-300 {
  margin-bottom: var(--size-300);
}

.mb-400 {
  margin-bottom: var(--size-400);
}

.mb-500 {
  margin-bottom: var(--size-500);
}

.mb-600 {
  margin-bottom: var(--size-600);
}

.mb-700 {
  margin-bottom: var(--size-700);
}

.mb-800 {
  margin-bottom: var(--size-800);
}

.mb-900 {
  margin-bottom: var(--size-900);
}

/* styling */

main {
  min-height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card {
  width: min(600px, 80%);
  border-radius: var(--size-300);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.image,
.desc {
  flex: 50%;
}

.desc {
  padding: var(--size-900);
}

.price {
  display: flex;
  justify-content: flex-start;
  align-items: baseline;
}

span {
  padding-right: var(--size-200);
}

.button {
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  border: none;
  border-radius: var(--size-200);
  background-color: #00aeff;
  padding: var(--size-300);
  font-weight: var(--fw-700);
}

.button:hover {
  background-color: black;
}

.button img {
  margin-right: var(--size-300);
}

@media screen and (min-width: 40rem) {
  .card {
    flex-direction: row !important;
  }

  .paragraph {
    max-width: 25ch;
    line-height: 1.7;
  }

  .primary-heading {

    max-width: 10ch;
  }
}