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

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

.paperstack {
  position: relative;
  width: clamp(200px, 62vw, 280px);
}

.paperstack__sheet {
  position: absolute;
  top: 0;
  left: 0;
  box-sizing: border-box;
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  background: repeating-linear-gradient(0deg, rgba(122, 105, 78, 0.06) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(122, 105, 78, 0.05) 0 1px, transparent 1px 4px), repeating-linear-gradient(48deg, rgba(255, 255, 255, 0.5) 0 1px, transparent 1px 7px), #fff7e6;
  box-shadow: 0 6px 10px rgba(23, 20, 26, 0.3);
}

.paperstack__sheet--2 {
  top: 10px;
  left: 8px;
  transform: rotate(1.6deg);
  height: 152px;
}

.paperstack__sheet--3 {
  top: 20px;
  left: -6px;
  transform: rotate(-2.2deg);
  height: 148px;
}

.paperstack__sheet--1 {
  position: relative;
  height: 156px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  z-index: 1;
  animation: sheetSlide 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.paperstack__eyebrow {
  margin: 0;
  color: #8a6d3f;
  font-weight: 700;
  font-size: clamp(9px, 2.4vw, 11px);
  line-height: 1;
  font-family: inherit;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.paperstack__title {
  margin: 0;
  color: #574a38;
  font-weight: 800;
  font-size: clamp(16px, 4.2vw, 22px);
  line-height: 1.2;
  font-family: inherit;
}

.paperstack__desc {
  margin: 0;
  color: #574a38;
  font-weight: 500;
  font-size: clamp(11px, 2.8vw, 13px);
  line-height: 1.4;
  font-family: inherit;
}

.paperstack__tag {
  margin: 8px 0 0;
  border-radius: 4px;
  padding: 4px 8px;
  background: #e9dcc2;
  color: #574a38;
  font-weight: 700;
  font-size: 10px;
  line-height: 1;
  font-family: inherit;
}

.paperstack__line {
  display: block;
  height: 8px;
  margin: 8px 0 0;
  border-radius: 999px;
  background: rgba(87, 74, 56, 0.16);
}

@keyframes sheetSlide {
  0%, 10% {
    transform: translateY(0);
  }
  46%, 58% {
    transform: translateY(-48px);
  }
  88%, 100% {
    transform: translateY(0);
  }
}
@media (max-width: 340px), (max-height: 220px) {
  .paperstack {
    width: 208px;
  }
  .paperstack__sheet--1 {
    height: 128px;
    padding: 12px;
  }
  .paperstack__sheet--2, .paperstack__sheet--3 {
    height: 124px;
  }
  .paperstack__sheet--2 {
    top: 8px;
  }
  .paperstack__sheet--3 {
    top: 16px;
  }
  .paperstack__desc {
    display: none;
  }
  @keyframes sheetSlide {
    0%, 10% {
      transform: translateY(0);
    }
    46%, 58% {
      transform: translateY(-20px);
    }
    88%, 100% {
      transform: translateY(0);
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .paperstack__sheet--1 {
    animation: none !important;
    transform: none;
  }
}
