:root {
  --fg: #f3dce1;
  --shadow: rgba(10, 2, 8, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
}

body {
  overflow: hidden;
  color: var(--fg);
  background: #10040c;
  font-family: "Space Grotesk", sans-serif;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  padding: clamp(20px, 4vw, 56px);
  pointer-events: none;
}

h1 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 0.95;
  font-size: clamp(2rem, 9.5vw, 9rem);
  max-width: 10.5ch;
  text-wrap: balance;
  text-shadow: 0 12px 40px var(--shadow);
}

.contact-link {
  position: fixed;
  left: 50%;
  bottom: clamp(18px, 3.2vw, 34px);
  transform: translateX(-50%);
  z-index: 2;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(0.78rem, 1.25vw, 0.92rem);
  opacity: 0.88;
  transition: opacity 180ms ease, transform 180ms ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

.contact-link:focus-visible {
  outline: 2px solid rgba(243, 220, 225, 0.85);
  outline-offset: 5px;
}

@media (max-width: 640px) {
  h1 {
    max-width: 12ch;
    font-size: clamp(2.1rem, 13vw, 3.8rem);
  }

  .contact-link {
    bottom: 16px;
    letter-spacing: 0.06em;
  }
}
