:root {
  --main-bg-1: #47007a;
  --main-bg-2: #a20070;
  --main-color: #eee;
  --header-font: "Bree Serif", serif;
  --body-font: Manrope, sans-serif;
}
body{
  margin: 0;
  background-color: var(--main-bg-1);
  background-image: radial-gradient(
    farthest-corner at 10% 10%,
    var(--main-bg-1) 0%,
    var(--main-bg-2) 100%
  );
  color: var(--main-color);
  height: 100vh;
}
header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 20px 20px 40px 20px;
}
header img {
  width: 96px;
  height: 96px;
}
h1 {
  font-family: var(--header-font);
  font-weight: 400;
  font-style: normal;
  font-size: 2em;
}
main {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
}
article a {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--main-color);
  border-radius: 10px;
  background-color: rgba(1, 1, 1, 0.1);
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
  font-family: var(--body-font);
  color: var(--main-color);
  text-decoration: none;
  width: 440px;
}
article img {
  width: 400px;
  position: relative;
  border-radius: 10px;
  margin: 20px;
  align-self: center;
}
article h2 {
  background-color: rgba(1, 1, 1, 0.1);
  margin: 0;
  padding: 10px 20px 5px 20px;
  font-size: 1.5em;
}
article p {
  background-color: rgba(1, 1, 1, 0.1);
  margin: 0;
  padding: 5px 20px 15px 20px;
  font-size: 1em;
}
footer {
  display: flex;
  justify-content: center;
  padding: 10px;
}
footer p {
  font-family: var(--body-font);
}
footer a {
  color: var(--main-color);
}

/* -- Shrink everything down a bit, otherwise the body bg starts to repeat -- */
@media only screen and (max-width: 500px){
  header img { width: 32px; height: 32px; }
  h1 { font-size: 1.2em; }
  article a {
    width: 300px;
  }
  article img {
    width: 280px;
    margin: 10px;
  }
  article h2 { font-size: 1.2em; }
}