:root {
  --font-stack: "museo-sans", sans-serif;
  --light-color: #f0f0f2;
  --dark-color: rgb(3, 3, 3);
  --accent-color: limegreen;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
  background-color: var(--dark-color);
}

main {
  font-family: var(--font-stack);
  font-size: 56px;
  color: var(--dark-color);
  border: 10px solid var(--dark-color);
  top: 1rem;
  height: calc(100vh - 2rem);
  width: calc(100vw - 2rem);
}

.app-inner {
  height: calc(100vh - 2rem);
  background-color: var(--light-color);
  background-image: url("../images/background.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50% 30%;
}

@media (min-width: 721px) {
  .app-inner {
    position: relative;
    overflow: hidden;
    background-image: none;
  }

  .app-inner::before,
  .app-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../images/background.png");
    background-repeat: no-repeat;
    pointer-events: none;
  }

  .app-inner::before {
    background-size: cover;
    background-position: center;
    filter: blur(60px);
    transform: scale(1.3);
  }

  .app-inner::after {
    inset: 0 auto 0 50%;
    height: 100%;
    aspect-ratio: 1570 / 1002;
    transform: translateX(-50%);
    background-size: 100% 100%;
    -webkit-mask-image: linear-gradient(
      to right,
      transparent,
      #000 20%,
      #000 80%,
      transparent
    );
    mask-image: linear-gradient(
      to right,
      transparent,
      #000 20%,
      #000 80%,
      transparent
    );
  }
}

h1 {
  margin: 0 auto;
}

a {
  text-decoration: none;
  color: var(--dark-color);
}

.header {
  width: calc(100vw - 2rem);
  z-index: 1;
  position: fixed;
  pointer-events: none;
}

.header-inner {
  display: flex;
  justify-content: space-between;
}

.header-name {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.header-side {
  display: inline-block;
  white-space: nowrap;
  font-size: 6rem;
  text-transform: uppercase;
  line-height: 0.84em;
  transform-origin: 0 0;
}

.header-full {
  display: none;
}

.sub-heading {
  position: absolute;
  bottom: 1rem;
  padding: 2rem;
  max-width: 600px;
  z-index: 1;
  font-size: 3.5rem;
  margin: 0;
}

.surplus-text {
  display: block;
  color: var(--accent-color);
}

.menu {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  margin: 0;
  z-index: 1;
  padding: 2rem;
  text-align: right;
  font-size: 3.5rem;
}

.menu-nav-list {
  margin: 0 auto;
  list-style: none;
}

#menu-resume {
  letter-spacing: 0.6px;
}

#menu-contact {
  letter-spacing: 1.6px;
}

li > a {
  position: relative;
}

li > a::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--dark-color);
  visibility: hidden;
  transform: scaleX(0);
  transition: all 0.3s ease-in-out 0s;
}

li > a:hover::before {
  visibility: visible;
  transform: scaleX(1);
}

@media (max-width: 840px) {
  .surplus-text {
    display: none;
  }
}

@media (max-width: 720px) {
  .app-inner {
    background-position: 60% 30%;
  }

  .header-inner {
    justify-content: center;
  }

  .header-name {
    padding: 1rem 1rem 0;
    align-items: center;
  }

  .header-side {
    display: none;
  }

  .header-full {
    display: block;
    font-size: 1rem;
  }

  .header {
    position: relative;
    width: auto;
  }

  .sub-heading {
    position: relative;
    bottom: auto;
    padding: 0.25rem 0 0;
    max-width: none;
    text-align: center;
    font-size: 1rem;
  }

  .menu {
    left: 1rem;
    right: auto;
    padding: 1rem;
    text-align: left;
    font-size: 2rem;
  }

  .menu-nav-list {
    padding: 0;
    text-align: left;
  }
}

@media (max-height: 455px) {
  .header-side {
    font-size: 4rem;
  }

  li {
    font-size: 2rem;
  }
}

@media (max-height: 322px) {
  .header-side {
    font-size: 3rem;
  }

  li {
    font-size: 1rem;
  }
}
