html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ffffff;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.ss {
  display: flex;
  gap: 20px;
  width: min(100%, 320px);
}

.ss__toc {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 92px;
}

.ss__marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 26px;
  border-radius: 4px;
  background: #0a4fe8;
  transform: translateY(calc(var(--i, 0) * 32px));
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ss__link {
  height: 26px;
  box-sizing: border-box;
  padding-left: 12px;
  border: 0;
  background: transparent;
  text-align: left;
  font-family: inherit;
  font-weight: 600;
  font-size: 11px;
  color: rgba(23, 20, 26, 0.5);
  cursor: pointer;
}

.ss__link[aria-current=true] {
  color: #0a4fe8;
  font-weight: 800;
}

.ss__pane {
  flex: 1 1 auto;
  height: 116px;
  overflow-y: auto;
  scroll-behavior: auto;
  border-radius: 16px;
  background: #fff7e6;
  padding: 12px;
}

.ss__section {
  min-height: 96px;
  padding: 8px 0;
}

.ss__section h3 {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 800;
  color: #17141a;
}

.ss__section p {
  margin: 0;
  font-size: 11px;
  color: rgba(23, 20, 26, 0.68);
}

@media (max-width: 340px) {
  .ss {
    gap: 12px;
  }
  .ss__toc {
    width: 76px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ss__marker {
    transition: none !important;
  }
  .ss__pane {
    scroll-behavior: auto !important;
  }
}
