@layer components {
  @scope (blog-short-entry) to ([data-component]) {
    :scope {
      display: block;
      --prose-size: small;
    }

    .entry {
      display: flex;
      align-items: flex-start;
      gap: 0.75rem;
    }

    .avatar {
      flex: none;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      object-fit: cover;
    }

    .content {
      min-width: 0;
      flex: 1;
    }

    .header {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 0.25rem 0.5rem;
      margin-bottom: 0.5rem;
      color: var(--muted);
      font-weight: 400;
      font-size: 0.875rem;
      line-height: 1.25rem;
      font-family: var(--font-mono);

      @media (min-width: 768px) {
        font-size: 0.75rem;
      }
    }

    .author {
      font-size: 1.2em;
      font-weight: 700;
      color: var(--text);
      font-family: var(--font-sans);
    }

    .permalink {
      text-decoration: none;
      color: inherit;

      &:hover {
        text-decoration: underline;
      }
    }

    .published {
      color: inherit;
      font: inherit;
    }

    .body {
      font-size: 0.875rem;
      line-height: 1.7143;

      > :first-child {
        margin-top: 0;
      }

      > :last-child {
        margin-bottom: 0;
      }
    }

    .attachments {
      margin: 1rem 0 0;
    }
  }
}
