@font-face {
  font-family: 'Archivo';
  font-weight: normal;
  src: url('fonts/Archivo.ttf');
}
@font-face {
  font-family: 'Archivo';
  font-weight: bold;
  src: url('fonts/ArchivoExt.ttf');
}
@font-face {
  font-family: 'Archivo';
  font-weight: normal;
  font-style: italic;
  src: url('fonts/ArchivoExtThin.ttf');
}
body {
  margin: 0;
  background-color: #232b39;
  color: #f2f4f7;
  position: relative;
  overflow: hidden;
}
main {
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
figure {
  position: absolute;
  background-image: linear-gradient(150deg, #f8778d99 0%, #232b39cc 100%), url('wallpaper.jpg');
  background-size: 200%, cover;
  background-position: 0 0, center;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  margin: 0;
  z-index: -1;
  mix-blend-mode: hard-light;
  opacity: 1;
  animation: 20s animate infinite ease-in-out alternate;
}
@keyframes animate {
  0% {
    transform: scale(1) rotate3d(1, 1, 1, 0deg);
    background-position: 0 0, 0% 0%;
  }
  100% {
    transform: scale(1.8) rotate3d(1, 1, -0.5, 30deg);
    background-position: 100% 0, 80% 80%;
  }
}
div {
  position: relative;
}
h1 {
  position: absolute;
  font-size: 5rem;
  margin: 0;
  top: -3rem;
  padding: 0 2rem;
  transition: 0.3s color ease, 0.3s top ease, 0.3s text-shadow ease;
  transform: translate(-50%, -50%);
  text-shadow: none;
}
h1:hover {
  text-shadow: 0 0.25rem 0 #a0aec5, 0 0.5rem 0 #516585, 0 0.75rem 0 #3a485f, 0 1rem 0 #2b3545;
  color: #f8778d;
  top: -4rem;
}
h1:hover::before,
h1:hover::after {
  opacity: 0;
  top: 1rem;
}
h1:hover ~ p {
  bottom: 0.5rem;
  opacity: 1;
}
h1::before {
  z-index: -1;
  background: repeating-linear-gradient(-45deg, #f8778d, #f8778d 2%, transparent 2%, transparent 8.9%);
}
h1::after {
  background: repeating-linear-gradient(-45deg, #232b3977, transparent 2%, transparent 6.9%, #516585 6.9%, #516585 8.9%);
}
h1::before,
h1::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  transition: 0.3s opacity ease, 0.3s top ease;
  clip-path: polygon(0 50%, 5% 0, 100% 0, 100% 50%, 95% 100%, 0 100%);
}
article {
  margin-top: 0.5rem;
  display: flex;
}
a {
  color: #dfe4ec;
  text-decoration: none;
  position: relative;
  transition: 0.15s color ease;
  display: block;
  width: 3rem;
}
a:hover {
  color: #f8778d;
}
a > div {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
a > div > svg:first-child {
  transform: rotate(45deg);
  opacity: 0.2;
}
a > div > svg:last-child {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0.25rem;
}
h1,
a,
p {
  font-family: 'Archivo', sans-serif;
}
footer {
  color: #3a485f;
  margin: 0.25rem 0;
  user-select: none;
}
p {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  bottom: 0rem;
  text-shadow: 0 0.125rem 0 #232b39;
  left: -50vw;
  margin: 0;
  width: 100vw;
  text-align: center;
  font-style: italic;
  font-size: 1.5rem;
  transition: 0.3s opacity ease, 0.3s bottom ease;
}
@media (max-width: 768px) {
  html {
    font-size: 40%;
  }
  a {
    width: 5rem;
  }
  a div > svg:first-child {
    width: 24px;
    height: 24px;
  }
  a div > svg:last-child {
    width: 20px;
    height: 20px;
  }
}
