/* RESET */

* {
  box-sizing: border-box;
  margin: 0;
}

li {
  list-style-type: none;
  padding: 0;
  text-indent: 0;
}

/* BACKGROUND */

/* Default styles for screens with a minimum width of 769px */
.blob {
  width: 70vw;
  height: 40vh;
  flex-shrink: 0;
  border-radius: 20rem;
  background: linear-gradient(
    90deg,
    rgba(17, 17, 17, 0.5) 0%,
    rgba(45, 138, 253, 0.16) 20%,
    rgba(47, 216, 136, 0.23) 40%,
    rgba(255, 208, 95, 0.25) 60%,
    rgba(254, 96, 87, 0.16) 80%,
    rgba(17, 17, 17, 0.5) 100%
  );
  filter: blur(140px);
  overflow: hidden;
  position: absolute;
  top: 0;
  right: 0;
  z-index: -1;
  animation: gradient-animation 15s infinite linear;
  -webkit-transform: translateZ(0); /* Encourage hardware acceleration */
  transform: translateZ(0);
}

/* Apply a static background for Safari on iOS */
@supports (-webkit-touch-callout: none) {
  .blob {
    animation: none;
    background: linear-gradient(
      90deg,
      rgba(17, 17, 17, 0.5),
      rgba(45, 138, 253, 0.5),
      rgba(47, 216, 136, 0.5),
      rgba(255, 208, 95, 0.5),
      rgba(254, 96, 87, 0.5),
      rgba(17, 17, 17, 0.5)
    );
  }
}

@keyframes gradient-animation {
  0% {
    background-color: rgba(17, 17, 17, 0.5);
  }
  20% {
    background-color: rgba(45, 138, 253, 0.16);
  }
  40% {
    background-color: rgba(47, 216, 136, 0.23);
  }
  60% {
    background-color: rgba(255, 208, 95, 0.25);
  }
  80% {
    background-color: rgba(254, 96, 87, 0.16);
  }
  100% {
    background-color: rgba(17, 17, 17, 0.5);
  }
}

/* GENERAL */

:root {
  --background: #181818;
  --light: rgba(255, 255, 255, 0.921);
  --border: rgba(233, 233, 233, 0.06);
  --text-body: rgba(255, 255, 255, 0.587);
}

html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--background);
  color: var(--text-body);
}

/* LINKS */

a:hover {
  text-decoration: underline;
}

.link::after {
  content: '';
  display: inline-block;
  background: url('/images/link-out.svg') no-repeat top right;
  width: 10px;
  height: 14px;
}

nav a {
  padding: 1rem 0;
}

/* LAYOUT */

header {
  padding: 8% 0;
}

section {
  padding-bottom: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.venture {
  padding-bottom: 1rem;
}

main {
  border-bottom: 1px solid var(--border);
  padding-bottom: 2rem;
}

.wrapper {
  margin: 0 auto;
  padding: 0 4rem;
  max-width: 1280px;
}

/* Wrapper full width on mobile */
@media (max-width: 430px) {
  .wrapper {
    margin: auto;
    padding: 0 1.5rem;
    border-left: 0;
    border-right: 0;
  }
}

footer {
  padding-top: 1rem;
}

/* TYPOGRAPHY */

p {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6em;
  max-width: 55ch;
  padding-bottom: 1rem;
}

footer p {
  font-size: 0.7rem;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: var(--light);
  font-size: 1rem;
}

.label {
  font-size: 0.6rem;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.2px;
  padding-bottom: 0.3rem;
  color: var(--light);
}

h1 {
  font-size: clamp(3rem, -0.875rem + 8.333vw, 4rem);
  line-height: 1;
  font-weight: 400;
  max-width: 20ch;
  padding-bottom: 0.5rem;
}

span {
  color: var(--light);
  font-weight: 500;
}

h2 {
  font-size: 1.2rem;
  font-weight: 400;
  padding-bottom: 1rem;
}
