/* ============================================================
   Avatars (used by assets/js/avatar.js)
   PASTE THIS AT THE VERY BOTTOM of web/assets/css/style.css
   ============================================================ */

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;            /* don't let long names squish the circle */
  color: #fff;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  user-select: none;
}

.avatar.avatar-sm { width: 26px; height: 26px; font-size: 10px; }
.avatar.avatar-lg { width: 60px; height: 60px; font-size: 22px; }

/* 8 colors, all dark enough for white text to stay readable.
   avatar.js picks one per username. */
.avatar-c0 { background: #2d6a4f; }  /* chirp green */
.avatar-c1 { background: #1d4ed8; }  /* blue */
.avatar-c2 { background: #7e22ce; }  /* purple */
.avatar-c3 { background: #c2410c; }  /* orange */
.avatar-c4 { background: #be123c; }  /* rose */
.avatar-c5 { background: #0f766e; }  /* teal */
.avatar-c6 { background: #4d7c0f; }  /* olive */
.avatar-c7 { background: #a16207; }  /* amber */

/* Line the avatar up with the name next to it
   (these rules used align-items: baseline before). */
.post-head,
.post-author { align-items: center; }
