/*
  Based on the original idea and implementation by Victor Vergara
  https://codepen.io/vcomics/pen/LYEvmyq
*/
@import url("https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,100..900&family=IBM+Plex+Mono&display=swap");

*,
*::after,
*::before {
  box-sizing: border-box;
}

:root {
  --color--background--100: rgb(60, 60, 60);
  --color--foreground--100: rgb(90, 90, 90);
  --color--accent--100: rgb(170, 170, 170);
  --font-primary: "Inter", sans-serif;
  --font-secondary: "IBM Plex Mono", monospace;
  --margin: 32px;
  --gutter: 16px;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
  background: radial-gradient(
    circle at 10% 20%,
    rgb(230, 230, 230) 0%,
    rgb(180, 180, 180) 45%,
    rgb(100, 100, 100) 90%
  );

  color: var(--color--foreground--100);
  letter-spacing: -0.03em;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: transparent
    url("http://assets.iceable.com/img/noise-transparent.png") repeat 0 0;
  background-size: 300px 300px;
  -webkit-animation: noise-animation 0.3s steps(5) infinite;
          animation: noise-animation 0.3s steps(5) infinite;
  opacity: 0.9;
  will-change: transform;
  z-index: 100;
  pointer-events: none;
}

@-webkit-keyframes noise-animation {
  0% {
    transform: translate(0, 0);
  }
  10% {
    transform: translate(-2%, -3%);
  }
  20% {
    transform: translate(-4%, 2%);
  }
  30% {
    transform: translate(2%, -4%);
  }
  40% {
    transform: translate(-2%, 5%);
  }
  50% {
    transform: translate(-4%, 2%);
  }
  60% {
    transform: translate(3%, 0);
  }
  70% {
    transform: translate(0, 3%);
  }
  80% {
    transform: translate(-3%, 0);
  }
  90% {
    transform: translate(2%, 2%);
  }
  100% {
    transform: translate(1%, 0);
  }
}

@keyframes noise-animation {
  0% {
    transform: translate(0, 0);
  }
  10% {
    transform: translate(-2%, -3%);
  }
  20% {
    transform: translate(-4%, 2%);
  }
  30% {
    transform: translate(2%, -4%);
  }
  40% {
    transform: translate(-2%, 5%);
  }
  50% {
    transform: translate(-4%, 2%);
  }
  60% {
    transform: translate(3%, 0);
  }
  70% {
    transform: translate(0, 3%);
  }
  80% {
    transform: translate(-3%, 0);
  }
  90% {
    transform: translate(2%, 2%);
  }
  100% {
    transform: translate(1%, 0);
  }
}

canvas {
  width: 100%;
  height: 100%;
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  background: transparent;
}

.container {
  display: flex;
  width: 100%;
  height: 100vh;
  padding: var(--gutter);
}

.sidebar {
  width: 40%;
  padding: var(--margin);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}

.logo {
  font-size: 20rem;
  line-height: 0.9;
  font-family: var(--font-mono);
  color: var(--color-accent);
  margin-bottom: 1rem;
  margin-left: -22px;
}

.logo sup {
  font-size: 6rem;
}

.description {
  font-size: 0.75rem;
  line-height: 1.2;
  margin-bottom: 40px;
  max-width: 360px;
  font-family: var(--font-mono);
}

.nav-links {
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono);
}

.nav-links a {
  color: var(--color-foreground);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--color-accent);
}

.footer {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
}

.footer p {
  opacity: 0.5;
}

.social-links {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.division {
  margin-top: auto;
}

.main-content {
  width: 65%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--margin);
  font-family: var(--font-mono);
  text-transform: uppercase;
  text-align: center;
}

button.book {
  background-color: var(--color-accent);
  color: var(--color-foreground);
  border: none;
  padding: 10px 20px;
  border-radius: 2;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  cursor: pointer;
  margin-top: var(--gutter);
  transition: background-color 0.3s;
}

button.book:hover {
  background-color: rgb(255, 100, 20);
}

.dg.ac {
  z-index: 999 !important;
}