Warwickshire fought hard with ball and then bat to enjoy a hugely encouraging second day in this intriguingly poised Specsavers County Championship match with Yorkshire at Headingley.