body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol";
  margin: 0;
  padding: 2em;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #111;
  color: #fff;
}
li {
  list-style: none;
}
li a {
  text-decoration: none;
  color: inherit;
}
.magnetic-link {
  color: inherit;
  padding: 1em 1em;
  text-decoration: none;
  position: relative;
  border-radius: 50%;
  border: 0.1em solid currentColor;
  box-sizing: border-box;
}
.magnetic-link__inner {
  z-index: 1;
  grid-column-gap: 0.35em;
  grid-row-gap: 0.35em;
  justify-content: center;
  align-items: center;
  display: flex;
  position: relative;
}

.magnetic-link__bg {
  z-index: 0;
  border-radius: 50%;
  position: absolute;
  inset: 0%;
  scale: 1.1;
}
.magnetic-link:hover path {
  stroke: black !important;
}
.magnetic-link__label-icon {
  rotate: -45deg;
}
.magnetic-link__bg--underline {
  position: absolute;
  height: 0.125em;
  width: 100%;
  bottom: 0;
  left: 0;
  border-radius: 0.125em;
}
.js-cursor {
  aspect-ratio: 1;
  border-radius: 100em;
  width: 0.75em;
  position: fixed;
  inset: 0% auto auto 0%;
}

.js-cursor-bg {
  border-radius: inherit;
  background-color: #fff;
  width: 100%;
  height: 100%;
}

.magnetic-link .cursor-bg {
  opacity: 0.1;
}
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1em 2em;
  display: flex;
  justify-content: flex-end;
  box-sizing: border-box;
}
.nav__item {
  pointer-events: auto;
}
.nav__link {
  display: flex;
  align-items: center;
  gap: 1em;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 1.4em;
}
.nav__link a {
  color: inherit;
  text-decoration: none;
  font-size: 0.875em;
  padding-bottom: 0.1em;
}
.js-link {
  position: relative;
}
.magnetic-link__label-icon {
  width: 1.25em;
  height: 1.25em;
  display: block;
}
.magnetic-link--text {
  padding: 0.5em 1em;
  border-radius: 0.5em;
}
.magnetic-link__bg--text {
  border-radius: 0.5em;
}
.magnetic-link--text:hover {
  color: black !important;
}
.example {
  display: flex;
  gap: 2em;
  justify-content: center;
  align-items: center;
  height: 100vh;
}
.magnetic-link--border {
  border-radius: 0.5em;
  background-color: #111;
  z-index: 100;
  position: relative;
  border: none;
}
.magnetic-link--border::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0.5em;
  background-color: #111;
}
.magnetic-link--border:hover {
  color: white !important;
}
.magnetic-link__bg--border {
  border-radius: 0.5em;
  scale: 1;
}
.magnetic-link__bg--border {
  width: calc(100% + 0.25em);
  height: calc(100% + 0.25em);
  top: -0.125em;
  left: -0.125em;
}
.magnetic-link__label {
  position: relative;
  z-index: 101;
}
.header__title {
  position: fixed;
  top: 1em;
  left: 2em;
}
.header__subtitle {
  margin-top: 0.2em;
  display: block;
  font-size: 1em;
}
