/* Universal Selector to remove default browser settings */
* {
  padding: 0rem;
  margin: 0rem;
  box-sizing: border-box;
}

@font-face {
  font-family: "Heading-400";
  src: url(./assets/fonts/Poppins-Regular.ttf);
  font-weight: 400;
}

@font-face {
  font-family: "Heading-600";
  src: url(./assets/fonts/Poppins-SemiBold.ttf);
  font-weight: 600;
}

@font-face {
  font-family: "Body";
  src: url(./assets/fonts/OpenSans-VariableFont_wdth_wght.ttf);
  font-weight: 400;
}

/* CSS Variables */
:root {
  --Violet: hsl(257, 40%, 49%);
  --Soft-Magenta: hsl(300, 69%, 71%);

  /* Added a color for hover */
  --Amethyst: hsl(279, 50%, 60%);
}

html {
  font-size: 100%;
}

body {
  font-family: "Body";
  background-image: url(./assets/images/bg-desktop.svg);
  background-color: var(--Violet);
  background-repeat: no-repeat;
  padding: 4rem;
}

.logo {
  margin-bottom: 3rem;
}

main {
  display: flex;
  align-items: center;
  gap: 2rem;
}

:where(article h1, article p) {
  color: white;
}

article h1 {
  font-family: "Heading-600";
  font-size: 2.7rem;
  margin-top: -8rem;
  margin-bottom: 1.5rem;
}

article p {
  font-size: 1.25rem;
  margin-bottom: 3rem;
}

.button {
  background-color: white;
  color: var(--Violet);
  font-size: 1.2rem;
  padding: 1rem 4.4rem;
  border: 1px solid black;
  border-radius: 2rem;
  box-shadow: 0 10px 30px -10px black;
}

a {
  text-decoration: none;
}

.social-links {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

li {
  list-style-type: none;
}

.social-links a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 2rem;
  height: 2rem;
  padding: 1.5rem;
  color: white;
  font-size: 1.75rem;
  border: 1px solid white;
  border-radius: 50%;
}

@media (hover: hover) {
  .button:hover {
    background-color: var(--Amethyst);
    color: white;
  }

  .social-links a:hover {
    color: var(--Amethyst);
    border-color: var(--Amethyst);
  }
}

.button:active {
  background-color: var(--Soft-Magenta);
  color: white;
}

.social-links a:active {
  color: var(--Soft-Magenta);
  border-color: var(--Soft-Magenta);
}

/* All devices less than large */
@media only screen and (max-width: 1200px) {
  body {
    background-image: url(./assets/images/bg-mobile.svg);
    background-size: 100%;
    padding: 10%;
  }

  main {
    flex-direction: column;
  }

  .logo {
    width: 40%;
    height: 40%;
  }

  .illustration {
    width: 100%;
    height: 100%;
    margin-bottom: 2rem;
  }

  article {
    text-align: center;
  }

  article h1 {
    margin-top: 0;
    font-family: "Heading-400";
    font-size: 1.5rem;
  }

  article p {
    font-size: 1rem;
  }

  .social-links {
    justify-content: center;
  }

  .social-links a {
    font-size: 1rem;
    padding: 0.75rem;
    margin-top: 5rem;
  }
}

@media only screen and (min-width: 1440px) and (min-height: 801px) {
  body {
    background-size: cover;
  }
}
