:root {
  --size: 64px;
  --gap: 20px;
  --offline: #dbdbdb;
  --online: #4cfe88;
}

body {
  margin: 0;
  min-height: 100vh;
  place-items: center;
  display: block;
  font-family: 'SUIT', system-ui, sans-serif;
}

.animated-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
  background-size: 400% 400%;
  animation: macosFlow 20s ease infinite;
}

@keyframes macosFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

a {
  border: 5px double lightcoral;
  margin-block: 10px;
  color: white;
}

h1 {
  margin-block: 30px;
  margin-bottom: 50px;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: calc((var(--size) * 4) + (var(--gap) * 3));
}

li {
  float: left;
  position: relative;
  width: var(--size);
  height: var(--size);
}

li:not(:nth-child(4n)) {
  margin-right: var(--gap);
}

li:nth-child(-n + 4) {
  margin-bottom: var(--gap);
}

ul::after {
  content: '';
  display: block;
  clear: both;
}

img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
  object-fit: cover;
}

span {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--offline);
  border: 2px solid #fff;
}

span[aria-label='온라인'] {
  background: var(--online);
}
