/* StarBorder — adapted from React Bits (open source).
   Vanilla-CSS port; JS drives the canvas. Palette values map to this site's
   dark theme tokens via custom properties set at runtime. */

.star-border {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.875rem 1.5rem;
  border: 0;
  border-radius: var(--star-border-radius, 12px);
  background: var(--star-border-surface, #0c0c0f);
  color: var(--star-border-text, #fafafa);
  font: inherit;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.star-border::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: inset 0 0 0 var(--star-border-thickness, 1px) var(--star-border-track, rgba(255, 255, 255, 0.1));
  pointer-events: none;
}

.star-border__light {
  position: absolute;
  top: -48px;
  left: -48px;
  z-index: -1;
  width: calc(100% + 96px);
  height: calc(100% + 96px);
  pointer-events: none;
}

button.star-border,
a.star-border {
  cursor: pointer;
}

.star-border:focus-visible {
  outline: 2px solid var(--star-border-track, rgba(255, 255, 255, 0.1));
  outline-offset: 3px;
}

.star-border:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* The nav button inherits the site's uppercase letter-spaced label style
   instead of the React Bits default. */
.star-border--btn {
  padding: 0.95rem 1.6rem;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease;
}