:root {
  color-scheme: light;
  --orbit: min(34vw, 34vh);
  --icon-size: clamp(44px, 6vw, 76px);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #f4e3cb;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.logo {
  display: block;
  width: 30vw;
  max-width: 30vw;
  height: auto;
}

.socials { position: absolute; inset: 0; }

.social {
  position: absolute;
  left: calc(50% + var(--x) * var(--orbit));
  top: calc(50% + var(--y) * var(--orbit));
  translate: -50% -50%;
  width: var(--icon-size);
  height: var(--icon-size);
  display: grid;
  place-items: center;
  color: var(--brand);
  background: #3e4039;
  border-radius: 50%;
  box-shadow: 0 5px 22px #0002;
  text-decoration: none;
  transition: box-shadow .2s ease, scale .2s ease;
  -webkit-tap-highlight-color: transparent;
  animation: float 4s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

/* Five positions, 72 degrees apart, starting at twelve o'clock. */
.instagram { --x: 0; --y: -1; --brand: #d58b99; }
.facebook { --x: .951057; --y: -.309017; --brand: #82a7bb; }
.x { --x: .587785; --y: .809017; --brand: #eee4ce; }
.tiktok { --x: -.587785; --y: .809017; --brand: #eee4ce; }
.youtube { --x: -.951057; --y: -.309017; --brand: #d77c67; }
.tiktok svg { filter: drop-shadow(-1px -1px 0 #80b6ae) drop-shadow(1px 1px 0 #d77c67); }
.youtube svg path:last-child { fill: #3e4039; }

.icon {
  display: grid;
  place-items: center;
  width: 52%;
  height: 52%;
}

svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.social:hover { scale: 1.12; box-shadow: 0 8px 28px #0003; }
.social:focus-visible { outline: 3px solid #111; outline-offset: 5px; }
.social:hover, .social:focus-visible { animation-play-state: paused; }

@keyframes float {
  0%, 100% { transform: translateY(3px) rotate(-3deg); }
  50% { transform: translateY(-5px) rotate(3deg); }
}

@media (prefers-reduced-motion: reduce) {
  .social { animation: none; transition: none; }
}
