:root {
  --edge: 40px;
  --slide: 0.6s;
  --fill: 1;
}

@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}

@keyframes slide-out-right {
  to {
    transform: translateX(100vw);
  }
}
@keyframes slide-in-left {
  from {
    transform: translateX(-100vw);
  }
}
@keyframes slide-out-up {
  to {
    transform: translateY(-100vh);
  }
}
@keyframes slide-in-up {
  from {
    transform: translateY(100vh);
  }
}

html {
  background: #000;
}

body {
  margin: 0;
  background: #000;
  color: #fff;
}

.index {
  margin: 0 0 1.8em;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  opacity: calc(0.4 * var(--fill));
}

.title {
  margin: 0;
  font-size: clamp(1.2rem, 3.2vw, 1.9rem);
  font-weight: 200;
  letter-spacing: 0.25em;
  text-indent: 0.25em;
  opacity: var(--fill);
}

.rule {
  width: 40px;
  height: 1px;
  margin: 1.4em 0;
  background: #fff;
  opacity: calc(0.4 * var(--fill));
}

.desc {
  margin: 0;
  max-width: min(86vw, 34em);
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  font-weight: 300;
  letter-spacing: 0.14em;
  line-height: 2;
  opacity: calc(0.6 * var(--fill));
}

.period {
  margin: 1.2em 0 0;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  opacity: calc(0.4 * var(--fill));
}

.work {
  position: relative;
  aspect-ratio: 16 / 9;
}

.copyright {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  opacity: calc(0.5 * var(--fill));
}
