:root {
  --dark-color: hsl(var(--hue), 100%, 9%);
  --light-color: hsl(var(--hue), 95%, 98%);
  --base: hsl(var(--hue), 95%, 50%);
  --complimentary1: hsl(var(--hue-complimentary1), 95%, 50%);
  --complimentary2: hsl(var(--hue-complimentary2), 95%, 50%);

  --font-family: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";

  --bg-gradient: linear-gradient(
    to bottom,
    hsl(var(--hue), 95%, 99%),
    hsl(var(--hue), 95%, 84%)
  );
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  --hue: 30;
  --hue-complimentary1: 70;
  --hue-complimentary2: 50;
}

body {
  margin: 0;
  max-width: 100%;
  min-height: 100vh;
  font-family: var(--font-family);
  color: var(--dark-color);
  background: var(--bg-gradient);
}


.i {
  float: right;
  width: 25%;
  margin-left: 2rem;
  margin-bottom: 1rem;
  border-radius: 1rem;
  box-shadow: 0 .75rem 2rem 0 rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.125);
}
@media only screen and (max-width: 840px) { .i { width: 33%; } }
@media only screen and (max-width: 600px) { .i { width: 50%; } }
@media only screen and (max-width: 450px) {
  .i {
    width: 100%;
    float: none;
    margin-left: 0;
  }
}

.orb-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

strong { font-weight: 600; }

.overlay {
  width: 80%;
  margin: 1rem auto;
  padding: 8rem 6rem;
  max-width: 1140px;
  background: rgba(255, 255, 255, 0.375);
  box-shadow: 0 0.75rem 2rem 0 rgba(0, 0, 0, 0.1);
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.125);
}

/* .overlay__inner { max-width: 36rem; } */

.overlay__title {
  font-size: 1.875rem;
  line-height: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 2rem;
}

.text-gradient {
  background-image: linear-gradient(
    45deg,
    var(--base) 25%,
    var(--complimentary2)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-background-clip: text;
  -moz-text-fill-color: transparent;
}

.overlay__description,
.overlay__list li {
  font-size: 1rem;
  line-height: 1.75rem;
}
.overlay__description { margin-bottom: 3rem; }
.overlay__description + .overlay__list { margin-top: -2rem; }

.overlay__btns {
  width: 100%;
  max-width: 30rem;
  display: flex;
}

.overlay__btn {
  width: 50%;
  height: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--light-color);
  background: var(--dark-color);
  border: none;
  border-radius: 0.5rem;
  transition: transform 150ms ease;
  outline-color: hsl(var(--hue), 95%, 50%);
}

.overlay__btn:hover {
  transform: scale(1.05);
  cursor: pointer;
}

.overlay__btn--transparent {
  background: transparent;
  color: var(--dark-color);
  border: 2px solid var(--dark-color);
  border-width: 2px;
  margin-right: 0.75rem;
}

.overlay__btn-emoji { margin-left: 0.375rem; }

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

/* Not too many browser support this yet but it's good to add! */
@media (prefers-contrast: high) { .orb-canvas { display: none; } }

@media only screen and (max-width: 1140px) { .overlay { padding: 8rem 4rem; } }

@media only screen and (max-width: 840px) {
  .overlay {
    padding: 4rem;
    height: auto;
  }

  .overlay__title {
    font-size: 1.25rem;
    line-height: 2rem;
    margin-bottom: 1.5rem;
  }

  .overlay__description,
  .overlay__list li {
    font-size: 0.875rem;
    line-height: 1.5rem;
  }
  .overlay__description {
    margin-bottom: 2.5rem;
  }
}

@media only screen and (max-width: 600px) {
  .overlay { padding: 1.5rem; }

  .overlay__btns { flex-wrap: wrap; }

  .overlay__btn {
    /* width: 100%; */
    font-size: 0.75rem;
    margin-right: 0;
  }

  .overlay__btn:first-child { margin-bottom: 1rem; }
}

.overlay--header {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.nav {
  display: flex;
  gap: 1rem;
}

.nav a:first-child { margin-right: auto; }

.logo {
  background-image: url(img/logo.png);
  background-size: contain;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 0;
}

.social {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: .5rem;
}

.social__link {
  font-size: 0;
  width: 2rem;
  height: 2rem;
  background-repeat: no-repeat;
  background-position: 50% 50%;
}

.social__link:hover { opacity: .5; }

.social__link--vk { background-image: url(icons/vk.svg); }
.social__link--fb { background-image: url(icons/facebook.svg); }
.social__link--ig { background-image: url(icons/instagram.svg); }
.social__link--tg { background-image: url(icons/telegram.svg); }
.social__link--yt { background-image: url(icons/youtube.svg); }
