@import url("https://fonts.googleapis.com/css2?family=Climate+Crisis&family=Space+Grotesk:wght@300..700&display=swap");
body,
p,
label {
  font-family: "Space Grotesk", sans-serif;
  position: relative;
}

body {
  overflow-x: hidden;
}

article {
  position: relative;
  z-index: 1;
  mix-blend-mode: multiply;
}

#hero {
  background-image: url(hero.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;

  color: white;
}

nav {
  color: white;
}

.imgsep {
  width: 100vw;
  aspect-ratio: 2/1;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

#img1 {
  background-image: url(img1.jpg);
}

.funkyfont {
  font-family: "Climate Crisis", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "YEAR" 1979;
}

.headline {
  font-size: clamp(8rem, 21.4vw, 28rem);
  font-weight: 600;
  line-height: 0.75em;
  mix-blend-mode: difference;

  /* font-family: "Climate Crisis", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  line-height: 0.9em;
  font-variation-settings: "YEAR" 1979; */
}

.inverted {
  background-color: rgba(31, 41, 55, 1);
  color: white;
  text-shadow: 5px 5px 0 rgba(31, 41, 55, 1), 6px 6px 0 #fff,
    10px 10px 0 rgba(31, 41, 55, 1), 11px 11px 0 #fff;
}

h1,
.h1 {
  font-size: clamp(5rem, 15vw, 12rem);
  line-height: 0.85em;
}

h2,
.h2 {
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 0.85em;
}

h3,
.h3 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.95em;
}

.giant {
  font-size: 8rem;
}

.time {
  text-shadow: 6px -6px 0px #8de6ff, -4px 4px 0px #f6b6ff;
}

.sepafter:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 4rem;
  height: 1px;
  background-color: black;
}

.sepafter:last-child:after {
  display: none;
}

.animate-fade-in {
  animation: fadeIn 1s ease-in-out;
}

.animate-slide-up {
  animation: slideUp 1s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

nav a {
  font-weight: 500;
  transition: color 0.3s ease;
}

:root {
  --color-bg1: rgb(235, 196, 255);
  --color-bg2: rgb(211, 219, 255);
  --color1: 18, 113, 255;
  --color2: 221, 74, 255;
  --color3: 151, 255, 229;
  --color4: 255, 102, 58;
  --color5: 180, 180, 50;
  --color-interactive: 140, 100, 255;
  --circle-size: 200vw;
  /* --blending: hard-light; */
  --blending: normal;
}

@keyframes moveInCircle {
  0% {
    transform: rotate(0deg) translateZ(0);
  }
  50% {
    transform: rotate(180deg) translateZ(0);
  }
  100% {
    transform: rotate(360deg) translateZ(0);
  }
}

@keyframes moveVertical {
  0% {
    transform: translateY(-50%) translateZ(0);
  }
  50% {
    transform: translateY(50%) translateZ(0);
  }
  100% {
    transform: translateY(-50%) translateZ(0);
  }
}

@keyframes moveHorizontal {
  0% {
    transform: translateX(-50%) translateY(-10%) translateZ(0);
  }
  50% {
    transform: translateX(50%) translateY(10%) translateZ(0);
  }
  100% {
    transform: translateX(-50%) translateY(-10%) translateZ(0);
  }
}

.gradient-bg {
  width: 100vw;
  position: relative;
  background: linear-gradient(40deg, var(--color-bg1), var(--color-bg2));
  /* mix-blend-mode: color-burn; */
}

.gradient-bg svg {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
}

.gradient-bg .gradients-container {
  /* filter: url(#goo) blur(40px); */
  /* filter: blur(40px); */
  width: 100%;
  height: 100%;
  z-index: -1;
  position: absolute;
  overflow: hidden;
  top: 0;
}

.gradient-bg .g1 {
  position: absolute;
  background: radial-gradient(
      circle at center,
      rgba(var(--color1), 0.8) 0,
      rgba(var(--color1), 0) 40%
    )
    no-repeat;
  mix-blend-mode: var(--blending);

  width: var(--circle-size);
  height: var(--circle-size);
  top: calc(50% - var(--circle-size) / 2);
  left: calc(50% - var(--circle-size) / 2);

  transform-origin: center center;
  animation: moveVertical 30s ease infinite;

  opacity: 1;
}

.gradient-bg .g2 {
  position: absolute;
  background: radial-gradient(
      circle at center,
      rgba(var(--color2), 0.8) 0,
      rgba(var(--color2), 0) 40%
    )
    no-repeat;
  mix-blend-mode: var(--blending);

  width: var(--circle-size);
  height: var(--circle-size);
  top: calc(50% - var(--circle-size) / 2);
  left: calc(50% - var(--circle-size) / 2);

  transform-origin: calc(50% - 400px);
  animation: moveInCircle 20s reverse infinite;

  opacity: 1;
}

.gradient-bg .g3 {
  position: absolute;
  background: radial-gradient(
      circle at center,
      rgba(var(--color3), 0.8) 0,
      rgba(var(--color3), 0) 40%
    )
    no-repeat;
  mix-blend-mode: var(--blending);

  width: var(--circle-size);
  height: var(--circle-size);
  top: calc(50% - var(--circle-size) / 2 + 200px);
  left: calc(50% - var(--circle-size) / 2 - 500px);

  transform-origin: calc(50% + 400px);
  animation: moveInCircle 40s linear infinite;

  opacity: 1;
}

.gradient-bg .g4 {
  position: absolute;
  background: radial-gradient(
      circle at center,
      rgba(var(--color4), 0.8) 0,
      rgba(var(--color4), 0) 40%
    )
    no-repeat;
  mix-blend-mode: var(--blending);

  width: var(--circle-size);
  height: var(--circle-size);
  top: calc(50% - var(--circle-size) / 2);
  left: calc(50% - var(--circle-size) / 2);

  transform-origin: calc(50% - 200px);
  animation: moveHorizontal 40s ease infinite;

  opacity: 0.7;
}

.gradient-bg .g5 {
  position: absolute;
  background: radial-gradient(
      circle at center,
      rgba(var(--color5), 0.8) 0,
      rgba(var(--color5), 0) 50%
    )
    no-repeat;
  mix-blend-mode: var(--blending);

  width: calc(var(--circle-size) * 2);
  height: calc(var(--circle-size) * 2);
  top: calc(50% - var(--circle-size));
  left: calc(50% - var(--circle-size));

  transform-origin: calc(50% - 800px) calc(50% + 200px);
  animation: moveInCircle 20s ease infinite;

  opacity: 1;
}

.gradient-bg .interactive {
  position: absolute;
  background: radial-gradient(
      circle at center,
      rgba(var(--color-interactive), 0.8) 0,
      rgba(var(--color-interactive), 0) 50%
    )
    no-repeat;
  mix-blend-mode: var(--blending);

  width: 100%;
  height: 100%;
  top: -50%;
  left: -50%;

  opacity: 0.7;
}

.blink_text {
  animation: 1s blinker linear infinite;
  -webkit-animation: 1s blinker linear infinite;
  -moz-animation: 1s blinker linear infinite;
}

@-moz-keyframes blinker {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@-webkit-keyframes blinker {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes blinker {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
