/* ==========================================================
   Small social icons (top right on the homepage; centered on the other pages, see coming-soon.css)
   (shared by index.html, work.html, about.html, contact.html)
   ========================================================== */
.social {
  --social-color: rgba(255, 255, 255, 0.6);   /* resting icon color: white at 60% opacity (lower the 0.6 to dim them) */
  --social-icon-size: 1.25rem;       /* icon size (homepage) */
  --social-inset: clamp(1.5rem, 3vw, 2.75rem);   /* how far the icons sit from the top and right edges */
  position: fixed;
  top: calc(var(--social-inset) - 0.4rem);       /* minus the link padding, so the icons themselves sit at the inset */
  right: calc(var(--social-inset) - 0.4rem);
  display: flex;
  justify-content: flex-end;
  gap: 0.25rem 1.1rem;                           /* space between the icons (each link also has its own padding) */
  font-family: var(--font);
}

.social a {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem;                               /* makes the clickable area bigger than the icon */
  color: var(--social-color);
  text-decoration: none;
  line-height: 1;
}

/* Hover: just the brand green, no effects */
.social a:hover,
.social a:focus-visible {
  color: var(--accent);
}

.social a:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 1px;
}

/* The logo (an inline SVG that takes the link color) */
.social .icon {
  display: inline-flex;
  width: var(--social-icon-size);
  height: var(--social-icon-size);
}

.social .icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* Text that screen readers read but nobody sees */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
