implement `card`/`size`

fixes #28