:root {
  --bg: whitesmoke;
  --ink: #161616;
  --muted: #5a5a5a;
  --max: 2000px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 200;
}

.hold {
  min-height: 100vh;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 28px;
}

.hold h1 {
  margin: 0;
  font-weight: 200;
  font-size: clamp(36px, 4vw, 64px);
  letter-spacing: -0.035em;
  line-height: 1;
}

.hold p {
  margin: 16px 0 0;
  max-width: 34rem;
  font-size: 18px;
  line-height: 1.45;
  color: var(--muted);
}

.cta {
  appearance: none;
  width: fit-content;
  margin-top: 32px;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  letter-spacing: -0.02em;
  cursor: pointer;
}

.cta:hover {
  background: var(--ink);
  color: var(--bg);
}

.cta:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.note {
  margin-top: 16px;
  font-size: 15px;
}

body.room {
  background: #111;
  overflow: hidden;
}

#panorama {
  position: fixed;
  inset: 0;
}

#panorama canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}

#panorama canvas:active {
  cursor: grabbing;
}

.controls {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.controls button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: #fff;
  color: #161616;
  font: 400 20px/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
  cursor: pointer;
}

.controls svg {
  width: 16px;
  height: 16px;
}

.hint,
.credit {
  position: fixed;
  z-index: 2;
  margin: 0;
  color: #fff;
  font-size: 15px;
  line-height: 1.4;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.hint {
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  transition: opacity 0.6s ease;
}

.hint.is-hidden {
  opacity: 0;
}

.credit {
  left: 16px;
  bottom: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  pointer-events: auto;
}

.credit a {
  color: inherit;
}
