@font-face {
  font-family: "VERP Yasmen";
  src: url("/assets/yasmen-verp.ttf") format("truetype");
  font-display: block;
  font-style: normal;
  font-weight: 400;
}

:root {
  --paper: #f6f6f6;
  --ink: #000;
  --muted: #8d8d8d;
  --mx: 50vw;
  --my: 50vh;
  --reveal-size: 0px;
  --edge: clamp(1.25rem, 3vw, 3rem);
  color-scheme: light;
  font-family: "Courier New", Courier, monospace;
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100svh;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  cursor: none;
}

button,
a {
  font: inherit;
}

.site-header,
.site-footer {
  position: fixed;
  z-index: 10;
  right: var(--edge);
  left: var(--edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: clamp(0.58rem, 0.7vw, 0.68rem);
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.site-header {
  top: var(--edge);
}

.site-footer {
  bottom: var(--edge);
}

.site-header p,
.site-footer p {
  margin: 0;
}

.site-id {
  font-weight: 700;
}

.coordinates,
.statement {
  color: var(--muted);
}

.stage {
  position: relative;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  outline: none;
  isolation: isolate;
}

.stage:focus-visible::after {
  position: absolute;
  inset: 0.75rem;
  z-index: 20;
  border: 1px solid var(--ink);
  content: "";
  pointer-events: none;
}

.reveal-layer {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgb(0 0 0 / 8%) 50%, transparent calc(50% + 0.5px)),
    linear-gradient(transparent calc(50% - 0.5px), rgb(0 0 0 / 8%) 50%, transparent calc(50% + 0.5px));
  -webkit-mask-image: radial-gradient(
    circle var(--reveal-size) at var(--mx) var(--my),
    #000 0%,
    #000 64%,
    rgb(0 0 0 / 76%) 77%,
    transparent 100%
  );
  mask-image: radial-gradient(
    circle var(--reveal-size) at var(--mx) var(--my),
    #000 0%,
    #000 64%,
    rgb(0 0 0 / 76%) 77%,
    transparent 100%
  );
  pointer-events: none;
  will-change: mask-image;
}

.wordmark {
  position: absolute;
  top: 50%;
  left: 50%;
  font-family: "VERP Yasmen", Georgia, serif;
  font-size: clamp(7.5rem, 24vw, 23rem);
  font-weight: 400;
  letter-spacing: -0.052em;
  line-height: 0.7;
  white-space: nowrap;
  transform: translate(-49%, -48%);
}

.origin-note,
.manifesto,
.edition {
  position: absolute;
  margin: 0;
  font-size: clamp(0.58rem, 0.72vw, 0.7rem);
  letter-spacing: 0.1em;
  line-height: 1.55;
  text-transform: uppercase;
}

.origin-note {
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
}

.manifesto {
  top: 50%;
  left: var(--edge);
  transform: translateY(-50%);
}

.edition {
  top: 50%;
  right: var(--edge);
  text-align: right;
  transform: translateY(-50%);
}

.quiet-layer {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
}

.axis {
  position: absolute;
  display: block;
  background: rgb(0 0 0 / 4%);
}

.axis-horizontal {
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
}

.axis-vertical {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
}

.interaction-hint {
  position: absolute;
  z-index: 5;
  top: calc(50% + clamp(5rem, 13vw, 11rem));
  left: 50%;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.58rem, 0.68vw, 0.68rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateX(-50%);
  transition: opacity 240ms ease;
}

body.is-active .interaction-hint,
body.is-pinned .interaction-hint {
  opacity: 0;
}

.touch-copy {
  display: none;
}

.future-index {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  color: var(--muted);
}

.future-index span {
  white-space: nowrap;
}

.future-index b {
  margin-right: 0.35rem;
  color: var(--ink);
  font-weight: 400;
}

.status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.status span {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--ink);
  animation: signal 2.4s ease-in-out infinite;
}

.cursor {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translate(calc(var(--mx) - 50%), calc(var(--my) - 50%));
  transition: width 180ms ease, height 180ms ease, opacity 180ms ease;
}

body.is-active .cursor {
  opacity: 1;
}

body.is-pressing .cursor,
body.is-pinned .cursor {
  width: 1.25rem;
  height: 1.25rem;
}

.sr-control {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.not-found {
  display: grid;
  place-items: center;
  cursor: auto;
}

.not-found-content {
  text-align: center;
  text-transform: uppercase;
}

.not-found-content h1 {
  margin: 0;
  font: 400 clamp(7rem, 30vw, 20rem)/0.8 "VERP Yasmen", Georgia, serif;
}

.not-found-content p {
  margin: 2rem 0;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.not-found-content a {
  color: inherit;
  text-underline-offset: 0.35rem;
}

@keyframes signal {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
}

@media (pointer: coarse) {
  :root {
    --reveal-size: clamp(4.5rem, 22vw, 7rem);
  }

  body {
    cursor: auto;
  }

  .pointer-copy,
  .cursor {
    display: none;
  }

  .touch-copy {
    display: inline;
  }

  .interaction-hint {
    top: calc(50% + clamp(5.5rem, 18vw, 8rem));
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
  }

  .coordinates {
    max-width: 10rem;
    text-align: right;
  }

  .wordmark {
    font-size: clamp(7.25rem, 37vw, 11rem);
  }

  .origin-note {
    top: 24%;
  }

  .manifesto {
    top: 35%;
    transform: none;
  }

  .edition {
    top: auto;
    right: var(--edge);
    bottom: 26%;
    transform: none;
  }

  .statement {
    display: none;
  }

  .future-index {
    gap: 0.9rem;
  }

  .future-index b {
    display: none;
  }

  .status {
    margin-left: auto !important;
  }
}

@media (max-width: 480px) {
  .future-index {
    flex-direction: column;
    gap: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
