* {
  box-sizing: border-box;
}

html,
body {
  block-size: 100%;
}

body {
  background: pink;
  margin: 0;
  overflow: hidden;
}

canvas {
  display: block;
  position: fixed;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
}

.project {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.back-link {
  position: fixed;
  inset-block-start: 1rem;
  inset-inline-start: 1rem;
  z-index: 1;
  border: 1px solid hsl(0 0% 100% / 0.52);
  border-radius: 0;
  padding: 0.65rem 0.85rem;
  color: white;
  background: hsl(0 0% 0% / 0.28);
  font-family: "TT2020 Style G", ui-monospace, "SFMono-Regular", Consolas, monospace;
  text-decoration: none;
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

.back-link:hover {
  background: hsl(0 0% 0% / 0.38);
}

.glitch-body {
  position: relative;
}

.back-link.glitch-body {
  position: fixed;
}

.glitch-layout-text {
  visibility: hidden;
}

.glitch-animated-text {
  inset: 0;
  position: absolute;
}

.back-link .glitch-animated-text {
  align-items: center;
  display: flex;
  justify-content: center;
  text-align: center;
}

.type-char {
  display: inline-block;
  opacity: 0;
  transition: opacity 45ms ease-in;
}

.space-char {
  inline-size: 0.5em;
}

.type-char.visible {
  opacity: 1;
}

.typing-caret {
  animation: blink-caret 0.75s step-end infinite;
  border-inline-end: 0.12em solid currentColor;
  display: inline-block;
  block-size: 1em;
  inline-size: 0;
  margin-inline-end: -0.12em;
  vertical-align: bottom;
}

@keyframes blink-caret {
  from,
  to {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  block-size: 1px;
  inline-size: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
}
