@font-face {
  font-family: 'AreaNormal';
  src: url('fonts/AreaNormal-Semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
}

body {
  margin: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  padding-top: calc(env(safe-area-inset-top) + 24px);
  padding-bottom: calc(env(safe-area-inset-bottom) + 24px);
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  font-family: 'AreaNormal', sans-serif;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: white;

  background: linear-gradient(
    180deg,
    #656565 0%,
    #979797 16%,
    #979797 31%,
    #656565 49%,
    #656565 57%,
    #979797 80%,
    #979797 100%
  );
  background-size: 200% 200%;
  animation: gradientMove 8s ease-in-out infinite alternate;
}

@supports not (height: 100dvh) {
  body {
    height: -webkit-fill-available;
  }
}

body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #656565 0%,
    #080808 16%,
    #080808 31%,
    #373737 49%,
    #373737 57%,
    #080808 80%,
    #080808 100%
  );
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

body::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 80px rgba(255, 255, 255, 0.7);
  transition: box-shadow 1s ease-in-out;
  pointer-events: none;
  z-index: 2;
}

body.hover-gradient::before {
  opacity: 1;
}

body.hover-gradient::after {
  box-shadow: inset 0 0 80px rgba(101, 101, 101, 0.7);
}

@keyframes gradientMove {
  0% { background-position: 50% 0%; }
  100% { background-position: 50% 100%; }
}

.light {
  position: fixed;
  width: 500vw;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle, rgba(151,151,151,0.5) 0%, rgba(151,151,151,0) 20%);
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: transform 0.5s ease;
  z-index: 1;
}

.top-text {
  position: relative;
  z-index: 3;
  line-height: 1.3;
}

.top-text h1,
.top-text p {
  font-size: clamp(1rem, 6vw, 2rem);
  font-weight: 400;
  margin: 5px 0;
}

a {
  color: white;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity 0.25s ease;
  position: relative;
  z-index: 3;
}

a:hover,
a:focus {
  opacity: 0.5;
  outline: none;
}

.bottom-links {
  position: relative;
  z-index: 3;
  font-size: clamp(1rem, 6vw, 2rem);
  font-weight: 300;
}

::selection {
  background: #080808;
  color: white;
}

@media (max-width: 600px) {
  body { padding: 24px; }
}
