@font-face {
  font-family: 'Alegreya Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/alegreya-sans-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Alegreya Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/alegreya-sans-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Alegreya';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/alegreya-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Alegreya';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/alegreya-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Alegreya';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/alegreya-400italic-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Alegreya';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/alegreya-400italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: black;
}

.background {
  background-image: url("/img/head.jpg");
  background-size: cover;
  background-position: center;
  height: 100%;
  width: 100%;
  position: relative;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.background.loaded {
  opacity: 1;
}

.text {
  color: white;
  font-size: 20px;
  font-family: "Alegreya Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  line-height: 1;
  text-shadow: 1px 1px 20px rgba(0, 0, 0, 0.5);
}

.signature {
  position: absolute;
  bottom: 15px;
  left: 55px;
}

.links {
  display: flex;
  gap: 4px 13px;
  flex-wrap: wrap;
}

.name {
  font-size: 69px;
  margin: 0 0 20px;
  line-height: 0.94;
  font-family: "Alegreya", sans-serif;
}

.fol {
  font-size: 26px;
  font-family: "Alegreya Sans";
  line-height: 1.1;
}

.stack {
  height: 45px;
}

p {
  margin: 0;
}

a {
  display: inline-block;
  margin: 0 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

a.lang-switch {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  z-index: 10;
  text-decoration: none;
}

@media (max-width: 1000px) {
  .background {
    background-image: url("/img/mid.jpg");
  }

  .signature {
    bottom: 17px;
    left: 25px;
  }

  .name {
    font-size: 60px;
  }

  .fol {
    font-size: 23px;
  }

  .stack {
    height: 50px;
  }

  a.lang-switch {
    top: 12px;
    right: 12px;
    font-size: 15px;
  }
}

@media (max-width: 600px) {
  .background {
    background-image: url("/img/foot.jpg");
  }

  .signature {
    bottom: 13px;
    left: 17px;
  }

  .name {
    font-size: 53px;
  }

  .fol {
    font-size: 20px;
  }

  .stack {
    height: 50px;
  }

  .links {
    flex-wrap: wrap;
    display: flex;
    gap: 4px 13px;
  }

  a.lang-switch {
    top: 10px;
    right: 10px;
    font-size: 14px;
  }
}
