Spark is failing.
The ignitor and coil are built into the distributor.
If you can correctly diagnose which one is toast, you can save some money doing your repair. (there's no telling how long the other will last)
My 1991 CRX Si had the exact same problem (progressively running rougher and rougher).
I replaced the distributor which fixed the problem.
take care,
ChrisS