Sam Hain and Ed Barnard followed up the good work of Rob Yates (93), with a fifth wicket stand of 151 in 32 overs, gave Warwickshire the advantage on the opening day of their championship match against Sussex at Hove, before the home side fought back to achieve parity at the close.