/* The tunnel that makes room: a jeweller's home page. Gold rings, gold tubes and pearls float in a ring around the
   middle of the screen, leaving a round hole where the name and the words sit. */
:root {
  --deep: #07140f;          /* the edges of the page */
  --green: #123528;         /* the glow behind the middle */
  --cream: #f3ead8;         /* text */
  --gold: #e5c27a;          /* the mark and the link */
  --edge: clamp(18px, 3.2vw, 48px);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: radial-gradient(60% 60% at 50% 50%, var(--green) 0%, #0b2119 55%, var(--deep) 100%);
  color: var(--cream);
  font-family: 'Manrope Variable', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* the WebGL canvas fills the window, under the words */
.stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

/* a shade along the top and the bottom, so the menu and the hint read over the gold */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(7, 20, 15, 0.82), rgba(7, 20, 15, 0) 110px),
    linear-gradient(to top, rgba(7, 20, 15, 0.82), rgba(7, 20, 15, 0) 96px);
  pointer-events: none;
}

.bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px var(--edge);
  font-size: 14px;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.bar a {
  pointer-events: auto;
}

.brand {
  font-family: 'Cormorant Variable', Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.bar__nav {
  display: flex;
  gap: clamp(16px, 2.6vw, 38px);
}

.bar__nav a {
  opacity: 0.8;
  transition: opacity 0.2s;
}

@media (hover: hover) {
  .bar__nav a:hover {
    opacity: 1;
    color: var(--gold);
  }
}

.bar a:focus-visible,
.shop:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

/* the middle: it stays still while the tunnel moves around it */
.hole {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 24px;
  text-align: center;
  pointer-events: none;
}

.mark {
  width: 46px;
  height: 46px;
  color: var(--gold);
}

.title {
  max-width: 9em;
  margin: 0;
  font-family: 'Cormorant Variable', Georgia, serif;
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 24px rgba(7, 20, 15, 0.9);
}

.title em {
  color: var(--gold);
  font-style: italic;
}

.shop {
  margin-top: 6px;
  padding: 10px 18px;
  border: 1px solid rgba(229, 194, 122, 0.6);
  border-radius: 999px;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: auto;
  transition: background-color 0.25s, color 0.25s;
}

@media (hover: hover) {
  .shop:hover {
    background: var(--gold);
    color: var(--deep);
  }
}

.hint {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 22px;
  z-index: 2;
  margin: 0;
  padding: 0 20px;
  text-align: center;
  font-size: 13px;
  opacity: 0.66;
  pointer-events: none;
}

.aim {
  position: fixed;
  left: 70%;
  top: 36%;
  width: 2px;
  height: 2px;
  pointer-events: none;
}

@media (max-width: 760px) {
  .bar__nav {
    display: none;
  }

  .title {
    font-size: 30px;
  }

  .aim {
    left: 74%;
    top: 30%;
  }
}
