.text-link {
  position: relative;
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 10px;
  padding-bottom: 3px;
  overflow: hidden;
  font-size: var(--body-size);
  font-weight: 500;
  letter-spacing: normal;
  line-height: 1.2;
  text-transform: uppercase;
}

.text-link__dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
}

.text-link__line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  transform: translateX(-101%);
  background: currentColor;
  transition: transform 200ms cubic-bezier(0.333333, 0.666667, 0.666667, 1);
}

.text-link--light {
  color: var(--color-paper);
}

@media (hover: hover) and (pointer: fine) {
  a:hover .text-link__line,
  button:hover .text-link__line {
    transform: translateX(0);
  }
}

a:focus-visible .text-link__line,
button:focus-visible .text-link__line {
  transform: translateX(0);
}

@media (max-width: 767px) {
  .text-link {
    line-height: 1.28;
  }
}

@media (prefers-reduced-motion: reduce) {
  .text-link__line {
    transition-duration: 0.01ms;
  }
}
