Nats pounce on Pirates early, hold on late