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);
}

.wrap {
  margin: 0;
  width: 160px;
  text-align: center;
}

.link {
  color: #fff7e6;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(16px, 4.4vw, 20px);
  line-height: 1.6;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transition: background-size 300ms ease-out;
}

.link:hover, .link:focus-visible {
  background-size: 100% 2px;
}

.link.is-demo {
  animation: underline-multiline 2s ease-out infinite;
}

@keyframes underline-multiline {
  0%, 100% {
    background-size: 0% 2px;
  }
  35%, 60% {
    background-size: 100% 2px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .link, .link.is-demo {
    transition: none;
    animation: none;
  }
  .link:hover, .link:focus-visible {
    background-size: 100% 2px;
  }
}
