:root {
  --bg: #07070c;
  --ink: #f4efe6;
  --muted: rgba(244, 239, 230, 0.56);
  --line: rgba(244, 239, 230, 0.14);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: Pretendard, Manrope, "Apple SD Gothic Neo", sans-serif;
  cursor: none;
}

#webgl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 3;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 28px 36px 24px;
  pointer-events: none;
}

.nav,
.foot,
.hero a,
.nav a {
  pointer-events: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.logo {
  font-family: "Instrument Serif", serif;
  font-size: 28px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink);
  text-decoration: none;
}

.nav nav {
  display: flex;
  gap: 28px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.35s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.hero {
  align-self: end;
  max-width: 820px;
  padding-bottom: 8vh;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}

.title {
  display: flex;
  flex-direction: column;
  font-family: "Instrument Serif", Pretendard, serif;
  font-size: clamp(48px, 8vw, 108px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-shadow: 0 10px 50px rgba(7, 7, 12, 0.55);
}

.title span {
  display: block;
  overflow: hidden;
  animation: rise 1.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.title span:nth-child(2) {
  animation-delay: 0.12s;
}

.title .italic {
  font-style: italic;
  color: #efe2c8;
}

.lede {
  margin-top: 28px;
  max-width: 34rem;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  animation: rise 1.2s 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.foot {
  display: flex;
  justify-content: space-between;
  align-items: end;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.coords {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  width: 12px;
  height: 12px;
  pointer-events: none;
  mix-blend-mode: difference;
}

.cursor-dot,
.cursor-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: #fff;
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  transition:
    width 0.35s ease,
    height 0.35s ease,
    opacity 0.35s ease;
}

.cursor.is-hover .cursor-ring {
  width: 64px;
  height: 64px;
}

.cursor.is-hover .cursor-dot {
  opacity: 0;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (hover: none), (pointer: coarse) {
  html,
  body {
    cursor: auto;
  }

  .cursor {
    display: none;
  }
}

@media (max-width: 720px) {
  .overlay {
    padding: 20px 18px 16px;
  }

  .nav nav {
    gap: 16px;
  }

  .lede br {
    display: none;
  }

  .foot {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}
