.toots {
  list-style: none;
  padding: 0;
}

.toot {
  border-bottom: 1px dashed;
  border-color: color-mix(in srgb, var(--text-color) 30%, transparent);
  padding: 1rem 0;
}

.toot:first-child {
  padding-top: 0;
}

.toot .user {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0 0.5rem;

  text-decoration: none;
  color: inherit;
}

.toot .user.boost {
  display: flex;
  align-items: center;
  height: 23px;
  margin-bottom: 0.25rem;
  column-gap: 0.25rem;
}

.toot .avatar {
  border-radius: 4px;
  width: 46px;
  height: 46px;
  grid-row: 1 / -1;
}

.toot .display-name {
  font-weight: bold;
  color: var(--heading-color);
  align-self: end;
}

.toot .user:hover .display-name {
  text-decoration: underline;
}

.toot .username {
  color: color-mix(in srgb, var(--text-color) 60%, transparent);
  align-self: start;
}

.toot .boost:before {
  content: "♺";
  font-size: 140%;
}

.toot .boost .avatar {
  width: 23px;
  height: 23px;
}

.toot .boost .username {
  display: none;
}

.toot .permalink {
  text-decoration: none;
  color: color-mix(in srgb, var(--text-color) 60%, transparent);
  float: right;
}

.toot .permalink time {
  font-family: inherit;
}

.toot .permalink:hover {
  text-decoration: underline;
}

.toot .body {
  clear: both;
  margin-top: 1em;
}

.toot .body a {
  overflow-wrap: anywhere;
}

.toot .body .invisible {
  display: inline-block;
  font-size: 0;
  line-height: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toot .body .ellipsis::after {
  content: "…";
}

.toot .attachment {
  display: block;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  margin-top: 0.5rem;
  border: 1px solid color-mix(in srgb, var(--text-color) 15%, transparent);
  overflow: hidden;
}

.toot .attachment img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}
