body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* pre-intro overlays */
.pre-intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  background: #fcf8f5;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 320ms ease, visibility 320ms ease;
}

.pre-intro-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pre-intro-overlay-message {
  max-width: min(820px, 100%);
  text-align: center;
  position: relative;
  font-family: "Source Sans 3", sans-serif;
  font-size: clamp(1.15rem, 1.35vw, 1.45rem);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: #3d180c;
}

#begin-project-overlay {
  cursor: pointer;
}

/* temporary debug button */
.debug-jump-panel {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 999;
  display: flex;
  gap: 8px;
}

.debug-jump-button {
  appearance: none;
  border: 0;
  padding: 10px 14px;
  border-radius: 6px;
  background: rgba(18, 27, 40, 0.8);
  color: #ffffff;
  font-family: "Source Sans 3", sans-serif;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

/* buttons */
.narrative-button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: auto;
  cursor: pointer;
}

.narrative-button img,
.narrative-button-bg {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.narrative-button-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: "Lora", serif;
  font-size: 21px;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

.narrative-button--light .narrative-button-label {
  color: #162C57;
}

.narrative-button--dark .narrative-button-label {
  color: #ffffff;
}

.ui-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 5px;
  background: rgba(18, 27, 40, 0.6);
  color: #ffffff;
  font-family: "Lora", serif;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
}

.home-button {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 60px;
  height: 50px;
  z-index: 999;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  cursor: pointer;
}

.home-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-button.is-visible {
  opacity: 1;
  pointer-events: auto;
}