@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@700&family=Lexend+Deca&display=swap');

:root {
  --bright-orange: hsl(31, 77%, 52%);
  --dark-cyan: hsl(184, 100%, 22%);
  --very-dark-cyan: hsl(179, 100%, 13%);

  --transparent-white: hsla(0, 0%, 100%, 0.75);
  --very-light-gray: hsl(0, 0%, 95%);
}
* {
  font-family: 'Lexend Deca', sans-serif;
}
html {
  font-size: 62.5%;
}
body {
  margin: 0;
  font-size: 1.5rem;
  display: flex;
  flex-direction: column;
  min-block-size: 100vh;
}
main {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
article {
  margin-inline: 2.4rem;
  display: flex;
  flex-direction: column;
}
article section {
  padding: 5rem;
  color: var(--transparent-white);
}
article section:first-of-type {
  border-radius: 0.8rem 0.8rem 0 0;
}
article section:last-of-type {
  border-radius: 0 0 0.8rem 0.8rem;
}
article section h1 {
  font-size: 4rem;
  margin-block: 3rem;
  text-transform: uppercase;
  font-family: 'Big Shoulders Display', sans-serif;
  color: var(--very-light-gray);
}
article section p {
  line-height: 1.7em;
}
article section button {
  margin-block-start: 1rem;
  background-color: var(--very-light-gray);
  padding: 0.8em 3.2em;
  border: 0;
  cursor: pointer;
  border-radius: 2.5rem;
  border: 2px solid var(--very-light-gray);
}
article section.sedans {
  background-color: var(--bright-orange);
}
article section.sedans::before {
  content: url('images/icon-sedans.svg');
  width: 6.4rem;
  block-size: 4rem;
  display: block;
}
article section.sedans button {
  color: var(--bright-orange);
}
article section.suvs {
  background-color: var(--dark-cyan);
}
article section.suvs::before {
  content: url('images/icon-suvs.svg');
  width: 6.4rem;
  block-size: 4rem;
  display: block;
}
article section.suvs button {
  color: var(--dark-cyan);
}
article section.luxury {
  background-color: var(--very-dark-cyan);
}
article section.luxury::before {
  content: url('images/icon-luxury.svg');
  width: 6.4rem;
  block-size: 4rem;
  display: block;
}
article section.luxury button {
  color: var(--very-dark-cyan);
}
footer {
  color: var(--very-dark-cyan);
  font-size: 1.1rem;
  text-align: center;
  margin: 1rem;
}
footer a {
  color: var(--bright-orange);
}

/* 768px = 48em */
@media only screen and (min-width: 48em) {
  article {
    flex-direction: row;
    max-width: 92rem;
  }
  article section:first-of-type {
    border-radius: 0.8rem 0 0 0.8rem;
  }
  article section:last-of-type {
    border-radius: 0 0.8rem 0.8rem 0;
  }
  article section button:hover {
    background: rgba(0, 0, 0, 0);
    color: var(--very-light-gray);
  }
}
