.links {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  max-width: 380px;
  margin-inline: auto;
}

@media (min-width: 640px) {
  .links {
    max-width: none;
  }
}

/* higher specificity than the media query above so it wins at every width,
   same as the inline max-width it replaces did */
.links.links-narrow {
  max-width: 320px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  height: 38px;
  padding-inline: 16px;
  border: 1.5px solid var(--fg);
  border-radius: var(--radius);
  background: transparent;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.26s var(--ease),
    box-shadow 0.26s var(--ease),
    border-color 0.26s var(--ease);
}

@media (min-width: 640px) {
  .btn {
    gap: 8px;
    height: 44px;
    padding-inline: 22px;
    font-size: 12px;
  }
}

.btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.26s var(--ease);
}

@media (min-width: 640px) {
  .btn svg {
    width: 16px;
    height: 16px;
  }
}

.btn:hover,
.btn:focus-visible {
  border-color: var(--accent-deep);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 0 var(--accent-deep);
}

.btn:hover svg,
.btn:focus-visible svg {
  transform: translate(-1px, 0) rotate(-4deg);
}
