:root {
  --bg: #611d1d;
  --cream: #ecdab4;
  --yellow: #f3bd33;
  --dot-inactive: rgba(236, 218, 180, 0.36);

  --icon-left: 1.55rem;
  --icon-size: 2.8rem;
  --dot-size: 0.25rem;

  --content-inline-start: calc(var(--icon-left) + var(--icon-size) + 4rem);
  --content-inline-end: clamp(1.5rem, 4vw, 5rem);
  --content-block-gap: clamp(1.5rem, 4vh, 4rem);

  --text-body-size: 1.22rem;
  --text-body-leading: 1.65rem;
  --text-body-size-small: 1rem;
  --text-body-leading-small: 1.35rem;
  --text-caption-size: 0.72rem;
  --text-caption-leading: 1rem;

  --mono: "degular-mono", "SF Mono", "SFMono-Regular", "Roboto Mono",
    "IBM Plex Mono", Menlo, Consolas, monospace;
  --serif: "Instrument Serif", Georgia, serif;

  font-size: clamp(.875rem, 1.058vw, 1rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--cream);
  overflow-x: hidden;
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg);
  overflow: hidden;
  z-index: 1;
}

.scroll-track {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.page {
  width: 100%;
  height: 100vh;
}

.scene {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 4.5rem;
  pointer-events: none;
  overflow: visible;
}

.scene-1,
.scene-2,
.scene-3 {
  opacity: 0;
}

@media (max-width: 56.25rem) {
  :root {
    font-size: .9375rem;
    --icon-left: 1.5rem;
    --icon-size: 2.5rem;
    --dot-size: 0.25rem;
    --content-inline-start: 1.25rem;
    --content-inline-end: 1.25rem;

  --content-inline-start: calc(var(--icon-left) + var(--icon-size) + 4rem);
  --content-inline-end: clamp(1.5rem, 4vw, 5rem);
  --content-block-gap: clamp(1.5rem, 4vh, 4rem);

  --text-body-size: 1.22rem;
  --text-body-leading: 1.65rem;
  --text-body-size-small: 1rem;
  --text-body-leading-small: 1.35rem;
  --text-caption-size: 0.72rem;
  --text-caption-leading: 1rem;
  }

  .scene {
    padding-left: 0;
  }
}


@media (max-width: 56.25rem) {
  .scene {
    padding-inline: var(--content-inline-end);
  }
}

@media (max-height: 43.75rem) and (orientation: landscape) {
  :root {
    font-size: 0.875rem;
  }

  .scroll-dots {
    top: 5.5rem;
    height: calc(100vh - 7rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* Hide browser scrollbars while preserving scrolling. */
html, body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
