@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;400&display=swap");
body {
  overflow: hidden;
  box-sizing: border-box;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "Source Sans Pro", sans-serif;
  background-color: #fcf8f5;
  color: #2c2d48;
  transition: background-color 1.5s, color 1s;
}

header {
  width: 800px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

h1 {
  font-weight: 900;
}

header h1 {
  font-size: 20px;
  font-weight: 700;
  margin: auto 5%;
}

main {
  margin-top: auto;
}

main h1 {
  font-family: "Playfair Display", serif;
  font-size: 90px;
  text-align: center;
  margin: 0 10% 50px;
}

p {
  max-width: 720px;
  font-size: 22.5px;
  line-height: 1.6em;
  text-align: justify;
  margin: auto 5%;
  font-weight: 300;
}

small {
  font-size: 0.5em;
  display: block;
}

footer {
  cursor: pointer;
  margin-top: 50px;
  margin-bottom: auto;
  font-size: 2em;
  text-align: center;
}

.darkmode {
  color: #dcdcdc;
  background-color: #222831;
}

@media (max-width: 500px) {
  p {
    font-size: 1em;
  }

  main h1 {
    font-size: 50px;
  }

  footer {
    font-size: 1.5em;
  }

  footer small {
    font-size: 0.6em;
  }
}