@font-face {
  font-family: Cormorant;
  src: url("./fonts/cormorant-garamond-400-normal.woff2");
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  overflow: hidden;
  background: #302220;
}
body {
  font-family: Cormorant, Georgia, serif;
  color: #fff7e9;
  -webkit-font-smoothing: antialiased;
}
canvas#rock {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button:focus-visible {
  outline: 2px solid #fff3c2;
  outline-offset: 4px;
}
#veil {
  position: fixed;
  inset: 0;
  background: #2b211e;
  display: grid;
  place-items: center;
  z-index: 40;
  transition:
    opacity 0.6s,
    visibility 0.6s;
}
#veil.gone {
  opacity: 0;
  visibility: hidden;
}
.wordmark {
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: 0.2em;
}
#masthead {
  position: fixed;
  z-index: 20;
  left: 18px;
  top: max(18px, env(safe-area-inset-top));
  padding: 7px 11px;
  background: rgba(25, 18, 20, 0.92);
  border-radius: 5px;
}
.wordmark-small {
  font-size: 16px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
#orbs {
  position: fixed;
  z-index: 20;
  right: 16px;
  top: max(16px, env(safe-area-inset-top));
  display: flex;
  gap: 8px;
}
#orbs button {
  height: 44px;
  min-width: 54px;
  border: 1px solid #bca29488;
  border-radius: 22px;
  background: rgba(25, 18, 20, 0.94);
  font-size: 16px;
  padding: 0 12px;
}
#journey-text {
  position: fixed;
  z-index: 20;
  left: 18px;
  bottom: max(172px, calc(env(safe-area-inset-bottom) + 155px));
  max-width: 460px;
  width: calc(100% - 36px);
  padding: 15px 18px;
  background: rgba(25, 18, 20, 0.94);
  border: 1px solid #d4b79b28;
  border-radius: 8px;
  pointer-events: none;
}
#caption {
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.12;
  font-weight: 400;
}
#whisper {
  font-family: system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  margin-top: 10px;
  color: #f1e1d0;
}
#dial {
  position: fixed;
  z-index: 21;
  bottom: max(14px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: 330px;
  height: 132px;
  border-radius: 80% 80% 15px 15px;
  background: rgba(25, 18, 20, 0.94);
  border: 1px solid #bca29455;
  touch-action: none;
}
#dialarc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.45;
  pointer-events: none;
}
.stop {
  position: absolute;
  width: 68px;
  height: 56px;
  border: 0;
  border-radius: 15px;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 16px;
  line-height: 1;
}
.stop i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #bcaa98;
}
.stop.active i {
  background: #fff2c8;
  box-shadow: 0 0 12px #f8c679;
}
.stop.active {
  background: #ffffff10;
}
.stop[data-scene="0"] {
  left: 14px;
  top: 58px;
}
.stop[data-scene="1"] {
  left: 86px;
  top: 23px;
}
.stop[data-scene="2"] {
  left: 166px;
  top: 23px;
}
.stop[data-scene="3"] {
  left: 245px;
  top: 58px;
}
@media (min-width: 760px) {
  #journey-text {
    left: 32px;
    bottom: 32px;
    width: 440px;
  }
  #dial {
    left: auto;
    right: 26px;
    transform: none;
  }
  #masthead {
    left: 32px;
    top: 26px;
  }
  #orbs {
    right: 28px;
    top: 26px;
  }
}
@media (max-width: 350px) {
  #dial {
    width: 300px;
  }
  .stop[data-scene="0"] {
    left: 3px;
  }
  .stop[data-scene="1"] {
    left: 77px;
  }
  .stop[data-scene="2"] {
    left: 151px;
  }
  .stop[data-scene="3"] {
    left: 225px;
  }
  #journey-text {
    padding: 12px 14px;
    left: 12px;
    width: calc(100% - 24px);
  }
  #masthead {
    left: 12px;
  }
  #orbs {
    right: 12px;
    gap: 5px;
  }
  #orbs button {
    min-width: 50px;
    padding: 0 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
