/* RESET */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ink: #1c1a16;
  --paper: #f7f5f0;
  --muted: rgba(28,26,22,0.4);
  --faint: rgba(28,26,22,0.12);
}

html, body {
  width: 100%;
  height: 100%;
  background: var(--paper);
  overflow: hidden;
  cursor: none;
  font-family: 'DM Mono', monospace;
  border: 2.5px solid black;
}

/* GRAIN */
#grain {
  position: fixed;
  inset: 0;
  opacity: 0.03;
  pointer-events: none;
}

/* CURSOR */
#cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

#cursor-ring {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 0.8px solid white;
  border-radius: 50%;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* NAV */
.nav-back {
  position: fixed;
  top: 2rem;
  left: 2rem;
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 0.5px solid var(--faint);
  z-index: 100;

  .nav-back:hover {
      color: rgba(20,18,14,0.8);
  border-color: rgba(20,18,14,0.45);
  }
}

.nav-title {
  position: fixed;
  top: 2rem;
  right: 2rem;
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}

/* CENTER GRID */
.contact-center {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 3rem 6rem;
  justify-content: center;
  align-content: center;
  z-index: 2;
}

.contact-item {
  font-size: 2rem;
  text-decoration: none;
  color: var(--ink);
  font-family: 'futura', monospace;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}

.contact-item:hover {
  opacity: 0.4;
}

/* ARROWS */
.arrows {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.arrow {
  position: absolute;
  width: 200px;
  height: 1px;
  background: var(--ink);
  opacity: 0.2;
}

/* Arrow heads */
.arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  border-left: 6px solid var(--ink);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

/* Positions */
.a1 { top: 20%; left: -200px; animation: flowRight 6s linear infinite; }
.a2 { top: 80%; right: -200px; animation: flowLeft 7s linear infinite; }
.a3 { left: 20%; top: -200px; transform: rotate(90deg); animation: flowDown 5s linear infinite; }
.a4 { right: 20%; bottom: -200px; transform: rotate(90deg); animation: flowUp 6s linear infinite; }

/* Animations */
@keyframes flowRight {
  to { transform: translateX(120vw); }
}

@keyframes flowLeft {
  to { transform: translateX(-120vw); }
}

@keyframes flowDown {
  to { transform: rotate(90deg) translateX(120vh); }
}

@keyframes flowUp {
  to { transform: rotate(90deg) translateX(-120vh); }
}