.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-width: 44px;
  min-height: 44px;
  padding: .3rem .6rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  color: var(--text);
  background: var(--panel);
  text-decoration: none;
}
.social-links a:hover { border-color: #4778eb; text-decoration: underline; }
.social-links a:focus-visible {
  outline: 3px solid #4778eb;
  outline-offset: 3px;
}
.social-links svg { width: 25px; height: 25px; flex: none; }
.home-social { margin-left: auto; }
.home-social .social-links { flex-wrap: nowrap; }
.home-social a { padding: .3rem; }
.footer-social { margin-top: 1rem; }
.footer-social h2 { font-size: 1.05rem; margin: 0 0 .55rem; }
@media (max-width: 720px) {
  .home-social { flex-basis: 100%; }
  .home-social .social-links { justify-content: flex-end; }
}

/* Motion is feedback for interaction. Keep touch and reduced-motion static. */
@media (prefers-reduced-motion: no-preference) {
  .social-links svg {
    transition: transform 160ms ease-out;
  }
  .social-links a:focus-visible svg {
    transform: translateY(-2px);
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .social-links a:hover svg {
    transform: translateY(-2px);
  }
}
.social-links a:active {
  border-color: #4778eb;
  box-shadow: inset 0 0 0 1px #4778eb;
}
